jm81-paginate 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/jm81-paginate.gemspec +47 -49
- data/lib/helpers/rails.rb +4 -4
- data/lib/jm81-paginate/version.rb +1 -1
- metadata +15 -16
- data/.gitignore +0 -10
data/jm81-paginate.gemspec
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{jm81-paginate}
|
|
8
|
-
s.version = "0.2.
|
|
8
|
+
s.version = "0.2.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Jared Morgan"]
|
|
12
|
-
s.date = %q{2010-
|
|
12
|
+
s.date = %q{2010-12-02}
|
|
13
13
|
s.description = %q{This paginate library assists in paginating collections and results of database
|
|
14
14
|
queries. It is particularly designed for use with DataMapper and ActiveRecord,
|
|
15
15
|
and for the Merb and Rails frameworks, but can be used in many other situations.
|
|
@@ -17,60 +17,58 @@ and for the Merb and Rails frameworks, but can be used in many other situations.
|
|
|
17
17
|
s.email = %q{jmorgan@morgancreative.net}
|
|
18
18
|
s.extra_rdoc_files = [
|
|
19
19
|
"LICENSE",
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
"README.md",
|
|
21
|
+
"TODO"
|
|
22
22
|
]
|
|
23
23
|
s.files = [
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"spec/spec_helper.rb"
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"README.md",
|
|
26
|
+
"Rakefile",
|
|
27
|
+
"TODO",
|
|
28
|
+
"jm81-paginate.gemspec",
|
|
29
|
+
"lib/helpers/merb.rb",
|
|
30
|
+
"lib/helpers/rails.rb",
|
|
31
|
+
"lib/helpers/shared.rb",
|
|
32
|
+
"lib/jm81-paginate.rb",
|
|
33
|
+
"lib/jm81-paginate/version.rb",
|
|
34
|
+
"lib/paginate/ar.rb",
|
|
35
|
+
"lib/paginate/dm.rb",
|
|
36
|
+
"lib/paginate/simple.rb",
|
|
37
|
+
"lib/paginators/orm.rb",
|
|
38
|
+
"lib/paginators/simple.rb",
|
|
39
|
+
"spec/fixtures/ar.rb",
|
|
40
|
+
"spec/fixtures/dm.rb",
|
|
41
|
+
"spec/helpers/merb_spec.rb",
|
|
42
|
+
"spec/helpers/rails_spec.rb",
|
|
43
|
+
"spec/helpers/shared_spec.rb",
|
|
44
|
+
"spec/paginate/ar_spec.rb",
|
|
45
|
+
"spec/paginate/config_spec.rb",
|
|
46
|
+
"spec/paginate/dm_spec.rb",
|
|
47
|
+
"spec/paginate/simple_spec.rb",
|
|
48
|
+
"spec/paginators/orm_spec.rb",
|
|
49
|
+
"spec/paginators/simple_spec.rb",
|
|
50
|
+
"spec/shared.rb",
|
|
51
|
+
"spec/spec.opts",
|
|
52
|
+
"spec/spec_helper.rb"
|
|
54
53
|
]
|
|
55
54
|
s.homepage = %q{http://github.com/jm81/paginate}
|
|
56
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
|
57
55
|
s.require_paths = ["lib"]
|
|
58
56
|
s.rubygems_version = %q{1.3.7}
|
|
59
57
|
s.summary = %q{Pagination for DataMapper, ActiveRecord, and Array}
|
|
60
58
|
s.test_files = [
|
|
61
|
-
"spec/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
59
|
+
"spec/fixtures/ar.rb",
|
|
60
|
+
"spec/fixtures/dm.rb",
|
|
61
|
+
"spec/helpers/merb_spec.rb",
|
|
62
|
+
"spec/helpers/rails_spec.rb",
|
|
63
|
+
"spec/helpers/shared_spec.rb",
|
|
64
|
+
"spec/paginate/ar_spec.rb",
|
|
65
|
+
"spec/paginate/config_spec.rb",
|
|
66
|
+
"spec/paginate/dm_spec.rb",
|
|
67
|
+
"spec/paginate/simple_spec.rb",
|
|
68
|
+
"spec/paginators/orm_spec.rb",
|
|
69
|
+
"spec/paginators/simple_spec.rb",
|
|
70
|
+
"spec/shared.rb",
|
|
71
|
+
"spec/spec_helper.rb"
|
|
74
72
|
]
|
|
75
73
|
|
|
76
74
|
if s.respond_to? :specification_version then
|
data/lib/helpers/rails.rb
CHANGED
|
@@ -43,9 +43,9 @@ module Paginate
|
|
|
43
43
|
content_tag(:div, {:class => 'pageLinks'}, false) do
|
|
44
44
|
html = ''.html_safe
|
|
45
45
|
if current == 1
|
|
46
|
-
html << content_tag(:span, :class => 'pageDisabled pagePrevious') { '«' }
|
|
46
|
+
html << content_tag(:span, :class => 'pageDisabled pagePrevious') { '«'.html_safe }
|
|
47
47
|
else
|
|
48
|
-
html << content_tag(:a, :href => url_for_pagination(current - 1), :class => 'pagePrevious') { '«' }
|
|
48
|
+
html << content_tag(:a, :href => url_for_pagination(current - 1), :class => 'pagePrevious') { '«'.html_safe }
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
page_set(current, pages, padding).each do |page|
|
|
@@ -60,9 +60,9 @@ module Paginate
|
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
if current == pages
|
|
63
|
-
html << content_tag(:span, :class => 'pageDisabled pageNext') { '»' }
|
|
63
|
+
html << content_tag(:span, :class => 'pageDisabled pageNext') { '»'.html_safe }
|
|
64
64
|
else
|
|
65
|
-
html << content_tag(:a, :href => url_for_pagination(current + 1), :class => 'pageNext') { '»' }
|
|
65
|
+
html << content_tag(:a, :href => url_for_pagination(current + 1), :class => 'pageNext') { '»'.html_safe }
|
|
66
66
|
end
|
|
67
67
|
html
|
|
68
68
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jm81-paginate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.2.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jared Morgan
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-
|
|
18
|
+
date: 2010-12-02 00:00:00 -06:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|
|
@@ -34,7 +34,6 @@ extra_rdoc_files:
|
|
|
34
34
|
- README.md
|
|
35
35
|
- TODO
|
|
36
36
|
files:
|
|
37
|
-
- .gitignore
|
|
38
37
|
- LICENSE
|
|
39
38
|
- README.md
|
|
40
39
|
- Rakefile
|
|
@@ -69,8 +68,8 @@ homepage: http://github.com/jm81/paginate
|
|
|
69
68
|
licenses: []
|
|
70
69
|
|
|
71
70
|
post_install_message:
|
|
72
|
-
rdoc_options:
|
|
73
|
-
|
|
71
|
+
rdoc_options: []
|
|
72
|
+
|
|
74
73
|
require_paths:
|
|
75
74
|
- lib
|
|
76
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
@@ -99,16 +98,16 @@ signing_key:
|
|
|
99
98
|
specification_version: 3
|
|
100
99
|
summary: Pagination for DataMapper, ActiveRecord, and Array
|
|
101
100
|
test_files:
|
|
102
|
-
- spec/
|
|
103
|
-
- spec/
|
|
104
|
-
- spec/paginators/orm_spec.rb
|
|
105
|
-
- spec/paginators/simple_spec.rb
|
|
106
|
-
- spec/helpers/shared_spec.rb
|
|
101
|
+
- spec/fixtures/ar.rb
|
|
102
|
+
- spec/fixtures/dm.rb
|
|
107
103
|
- spec/helpers/merb_spec.rb
|
|
108
104
|
- spec/helpers/rails_spec.rb
|
|
109
|
-
- spec/
|
|
105
|
+
- spec/helpers/shared_spec.rb
|
|
106
|
+
- spec/paginate/ar_spec.rb
|
|
110
107
|
- spec/paginate/config_spec.rb
|
|
108
|
+
- spec/paginate/dm_spec.rb
|
|
111
109
|
- spec/paginate/simple_spec.rb
|
|
112
|
-
- spec/
|
|
113
|
-
- spec/
|
|
114
|
-
- spec/
|
|
110
|
+
- spec/paginators/orm_spec.rb
|
|
111
|
+
- spec/paginators/simple_spec.rb
|
|
112
|
+
- spec/shared.rb
|
|
113
|
+
- spec/spec_helper.rb
|