Rakefile in dock0-0.0.4 vs Rakefile in dock0-0.0.5

- old
+ new

@@ -1,21 +1,19 @@ require 'bundler/gem_tasks' +require 'rspec/core/rake_task' require 'rubocop/rake_task' -desc 'Update bundle' -task :bundle do - `bundle update` -end +desc 'Run tests' +RSpec::Core::RakeTask.new(:spec) desc 'Run Rubocop on the gem' Rubocop::RakeTask.new(:rubocop) do |task| - task.patterns = ['lib/**/*.rb', 'spec/*.rb', 'spec/helpers/*.rb', 'bin/*'] + task.patterns = ['lib/**/*.rb', 'spec/**/*.rb'] task.fail_on_error = true end desc 'Run travis-lint on .travis.yml' task :travislint do - print 'There is an issue with your .travis.yml' unless system('travis-lint') + print 'There may be an issue with your .travis.yml' unless system('travis-lint') end -task default: [:travislint, :rubocop, :build] -task release: [:bundle] +task default: [:spec, :travislint, :rubocop, :build]