Rakefile in dm-is-read_only-0.1.1 vs Rakefile in dm-is-read_only-0.2.0
- old
+ new
@@ -1,36 +1,29 @@
require 'rubygems'
-require 'bundler'
begin
- Bundler.setup(:development, :doc)
+ require 'bundler'
+rescue LoadError => e
+ STDERR.puts e.message
+ STDERR.puts "Run `gem install bundler` to install Bundler."
+ exit e.status_code
+end
+
+begin
+ Bundler.setup(: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 'jeweler'
-Jeweler::Tasks.new do |gem|
- gem.name = 'dm-is-read_only'
- gem.license = 'MIT'
- gem.summary = %Q{A DataMapper plugin for making Models absolutely read-only.}
- gem.description = %Q{A DataMapper plugin for making Models absolutely read-only.}
- gem.email = 'postmodern.mod3@gmail.com'
- gem.homepage = 'http://github.com/postmodern/dm-is-read_only'
- gem.authors = ['Postmodern']
- gem.has_rdoc = 'yard'
-end
+require 'ore/tasks'
+Ore::Tasks.new
-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
-
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new
task :default => :spec
require 'yard'
YARD::Rake::YardocTask.new