forked from janlelis/pws
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
35 lines (27 loc) · 675 Bytes
/
Copy pathRakefile
File metadata and controls
35 lines (27 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require 'fileutils'
NAME = Dir['*.gemspec'].first
def gemspec
@gemspec ||= eval(File.read(NAME), binding, NAME)
end
desc "Build the gem"
task :gem => :gemspec do
sh "gem build #{NAME}"
FileUtils.mkdir_p 'pkg'
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
end
desc "Install the gem locally"
task :install => :gem do
sh %{gem install pkg/#{gemspec.name}-#{gemspec.version} --no-rdoc --no-ri}
end
desc "Generate the gemspec"
task :generate do
puts gemspec.to_ruby
end
desc "Validate the gemspec"
task :gemspec do
gemspec.validate
end
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:spec)
task :default => :spec
task :test => :spec