Sha256: 4d95ca54c7badce93a8d8b55c386ba7ada755e1d650013af73ab137c0737d940

Contents?: true

Size: 1.14 KB

Versions: 7

Compression:

Stored size: 1.14 KB

Contents

# -*- ruby -*-

require 'rubygems'
require 'hoe'

$: << "../../RubyInline/dev"
require './lib/parse_tree.rb'

Hoe.new("ParseTree", ParseTree::VERSION) do |p|
  p.rubyforge_name = "parsetree"
  p.summary = "Extract and enumerate ruby parse trees."
  p.description = p.paragraphs_of("README.txt", 2).join("\n\n")
  p.changes = p.paragraphs_of("History.txt", 1).join("\n\n")
  p.clean_globs << File.expand_path("~/.ruby_inline")
  p.extra_deps << ['RubyInline', '>= 3.2.0']
  p.spec_extras[:require_paths] = proc { |paths| paths << 'test' }
end

desc 'Run against ruby 1.9 (from a multiruby install) with -d.'
task :test19 do
  sh "~/.multiruby/install/1_9/bin/ruby -d #{Hoe::RUBY_FLAGS} test/test_all.rb #{Hoe::FILTER}"
end

desc 'Run in gdb'
task :debug do
  puts "RUN: r -d #{Hoe::RUBY_FLAGS} test/test_all.rb #{Hoe::FILTER}"
  sh "gdb ~/.multiruby/install/19/bin/ruby"
end

desc 'Run a very basic demo'
task :demo do
  sh "echo 1+1 | ruby #{Hoe::RUBY_FLAGS} ./bin/parse_tree_show -f"
end

desc 'Show what tests are not sorted'
task :sort do
  sh "pgrep '^    \\\"(\\w+)' test/pt_testcase.rb | cut -f 2 -d\\\" > x"
  sh "sort x > y"
  sh "diff x y"
  sh "rm -f x y"
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
ParseTree-1.6.4 Rakefile
ParseTree-1.7.0 Rakefile
ParseTree-1.7.1 Rakefile
rubyjs-0.7.0 vendor/ParseTree-1.7.1/Rakefile
rubyjs-0.7.1 vendor/ParseTree-1.7.1/Rakefile
rubyjs-0.7.0 vendor/ParseTree-1.7.1-patched/Rakefile
rubyjs-0.7.1 vendor/ParseTree-1.7.1-patched/Rakefile