require 'rubygems' begin 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' require 'yard' $:.push File.expand_path('../lib', __FILE__) require 'mongoid/toggle/version' Jeweler::Tasks.new do |gem| gem.name = 'mongoid_toggle' 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'] end Jeweler::RubygemsDotOrgTasks.new YARD::Rake::YardocTask.new 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