Sha256: 10e6199c78c788557992f812145b1c7734938b3893fa1daddbf9032033fcbdd8
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
#!./bin/nake # encoding: utf-8 require "nake/tasks/gem" require "nake/tasks/spec" require "nake/tasks/release" begin load "code-cleaner.nake" rescue LoadError warn "If you want to contribute to nake, you have to install code-cleaner gem and then run ./tasks.rb hooks:whitespace:install to get Git pre-commit hook for removing trailing whitespace and improving code quality in general." end Task[:build].config[:gemspec] = "nake.gemspec" Task[:prerelease].config[:gemspec] = "nake.pre.gemspec" Task[:release].config[:name] = "nake" Task[:release].config[:version] = Nake::VERSION Nake::Task["hooks:whitespace:install"].tap do |task| task.config[:encoding] = "utf-8" task.config[:whitelist] = '(bin/[^/]+|.+\.(rb|rake|nake|thor|task))$' end Task.new(:features) do |task| task.description = "Run cucumber scenarios" task.define do sh "cucumber features" end end Task.new(:bm) do |task| task.description = "Run benchmarks" task.define do load "#{File.dirname(__FILE__)}/bm/bms.rb" end end Task.new("bm:save") do |task| task.description = "Run benchmarks" task.define do sh "ruby bm/bms.rb > bm/output.txt" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nake-0.0.7 | tasks.rb |
nake-0.0.6 | tasks.rb |