rspec-mocks/upstream/Rakefile in opal-rspec-0.8.0 vs rspec-mocks/upstream/Rakefile in opal-rspec-1.0.0.alpha1
- old
+ new
@@ -24,11 +24,11 @@
end
namespace :clobber do
desc "remove generated rbc files"
task :rbc do
- Dir['**/*.rbc'].each {|f| File.delete(f)}
+ Dir['**/*.rbc'].each { |f| File.delete(f) }
end
end
with_changelog_in_features = lambda do |&block|
begin
@@ -38,11 +38,11 @@
sh "rm features/Changelog.md"
end
end
desc "Push docs/cukes to relishapp using the relish-client-gem"
-task :relish, :version do |t, args|
+task :relish, :version do |_t, args|
raise "rake relish[VERSION]" unless args[:version]
with_changelog_in_features.call do
if `relish versions rspec/rspec-mocks`.split.map(&:strip).include? args[:version]
puts "Version #{args[:version]} already exists"
@@ -63,10 +63,10 @@
task :default => [:spec, :cucumber]
task :verify_private_key_present do
private_key = File.expand_path('~/.gem/rspec-gem-private_key.pem')
unless File.exist?(private_key)
- raise "Your private key is not present. This gem should not be built without that."
+ raise "Your private key is not present. This gem should not be built without it."
end
end
task :build => :verify_private_key_present