Rakefile in mongoid-locker-0.2.1 vs Rakefile in mongoid-locker-0.3.0

- old
+ new

@@ -1,22 +1,21 @@ # encoding: utf-8 require 'rubygems' require 'bundler/setup' require 'rake' -require 'appraisal' require 'jeweler' Jeweler::Tasks.new do |gem| # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options - gem.name = "mongoid-locker" - gem.homepage = "http://github.com/afeld/mongoid-locker" - gem.license = "MIT" - gem.summary = "Document-level locking for MongoDB via Mongoid" - gem.description = %Q{Allows multiple processes to operate on individual documents in MongoDB while ensuring that only one can act at a time.} - gem.email = "aidan.feldman@gmail.com" - gem.authors = ["Aidan Feldman"] + gem.name = 'mongoid-locker' + gem.homepage = 'http://github.com/afeld/mongoid-locker' + gem.license = 'MIT' + gem.summary = 'Document-level locking for MongoDB via Mongoid' + gem.description = 'Allows multiple processes to operate on individual documents in MongoDB while ensuring that only one can act at a time.' + gem.email = 'aidan.feldman@gmail.com' + gem.authors = ['Aidan Feldman'] gem.files.exclude 'demo' # dependencies defined in Gemfile end Jeweler::RubygemsDotOrgTasks.new @@ -24,6 +23,9 @@ require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = FileList['spec/**/*_spec.rb'] end -task :default => :spec +require 'rubocop/rake_task' +RuboCop::RakeTask.new(:rubocop) + +task default: [:rubocop, :spec]