Rakefile in mongoid_toggle-0.1.1 vs Rakefile in mongoid_toggle-0.1.2

- old
+ new

@@ -4,10 +4,11 @@ require 'bundler' Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts 'Run `bundle install` to install missing gems' + exit e.status_code end require 'rake' require 'jeweler' @@ -21,12 +22,20 @@ gem.version = Mongoid::Toggle::Version::STRING gem.homepage = 'https://github.com/Langwhich/mongoid_toggle' gem.license = 'MIT' gem.summary = %Q{Toggle function for boolean columns within mongoid} gem.email = 'thomas.boerger@langwhich.com' - gem.authors = ['Thomas Boerger', 'Tim Rudat'] + gem.authors = ['Thomas Boerger'] end Jeweler::RubygemsDotOrgTasks.new YARD::Rake::YardocTask.new -task :default => :version +require 'rspec/core' +require 'rspec/core/rake_task' + +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = FileList['spec/**/*_spec.rb'] + spec.rspec_opts = '--color --format progress' +end + +task default: :spec