Rakefile in json_serialize-1.0.0 vs Rakefile in json_serialize-2.0.0

- old
+ new

@@ -1,32 +1,34 @@ -require 'rake' +require 'rubygems' +require 'bundler' begin - require 'bundler' -rescue LoadError - puts "Bundler is not installed; install with `gem install bundler`." - exit 1 + 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' -Bundler.require :default - +require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "json_serialize" gem.summary = %Q{Adds JSON serialization to ActiveRecord models} gem.description = %Q{Adds to ActiveRecord the ability to JSON-serialize certain fields.} gem.email = "git@timothymorgan.info" gem.homepage = "http://github.com/riscfuture/json_serialize" gem.authors = [ "Tim Morgan" ] - gem.required_ruby_version = '>= 1.9' - gem.add_dependency "activesupport", ">= 2.0" end -Jeweler::GemcutterTasks.new +Jeweler::RubygemsDotOrgTasks.new require 'rspec/core/rake_task' RSpec::Core::RakeTask.new +require 'yard' YARD::Rake::YardocTask.new('doc') do |doc| doc.options << "-m" << "textile" doc.options << "--protected" + doc.options << "--no-private" doc.options << "-r" << "README.textile" doc.options << "-o" << "doc" doc.options << "--title" << "json_serialize Documentation".inspect doc.files = [ 'lib/**/*', 'README.textile' ]