Rakefile in brightcove-api-1.0.11 vs Rakefile in brightcove-api-1.0.12

- old
+ new

@@ -1,53 +1,15 @@ -require 'rubygems' -require 'bundler' -begin - 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 'bundler/gem_tasks' +require 'rspec/core' +require 'rspec/core/rake_task' -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 = "brightcove-api" - gem.homepage = "http://github.com/BrightcoveOS/Ruby-MAPI-Wrapper" - gem.license = "MIT" - gem.summary = %Q{Ruby gem for interacting with the Brightcove media API} - gem.description = %Q{Ruby gem for interacting with the Brightcove media API. http://docs.brightcove.com/en/media/} - gem.email = "dczarnecki@agoragames.com" - gem.authors = ["David Czarnecki"] +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = FileList['spec/**/*_spec.rb'] + spec.rspec_opts = ['--backtrace'] + # spec.ruby_opts = ['-w'] end -Jeweler::RubygemsDotOrgTasks.new -require 'rake/testtask' -Rake::TestTask.new(:test) do |test| - test.libs << 'lib' << 'test' - test.pattern = 'test/**/test_*.rb' - test.verbose = true -end +task :default => :spec -require 'rcov/rcovtask' -Rcov::RcovTask.new do |test| - test.libs << 'test' - test.pattern = 'test/**/test_*.rb' - test.verbose = true -end - -require 'rake/rdoctask' -Rake::RDocTask.new do |rdoc| - version = File.exist?('VERSION') ? File.read('VERSION') : "" - - rdoc.rdoc_dir = 'rdoc' - rdoc.title = "brightcove-api #{version}" - rdoc.rdoc_files.include('README*') - rdoc.rdoc_files.include('lib/**/*.rb') -end - -task :default => :test_rubies - task :test_rubies do - system "rvm 1.8.7@brightcove-api_gem,1.9.2@brightcove-api_gem rake test" + system "rvm 1.8.7@brightcove-api_gem,1.9.2@brightcove-api_gem,1.9.3@brightcove-api_gem do rake spec" end \ No newline at end of file