Rakefile in barometer-0.6.7 vs Rakefile in barometer-0.7.0

- old
+ new

@@ -1,42 +1,21 @@ require 'rubygems' require 'rake' -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "barometer" - gem.summary = "A multi API consuming weather forecasting superstar." - gem.description = "A multi API consuming weather forecasting superstar." - gem.email = "barometer@attackcorp.com" - gem.homepage = "http://github.com/attack/barometer" - gem.authors = ["Mark G"] - - gem.add_dependency 'httparty', '>= 0.4.5' - gem.add_dependency 'tzinfo', '>= 0.3.14' - - #gem.add_development_dependency "mocha" - end - Jeweler::GemcutterTasks.new -rescue LoadError - puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" -end +require 'bundler/gem_tasks' +require 'rspec/core/rake_task' -require 'spec/rake/spectask' -Spec::Rake::SpecTask.new(:spec) do |spec| - spec.libs << 'lib' << 'spec' - spec.spec_files = FileList['spec/**/*_spec.rb'] - spec.spec_opts = ["-c"] +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = 'spec/**/*_spec.rb' + spec.rspec_opts = ["-c"] end -Spec::Rake::SpecTask.new(:rcov) do |spec| - spec.libs << 'lib' << 'spec' +RSpec::Core::RakeTask.new(:rcov) do |spec| spec.pattern = 'spec/**/*_spec.rb' spec.rcov = true end - task :default => :spec require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| if File.exist?('VERSION.yml') @@ -48,6 +27,6 @@ rdoc.rdoc_dir = 'rdoc' rdoc.title = "barometer #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') -end \ No newline at end of file +end