require "rake/testtask" require "./lib/paginate/version" 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