Sha256: 0888464f4e92716df158d2a9afa4a2115801989c80d11db33c50425742189bb8

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

  import %w(rubydoc rubypackage)


    test_files=Dir["test{code,data}/*.rb"] 
    lib_files = Dir["lib/**/*.rb"]  #need to actually put files here...
    dist_files = lib_files + %w(Rantfile README COPYING) + test_files

    desc "Run unit tests."
    task :test do
      sys.mkdir 'testresults'
      test_files.each{|f| 
            sys.ruby "testcode/rubylexervsruby.rb", f
      }
      lib_files.each{|f| 
            sys.ruby "testcode/rubylexervsruby.rb", f
      }
      system 'which locate grep' && 
        sys.ruby "testcode/rubylexervsruby.rb",  `locate /tk.rb|grep 'tk.rb$'`
    end

    desc "Generate html documentation."
    gen RubyDoc do |t|
        t.opts = %w(--title RubyLexer --main README README)
    end

    desc "Create packages."
    gen RubyPackage, :rubylexer do |t|
        t.version = "0.6.1"
        t.summary = "A complete lexer of ruby in ruby."
        t.files = dist_files
        t.package_task :gem
        #need more here
    end

    task :clean do
        sys.rm_rf %w(doc pkg testresults)
    end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubylexer-0.6.2 Rantfile