Sha256: e984251c4c54fcf1414ef371b20fab7d3627d6b55a4f2011fae9a25d9cea5535

Contents?: true

Size: 887 Bytes

Versions: 1

Compression:

Stored size: 887 Bytes

Contents

# -*- ruby -*-

require 'rubygems'
require 'hoe'

Hoe.add_include_dirs "../../ZenTest/dev/lib"
Hoe.add_include_dirs "lib"

Hoe.plugin :seattlerb
Hoe.plugin :isolate

Hoe.spec "RubyInline" do
  developer 'Ryan Davis', 'ryand-ruby@zenspider.com'

  clean_globs << File.expand_path("~/.ruby_inline")
  spec_extras[:requirements] =
    "A POSIX environment and a compiler for your language."

  dependency "ZenTest", "~> 4.3" # for ZenTest mapping
end

task :test => :clean

desc "run all examples"
task :examples do
  %w(example.rb
     example2.rb
     tutorial/example1.rb
     tutorial/example2.rb).each do |e|
    rm_rf '~/.ruby_inline'
    ruby "-Ilib -I#{Hoe.include_dirs.first} -w #{e}"
  end
end

desc "run simple benchmarks"
task :bench do
  verbose(false) do
    ruby "-Ilib ./example.rb"
    ruby "-Ilib ./example.rb 1000000 12" # 12 is the bignum cutoff for factorial
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
RubyInline-3.13.0 Rakefile