Rakefile in vcloud-launcher-0.0.4 vs Rakefile in vcloud-launcher-0.0.5
- old
+ new
@@ -1,10 +1,10 @@
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'gem_publisher'
-task :default => [:spec,:features]
+task :default => [:rubocop, :spec, :features]
task :integration => ['integration:all']
RSpec::Core::RakeTask.new(:spec) do |task|
# Set a bogus Fog credential, otherwise it's possible for the unit
# tests to accidentially run (and succeed against!) an actual
@@ -25,9 +25,14 @@
RSpec::Core::RakeTask.new('integration:all') do |t|
t.pattern = FileList['spec/integration/**/*_spec.rb']
end
-task :publish_gem do |t|
+task :publish_gem do
gem = GemPublisher.publish_if_updated("vcloud-launcher.gemspec", :rubygems)
puts "Published #{gem}" if gem
+end
+
+require 'rubocop/rake_task'
+Rubocop::RakeTask.new(:rubocop) do |task|
+ task.options = ['--lint']
end