Sha256: b0c93f2fe35820102032c51b90b0a6f5b50f5b591975d6f46df908af082138f0

Contents?: true

Size: 1.32 KB

Versions: 6

Compression:

Stored size: 1.32 KB

Contents

#!./bin/nake
# encoding: utf-8

begin
  require File.expand_path("../.bundle/environment", __FILE__)
rescue LoadError
  require "bundler"
  Bundler.setup
end

$LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))

require "nake/tasks/gem"
require "nake/tasks/spec"
require "nake/tasks/release"

begin
  load "code-cleaner.nake"
  Nake::Task["hooks:whitespace:install"].tap do |task|
    task.config[:encoding] = "utf-8"
    task.config[:whitelist] = '(bin/[^/]+|.+\.(rb|rake|nake|thor|task))$'
  end
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

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

6 entries across 6 versions & 1 rubygems

Version Path
nake-0.1.1 tasks.rb
nake-0.1 tasks.rb
nake-0.0.9.5 tasks.rb
nake-0.0.9.4 tasks.rb
nake-0.0.9.3 tasks.rb
nake-0.0.9.2 tasks.rb