Sha256: 3117e850604cae729007f67bdaefc5b72add1ddc8fe47ee74b038fda8a9cd38d
Contents?: true
Size: 736 Bytes
Versions: 2
Compression:
Stored size: 736 Bytes
Contents
require 'rake' require 'rake/testtask' require 'rbconfig' include Config desc 'Install the memoize library (non-gem)' task :install do sitelibdir = CONFIG['sitelibdir'] file = 'lib/memoize.rb' FileUtils.cp(file, sitelibdir, :verbose => true) end desc 'Install the memoize library as a gem' task :install_gem do ruby 'memoize.gemspec' file = Dir['*.gem'].first sh 'gem install #{file}' end desc 'Run the fibonacci example & benchmarks' task :example_fib do ruby '-Ilib examples/example_fibonacci.rb' end desc 'Run the memoize example & benchmarks' task :example_memoize do ruby '-Ilib examples/example_memoize.rb' end Rake::TestTask.new do |t| t.libs << 'test' t.verbose = true t.warning = true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
memoize-1.3.1 | Rakefile |
memoize-1.3.0 | Rakefile |