mislav / will_paginate

Adaptive pagination plugin for web frameworks and other applications

This URL has Read+Write access

will_paginate / Rakefile
43abd3b6 » mislav 2008-05-04 try to use Hanna for rake rdoc 1 require 'rubygems'
2 begin
c21486bf » mislav 2008-06-07 set up rake spec:rcov 3 hanna_dir = '/Users/mislav/Projects/Hanna/lib'
43abd3b6 » mislav 2008-05-04 try to use Hanna for rake rdoc 4 $:.unshift hanna_dir if File.exists? hanna_dir
5 require 'hanna/rdoctask'
6 rescue LoadError
7 require 'rake'
8 require 'rake/rdoctask'
9 end
48ab5e45 » mislav 2008-05-08 don't require ActiveSupport... 10 load 'spec/tasks.rake'
079d0d84 » mislav 2007-05-09 Awesome new features, super... 11
9f471b14 » mislav 2008-10-10 delete test/ directory and ... 12 desc 'Default: run specs.'
13 task :default => :spec
079d0d84 » mislav 2007-05-09 Awesome new features, super... 14
0128efd6 » mislav 2007-06-11 Point users to the Lightous... 15 desc 'Generate RDoc documentation for the will_paginate plugin.'
079d0d84 » mislav 2007-05-09 Awesome new features, super... 16 Rake::RDocTask.new(:rdoc) do |rdoc|
6300d1d5 » mislav 2008-11-24 Tag will_paginate 3.0.0. Th... 17 rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'CHANGELOG.rdoc').
43abd3b6 » mislav 2008-05-04 try to use Hanna for rake rdoc 18 include('lib/**/*.rb').
231f9640 » mislav 2009-01-11 Total rdoc love. Point out ... 19 exclude('lib/will_paginate/finders/active_record/named_scope*').
20 exclude('lib/will_paginate/finders/sequel.rb').
21 exclude('lib/will_paginate/view_helpers/merb.rb').
c21486bf » mislav 2008-06-07 set up rake spec:rcov 22 exclude('lib/will_paginate/deprecation.rb').
231f9640 » mislav 2009-01-11 Total rdoc love. Point out ... 23 exclude('lib/will_paginate/core_ext.rb').
9afc5e83 » mislav 2008-04-06 added WillPaginate::VERSION 24 exclude('lib/will_paginate/version.rb')
43abd3b6 » mislav 2008-05-04 try to use Hanna for rake rdoc 25
4d7de72f » mislav 2008-04-06 add examples of pagination ... 26 rdoc.main = "README.rdoc" # page to start on
27 rdoc.title = "will_paginate documentation"
c7ec4a5f » mislav 2007-09-26 Will Paginate docs and cont... 28
9ba306e0 » chris 2007-08-21 rdoc changes 29 rdoc.rdoc_dir = 'doc' # rdoc output folder
43abd3b6 » mislav 2008-05-04 try to use Hanna for rake rdoc 30 rdoc.options << '--inline-source' << '--charset=UTF-8'
1cc5730e » mislav 2008-04-06 clean up README; point peop... 31 rdoc.options << '--webcvs=http://github.com/mislav/will_paginate/tree/master/'
079d0d84 » mislav 2007-05-09 Awesome new features, super... 32 end
1464c8bf » mislav 2008-04-06 gemify 33
54bc63e8 » mislav 2008-04-26 goodbye, '.gemified'. we'll... 34 desc %{Update ".manifest" with the latest list of project filenames. Respect\
35 .gitignore by excluding everything that git ignores. Update `files` and\
36 `test_files` arrays in "*.gemspec" file if it's present.}
1464c8bf » mislav 2008-04-06 gemify 37 task :manifest do
5c462bbd » mislav 2009-02-10 simplify manifest generatio... 38 list = `git ls-files --full-name -x *.gemspec -x website`.chomp.split("\n")
1464c8bf » mislav 2008-04-06 gemify 39
5c462bbd » mislav 2009-02-10 simplify manifest generatio... 40 if spec_file = Dir['*.gemspec'].first
54bc63e8 » mislav 2008-04-26 goodbye, '.gemified'. we'll... 41 spec = File.read spec_file
42 spec.gsub! /^(\s* s.(test_)?files \s* = \s* )( \[ [^\]]* \] | %w\( [^)]* \) )/mx do
43 assignment = $1
89e850cd » mislav 2008-06-19 update manifest 44 bunch = $2 ? list.grep(/^(test|spec)\//) : list
54bc63e8 » mislav 2008-04-26 goodbye, '.gemified'. we'll... 45 '%s%%w(%s)' % [assignment, bunch.join(' ')]
46 end
47
5c462bbd » mislav 2009-02-10 simplify manifest generatio... 48 File.open(spec_file, 'w') { |f| f << spec }
3334327b » mislav 2008-04-25 add gemspec file. change ra... 49 end
5c462bbd » mislav 2009-02-10 simplify manifest generatio... 50 File.open('.manifest', 'w') { |f| f << list.join("\n") }
e9814cae » mislav 2008-04-06 add rake release task 51 end
52
74e4355a » mislav 2009-01-08 delete stuff in examples/ a... 53 task :website do
54 Dir.chdir('website') do
55 %x(haml index.haml index.html)
56 %x(sass pagination.sass pagination.css)
57 end
c21486bf » mislav 2008-06-07 set up rake spec:rcov 58 end