summaryrefslogtreecommitdiff
path: root/vendor/plugins/will_paginate/Rakefile
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-27 22:52:50 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-27 22:52:50 +0200
commit9a19a0494ef51cdac9a78e24d517ca48ba44c453 (patch)
tree8eaae12d8047a40e29d3ea7ff3116b5c869e04bd /vendor/plugins/will_paginate/Rakefile
parent85a01e35274b8d4d4165a7b26bd7986e211246bb (diff)
parent1853082fcd8c067390c246f9daa01a9b47387497 (diff)
Migration from Rails 2.3.5 to Rails 8.1 successful.
Merging dev branch.
Diffstat (limited to 'vendor/plugins/will_paginate/Rakefile')
-rw-r--r--vendor/plugins/will_paginate/Rakefile62
1 files changed, 0 insertions, 62 deletions
diff --git a/vendor/plugins/will_paginate/Rakefile b/vendor/plugins/will_paginate/Rakefile
deleted file mode 100644
index 253efd0..0000000
--- a/vendor/plugins/will_paginate/Rakefile
+++ /dev/null
@@ -1,62 +0,0 @@
1require 'rubygems'
2begin
3 hanna_dir = '/Users/mislav/Projects/Hanna/lib'
4 $:.unshift hanna_dir if File.exists? hanna_dir
5 require 'hanna/rdoctask'
6rescue LoadError
7 require 'rake'
8 require 'rake/rdoctask'
9end
10load 'test/tasks.rake'
11
12desc 'Default: run unit tests.'
13task :default => :test
14
15desc 'Generate RDoc documentation for the will_paginate plugin.'
16Rake::RDocTask.new(:rdoc) do |rdoc|
17 rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'CHANGELOG.rdoc').
18 include('lib/**/*.rb').
19 exclude('lib/will_paginate/named_scope*').
20 exclude('lib/will_paginate/array.rb').
21 exclude('lib/will_paginate/version.rb')
22
23 rdoc.main = "README.rdoc" # page to start on
24 rdoc.title = "will_paginate documentation"
25
26 rdoc.rdoc_dir = 'doc' # rdoc output folder
27 rdoc.options << '--inline-source' << '--charset=UTF-8'
28 rdoc.options << '--webcvs=http://github.com/mislav/will_paginate/tree/master/'
29end
30
31desc %{Update ".manifest" with the latest list of project filenames. Respect\
32.gitignore by excluding everything that git ignores. Update `files` and\
33`test_files` arrays in "*.gemspec" file if it's present.}
34task :manifest do
35 list = Dir['**/*'].sort
36 spec_file = Dir['*.gemspec'].first
37 list -= [spec_file] if spec_file
38
39 File.read('.gitignore').each_line do |glob|
40 glob = glob.chomp.sub(/^\//, '')
41 list -= Dir[glob]
42 list -= Dir["#{glob}/**/*"] if File.directory?(glob) and !File.symlink?(glob)
43 puts "excluding #{glob}"
44 end
45
46 if spec_file
47 spec = File.read spec_file
48 spec.gsub! /^(\s* s.(test_)?files \s* = \s* )( \[ [^\]]* \] | %w\( [^)]* \) )/mx do
49 assignment = $1
50 bunch = $2 ? list.grep(/^test\//) : list
51 '%s%%w(%s)' % [assignment, bunch.join(' ')]
52 end
53
54 File.open(spec_file, 'w') {|f| f << spec }
55 end
56 File.open('.manifest', 'w') {|f| f << list.join("\n") }
57end
58
59task :examples do
60 %x(haml examples/index.haml examples/index.html)
61 %x(sass examples/pagination.sass examples/pagination.css)
62end