Sha256: 2b9c9ea9debffc851dc327b72e7209bb5e73320533545c5fcbc3921dc5980d0d

Contents?: true

Size: 838 Bytes

Versions: 10

Compression:

Stored size: 838 Bytes

Contents

# -*- ruby -*-

require 'rubygems'
require 'hoe'

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

Hoe.plugin :seattlerb

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."
  extra_deps << ['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 -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

10 entries across 10 versions & 3 rubygems

Version Path
RubyInline-3.9.0 Rakefile
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/RubyInline-3.8.6/Rakefile
opsb-RubyInline-3.8.6 Rakefile
vim-jar-0.1.2 bundler/ruby/1.8/gems/RubyInline-3.8.6/Rakefile
vim-jar-0.1.1 bundler/ruby/1.8/gems/RubyInline-3.8.6/Rakefile
vim-jar-0.1.0 bundler/ruby/1.8/gems/RubyInline-3.8.6/Rakefile
vim-jar-0.0.3 bundler/ruby/1.8/gems/RubyInline-3.8.6/Rakefile
vim-jar-0.0.2 bundler/ruby/1.8/gems/RubyInline-3.8.6/Rakefile
vim-jar-0.0.1 bundler/ruby/1.8/gems/RubyInline-3.8.6/Rakefile
RubyInline-3.8.6 Rakefile