Rakefile in parameters-0.2.2 vs Rakefile in parameters-0.2.3

- old
+ new

@@ -1,38 +1,35 @@ require 'rubygems' -require 'bundler' +require 'rake' begin - Bundler.setup(:development, :doc) -rescue Bundler::BundlerError => e + gem 'ore-tasks', '~> 0.1.2' + require 'ore/tasks' + + Ore::Tasks.new +rescue LoadError => e STDERR.puts e.message - STDERR.puts "Run `bundle install` to install missing gems" - exit e.status_code + STDERR.puts "Run `gem install ore-tasks` to install 'ore/tasks'." end -require 'rake' -require 'jeweler' -require './lib/parameters/version.rb' +begin + gem 'rspec', '~> 2.0.0' + require 'rspec/core/rake_task' -Jeweler::Tasks.new do |gem| - gem.name = 'parameters' - gem.version = Parameters::VERSION - gem.license = 'MIT' - gem.summary = %Q{Allows you to add annotated variables to your classes} - gem.description = %Q{Parameters allows you to add annotated variables to your classes which may have configurable default values.} - gem.email = 'postmodern.mod3@gmail.com' - gem.homepage = 'http://github.com/postmodern/parameters' - gem.authors = ['Postmodern'] - gem.has_rdoc = 'yard' + RSpec::Core::RakeTask.new +rescue LoadError => e + task :spec do + abort "Please run `gem install rspec` to install RSpec." + end end - -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 = ['--options', '.specopts'] -end - task :default => :spec -require 'yard' -YARD::Rake::YardocTask.new +begin + gem 'yard', '~> 0.6.0' + require 'yard' + + YARD::Rake::YardocTask.new +rescue LoadError => e + task :yard do + abort "Please run `gem install yard` to install YARD." + end +end