Rakefile in paginate-0.1.3 vs Rakefile in paginate-1.0.0

- old
+ new

@@ -1,27 +1,13 @@ -require "rake/testtask" -require "./lib/paginate/version" +require "bundler" +Bundler::GemHelper.install_tasks +require "rake/testtask" Rake::TestTask.new do |t| t.libs += %w[ test lib ] t.test_files = FileList["test/**/*_test.rb"] t.verbose = true t.ruby_opts = %w[ -rubygems ] end -begin - require "jeweler" - - Jeweler::Tasks.new do |gem| - gem.name = "paginate" - gem.version = Paginate::Version::STRING - gem.summary = "Paginate collections using SIZE+1 to determine if there is a next page. Includes ActiveRecord and ActionView support." - gem.email = "fnando.vieira@gmail.com" - gem.homepage = "http://github.com/fnando/paginate" - gem.authors = ["Nando Vieira"] - gem.files = FileList["lib/**/*", "Rakefile", "README.rdoc"] - end - - Jeweler::GemcutterTasks.new -rescue LoadError => e - puts "You don't have Jeweler installed, so you won't be able to build this gem." -end +require "rspec/core/rake_task" +RSpec::Core::RakeTask.new