Rakefile in tms_client-0.4.1 vs Rakefile in tms_client-0.5.1
- old
+ new
@@ -1,13 +1,25 @@
+require "rubygems"
+require "bundler/setup"
require 'rspec/core/rake_task'
-require 'rubygems/tasks'
-require 'rubygems/tasks/scm'
+unless defined?(JRUBY_VERSION)
+ require 'rubygems/tasks'
+ require 'rubygems/tasks/scm'
+ Gem::Tasks.new
+end
require 'yard'
YARD::Rake::YardocTask.new do |t|
- t.files = ['lib/**/*.rb']
+ t.files = ['lib/**/*.rb']
end
RSpec::Core::RakeTask.new(:spec)
-Gem::Tasks.new
+
+
+desc "Run spec with all supported versions of active support"
+task :compatibility_spec do
+ [2, 3, 4].each do |n|
+ puts `ACTIVE_SUPPORT_VERSION='~> #{n}' bundle ; rake spec`
+ end
+end
task :default => :spec
\ No newline at end of file