Rakefile in enumerate_it-1.3.0 vs Rakefile in enumerate_it-1.3.1.rc1
- old
+ new
@@ -1,12 +1,16 @@
# encoding: utf-8
-require 'bundler'
-Bundler::GemHelper.install_tasks
+require 'bundler/gem_tasks'
-require 'rspec/core'
-require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new(:spec) do |spec|
- spec.pattern = FileList['spec/**/*_spec.rb']
-end
+if ENV['APPRAISAL_INITIALIZED'] || ENV['TRAVIS'] || RUBY_VERSION < '2.0.0'
+ require 'rspec/core/rake_task'
-task default: :spec
+ Bundler::GemHelper.install_tasks
+ RSpec::Core::RakeTask.new(:spec)
+
+ task default: :spec
+else
+ require 'appraisal'
+
+ task default: :appraisal
+end