Sha256: e0ddd376fce2e53083266a871a10e6f6d80b649009224fdebe67f319239ad610

Contents?: true

Size: 774 Bytes

Versions: 43

Compression:

Stored size: 774 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the will_paginate plugin.'
Rake::TestTask.new(:test) do |t|
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

desc 'Generate RDoc documentation for the will_paginate plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  files = ['README', 'LICENSE', 'lib/**/*.rb']
  rdoc.rdoc_files.add(files)
  rdoc.main = "README" # page to start on
  rdoc.title = "will_paginate"
  
  templates = %w[/Users/chris/ruby/projects/err/rock/template.rb /var/www/rock/template.rb]
  rdoc.template = templates.find { |t| File.exists? t }
  
  rdoc.rdoc_dir = 'doc' # rdoc output folder
  rdoc.options << '--inline-source'
  rdoc.options << '--charset=UTF-8'
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
backlog-0.37.2 vendor/plugins/will_paginate/Rakefile
backlog-0.37.1 vendor/plugins/will_paginate/Rakefile
backlog-0.36.2 vendor/plugins/will_paginate/Rakefile
amrita2-2.0.2 sample/depot/vendor/plugins/will_paginate/Rakefile
backlog-0.17.0 vendor/plugins/will_paginate/Rakefile
backlog-0.17.2 vendor/plugins/will_paginate/Rakefile
backlog-0.17.1 vendor/plugins/will_paginate/Rakefile
backlog-0.17.3 vendor/plugins/will_paginate/Rakefile
backlog-0.17.4 vendor/plugins/will_paginate/Rakefile
backlog-0.17.5 vendor/plugins/will_paginate/Rakefile
backlog-0.17.6 vendor/plugins/will_paginate/Rakefile
backlog-0.18.0 vendor/plugins/will_paginate/Rakefile
backlog-0.19.0 vendor/plugins/will_paginate/Rakefile
backlog-0.20.0 vendor/plugins/will_paginate/Rakefile
backlog-0.20.1 vendor/plugins/will_paginate/Rakefile
backlog-0.21.0 vendor/plugins/will_paginate/Rakefile
backlog-0.21.1 vendor/plugins/will_paginate/Rakefile
backlog-0.21.2 vendor/plugins/will_paginate/Rakefile
backlog-0.21.3 vendor/plugins/will_paginate/Rakefile
backlog-0.22.1 vendor/plugins/will_paginate/Rakefile