will_paginate 2.2.2 → 2.3.11
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of will_paginate might be problematic. Click here for more details.
- data/CHANGELOG.rdoc +110 -0
- data/README.rdoc +33 -61
- data/Rakefile +30 -93
- data/lib/will_paginate.rb +24 -20
- data/lib/will_paginate/collection.rb +7 -6
- data/lib/will_paginate/core_ext.rb +13 -2
- data/lib/will_paginate/finder.rb +42 -17
- data/lib/will_paginate/named_scope.rb +54 -16
- data/lib/will_paginate/named_scope_patch.rb +7 -9
- data/lib/will_paginate/version.rb +4 -4
- data/lib/will_paginate/view_helpers.rb +150 -74
- data/test/collection_test.rb +3 -0
- data/test/database.yml +3 -3
- data/test/finder_test.rb +71 -14
- data/test/fixtures/developer.rb +1 -0
- data/test/fixtures/topic.rb +4 -0
- data/test/helper.rb +4 -1
- data/test/lib/activerecord_test_case.rb +7 -0
- data/test/lib/activerecord_test_connector.rb +9 -3
- data/test/lib/view_test_process.rb +106 -0
- data/test/tasks.rake +59 -0
- data/test/view_test.rb +114 -85
- metadata +46 -20
- data/CHANGELOG +0 -49
metadata
CHANGED
@@ -1,40 +1,40 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: will_paginate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Mislav Marohni\xC4\x87"
|
8
|
+
- PJ Hyett
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
12
|
|
12
|
-
date:
|
13
|
+
date: 2009-06-02 00:00:00 +02:00
|
13
14
|
default_executable:
|
14
15
|
dependencies: []
|
15
16
|
|
16
|
-
description:
|
17
|
+
description: The will_paginate library provides a simple, yet powerful and extensible API for ActiveRecord pagination and rendering of pagination links in ActionView templates.
|
17
18
|
email: mislav.marohnic@gmail.com
|
18
19
|
executables: []
|
19
20
|
|
20
21
|
extensions: []
|
21
22
|
|
22
|
-
extra_rdoc_files:
|
23
|
-
|
23
|
+
extra_rdoc_files:
|
24
|
+
- README.rdoc
|
25
|
+
- LICENSE
|
26
|
+
- CHANGELOG.rdoc
|
24
27
|
files:
|
25
|
-
- CHANGELOG
|
28
|
+
- CHANGELOG.rdoc
|
26
29
|
- LICENSE
|
27
30
|
- README.rdoc
|
28
31
|
- Rakefile
|
29
|
-
- examples
|
30
32
|
- examples/apple-circle.gif
|
31
33
|
- examples/index.haml
|
32
34
|
- examples/index.html
|
33
35
|
- examples/pagination.css
|
34
36
|
- examples/pagination.sass
|
35
37
|
- init.rb
|
36
|
-
- lib
|
37
|
-
- lib/will_paginate
|
38
38
|
- lib/will_paginate.rb
|
39
39
|
- lib/will_paginate/array.rb
|
40
40
|
- lib/will_paginate/collection.rb
|
@@ -44,13 +44,11 @@ files:
|
|
44
44
|
- lib/will_paginate/named_scope_patch.rb
|
45
45
|
- lib/will_paginate/version.rb
|
46
46
|
- lib/will_paginate/view_helpers.rb
|
47
|
-
- test
|
48
47
|
- test/boot.rb
|
49
48
|
- test/collection_test.rb
|
50
49
|
- test/console
|
51
50
|
- test/database.yml
|
52
51
|
- test/finder_test.rb
|
53
|
-
- test/fixtures
|
54
52
|
- test/fixtures/admin.rb
|
55
53
|
- test/fixtures/developer.rb
|
56
54
|
- test/fixtures/developers_projects.yml
|
@@ -64,17 +62,22 @@ files:
|
|
64
62
|
- test/fixtures/user.rb
|
65
63
|
- test/fixtures/users.yml
|
66
64
|
- test/helper.rb
|
67
|
-
- test/lib
|
68
65
|
- test/lib/activerecord_test_case.rb
|
69
66
|
- test/lib/activerecord_test_connector.rb
|
70
67
|
- test/lib/load_fixtures.rb
|
71
68
|
- test/lib/view_test_process.rb
|
69
|
+
- test/tasks.rake
|
72
70
|
- test/view_test.rb
|
73
71
|
has_rdoc: true
|
74
|
-
homepage: http://github.com/mislav/will_paginate
|
75
|
-
|
76
|
-
rdoc_options: []
|
72
|
+
homepage: http://github.com/mislav/will_paginate/wikis
|
73
|
+
licenses: []
|
77
74
|
|
75
|
+
post_install_message:
|
76
|
+
rdoc_options:
|
77
|
+
- --main
|
78
|
+
- README.rdoc
|
79
|
+
- --inline-source
|
80
|
+
- --charset=UTF-8
|
78
81
|
require_paths:
|
79
82
|
- lib
|
80
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -91,10 +94,33 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
94
|
version:
|
92
95
|
requirements: []
|
93
96
|
|
94
|
-
rubyforge_project:
|
95
|
-
rubygems_version: 1.
|
97
|
+
rubyforge_project:
|
98
|
+
rubygems_version: 1.3.5
|
96
99
|
signing_key:
|
97
|
-
specification_version:
|
100
|
+
specification_version: 3
|
98
101
|
summary: Most awesome pagination solution for Rails
|
99
|
-
test_files:
|
100
|
-
|
102
|
+
test_files:
|
103
|
+
- test/boot.rb
|
104
|
+
- test/collection_test.rb
|
105
|
+
- test/console
|
106
|
+
- test/database.yml
|
107
|
+
- test/finder_test.rb
|
108
|
+
- test/fixtures/admin.rb
|
109
|
+
- test/fixtures/developer.rb
|
110
|
+
- test/fixtures/developers_projects.yml
|
111
|
+
- test/fixtures/project.rb
|
112
|
+
- test/fixtures/projects.yml
|
113
|
+
- test/fixtures/replies.yml
|
114
|
+
- test/fixtures/reply.rb
|
115
|
+
- test/fixtures/schema.rb
|
116
|
+
- test/fixtures/topic.rb
|
117
|
+
- test/fixtures/topics.yml
|
118
|
+
- test/fixtures/user.rb
|
119
|
+
- test/fixtures/users.yml
|
120
|
+
- test/helper.rb
|
121
|
+
- test/lib/activerecord_test_case.rb
|
122
|
+
- test/lib/activerecord_test_connector.rb
|
123
|
+
- test/lib/load_fixtures.rb
|
124
|
+
- test/lib/view_test_process.rb
|
125
|
+
- test/tasks.rake
|
126
|
+
- test/view_test.rb
|
data/CHANGELOG
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
== 2.2.2, released 2008-04-21
|
2
|
-
|
3
|
-
* Add support for page parameter in custom routes like "/foo/page/2"
|
4
|
-
* Change output of "page_entries_info" on single-page collection and erraneous
|
5
|
-
output with empty collection as reported by Tim Chater
|
6
|
-
|
7
|
-
== 2.2.1, released 2008-04-08
|
8
|
-
|
9
|
-
* take less risky path when monkeypatching named_scope; fix that it no longer
|
10
|
-
requires ActiveRecord::VERSION
|
11
|
-
* use strings in "respond_to?" calls to work around a bug in acts_as_ferret
|
12
|
-
stable (ugh)
|
13
|
-
* add rake release task
|
14
|
-
|
15
|
-
|
16
|
-
== 2.2.0, released 2008-04-07
|
17
|
-
|
18
|
-
=== API changes
|
19
|
-
* Rename WillPaginate::Collection#page_count to "total_pages" for consistency.
|
20
|
-
If you implemented this interface, change your implementation accordingly.
|
21
|
-
* Remove old, deprecated style of calling Array#paginate as "paginate(page,
|
22
|
-
per_page)". If you want to specify :page, :per_page or :total_entries, use a
|
23
|
-
parameter hash.
|
24
|
-
* Rename LinkRenderer#url_options to "url_for" and drastically optimize it
|
25
|
-
|
26
|
-
=== View changes
|
27
|
-
* Added "prev_page" and "next_page" CSS classes on previous/next page buttons
|
28
|
-
* Add examples of pagination links styling in "examples/index.html"
|
29
|
-
* Change gap in pagination links from "..." to
|
30
|
-
"<span class="gap">…</span>".
|
31
|
-
* Add "paginated_section", a block helper that renders pagination both above and
|
32
|
-
below content in the block
|
33
|
-
* Add rel="prev|next|start" to page links
|
34
|
-
|
35
|
-
=== Other
|
36
|
-
|
37
|
-
* Add ability to opt-in for Rails 2.1 feature "named_scope" by calling
|
38
|
-
WillPaginate.enable_named_scope (tested in Rails 1.2.6 and 2.0.2)
|
39
|
-
* Support complex page parameters like "developers[page]"
|
40
|
-
* Move Array#paginate definition to will_paginate/array.rb. You can now easily
|
41
|
-
use pagination on arrays outside of Rails:
|
42
|
-
|
43
|
-
gem 'will_paginate'
|
44
|
-
require 'will_paginate/array'
|
45
|
-
|
46
|
-
* Add "paginated_each" method for iterating through every record by loading only
|
47
|
-
one page of records at the time
|
48
|
-
* Rails 2: Rescue from WillPaginate::InvalidPage error with 404 Not Found by
|
49
|
-
default
|