will_paginate_semantic_ui 2.0.1 → 2.1.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.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +58 -35
- data/README.md +12 -0
- data/lib/will_paginate_semantic_ui/generic_renderer.rb +6 -3
- data/lib/will_paginate_semantic_ui/version.rb +1 -1
- data/spec/lib/will_paginate_semantic_ui/generic_renderer_spec.rb +0 -4
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e25d25cff9dc75752fb3cb8f9de3fa1b954046f0b96b7238003e49334c678c8a
|
4
|
+
data.tar.gz: 3d436d570784de9b9408e7177faba68179293b42960c5cca0a1fb02c0de9aea1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0699574d8a60773af80364dbb16c1c7f179b32c5a457c73997952d54fb1fab66b6aaaa0349eccad0693d2deb7f373fca950d98f2cc71e6743112d470a0a9e1e7'
|
7
|
+
data.tar.gz: dcdbac423ef454f9017e30bd48f04bfdf4deb59c99b63c7d27e21c239a825fcf40a9e06d780493e8da6abaee78aa5043fd90849707ab70404175df8b5d6e4f62
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-
|
1
|
+
ruby-3.3.8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.1.1
|
4
|
+
|
5
|
+
- Fixes the deprecated Fixnum class
|
6
|
+
|
7
|
+
## 2.1.0
|
8
|
+
|
9
|
+
- Avoid creation of `/false` links when that page not exists. (For more details: https://github.com/rafaelbiriba/will_paginate_semantic_ui/pull/1 )
|
10
|
+
|
3
11
|
## 2.0.1
|
4
12
|
|
5
13
|
- Fix error when Sinatra and ActionView is available in the same project
|
data/Gemfile.lock
CHANGED
@@ -1,54 +1,77 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
will_paginate_semantic_ui (2.
|
4
|
+
will_paginate_semantic_ui (2.1.1)
|
5
5
|
will_paginate (> 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
|
10
|
+
bigdecimal (3.2.2)
|
11
|
+
byebug (12.0.0)
|
12
|
+
coveralls (0.8.23)
|
12
13
|
json (>= 1.8, < 3)
|
13
|
-
simplecov (~> 0.
|
14
|
+
simplecov (~> 0.16.1)
|
14
15
|
term-ansicolor (~> 1.3)
|
15
|
-
thor (
|
16
|
-
tins (~> 1.6
|
17
|
-
diff-lcs (1.2
|
18
|
-
docile (1.1
|
19
|
-
json (2.
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
16
|
+
thor (>= 0.19.4, < 2.0)
|
17
|
+
tins (~> 1.6)
|
18
|
+
diff-lcs (1.6.2)
|
19
|
+
docile (1.4.1)
|
20
|
+
json (2.12.2)
|
21
|
+
nokogiri (1.18.8-aarch64-linux-gnu)
|
22
|
+
racc (~> 1.4)
|
23
|
+
nokogiri (1.18.8-aarch64-linux-musl)
|
24
|
+
racc (~> 1.4)
|
25
|
+
nokogiri (1.18.8-arm-linux-gnu)
|
26
|
+
racc (~> 1.4)
|
27
|
+
nokogiri (1.18.8-arm-linux-musl)
|
28
|
+
racc (~> 1.4)
|
29
|
+
nokogiri (1.18.8-arm64-darwin)
|
30
|
+
racc (~> 1.4)
|
31
|
+
nokogiri (1.18.8-x86_64-darwin)
|
32
|
+
racc (~> 1.4)
|
33
|
+
nokogiri (1.18.8-x86_64-linux-gnu)
|
34
|
+
racc (~> 1.4)
|
35
|
+
nokogiri (1.18.8-x86_64-linux-musl)
|
36
|
+
racc (~> 1.4)
|
37
|
+
racc (1.8.1)
|
38
|
+
rake (13.3.0)
|
39
|
+
rspec (3.13.1)
|
40
|
+
rspec-core (~> 3.13.0)
|
41
|
+
rspec-expectations (~> 3.13.0)
|
42
|
+
rspec-mocks (~> 3.13.0)
|
43
|
+
rspec-core (3.13.4)
|
44
|
+
rspec-support (~> 3.13.0)
|
45
|
+
rspec-expectations (3.13.5)
|
33
46
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
-
rspec-support (~> 3.
|
35
|
-
rspec-mocks (3.5
|
47
|
+
rspec-support (~> 3.13.0)
|
48
|
+
rspec-mocks (3.13.5)
|
36
49
|
diff-lcs (>= 1.2.0, < 2.0)
|
37
|
-
rspec-support (~> 3.
|
38
|
-
rspec-support (3.
|
39
|
-
simplecov (0.
|
40
|
-
docile (~> 1.1
|
50
|
+
rspec-support (~> 3.13.0)
|
51
|
+
rspec-support (3.13.4)
|
52
|
+
simplecov (0.16.1)
|
53
|
+
docile (~> 1.1)
|
41
54
|
json (>= 1.8, < 3)
|
42
55
|
simplecov-html (~> 0.10.0)
|
43
|
-
simplecov-html (0.10.
|
44
|
-
|
56
|
+
simplecov-html (0.10.2)
|
57
|
+
sync (0.5.0)
|
58
|
+
term-ansicolor (1.11.2)
|
45
59
|
tins (~> 1.0)
|
46
|
-
thor (
|
47
|
-
tins (1.
|
48
|
-
|
60
|
+
thor (1.3.2)
|
61
|
+
tins (1.38.0)
|
62
|
+
bigdecimal
|
63
|
+
sync
|
64
|
+
will_paginate (4.0.1)
|
49
65
|
|
50
66
|
PLATFORMS
|
51
|
-
|
67
|
+
aarch64-linux-gnu
|
68
|
+
aarch64-linux-musl
|
69
|
+
arm-linux-gnu
|
70
|
+
arm-linux-musl
|
71
|
+
arm64-darwin
|
72
|
+
x86_64-darwin
|
73
|
+
x86_64-linux-gnu
|
74
|
+
x86_64-linux-musl
|
52
75
|
|
53
76
|
DEPENDENCIES
|
54
77
|
bundler
|
@@ -60,4 +83,4 @@ DEPENDENCIES
|
|
60
83
|
will_paginate_semantic_ui!
|
61
84
|
|
62
85
|
BUNDLED WITH
|
63
|
-
|
86
|
+
2.6.9
|
data/README.md
CHANGED
@@ -63,3 +63,15 @@ The command above create this
|
|
63
63
|

|
64
64
|
|
65
65
|
`class: "right floated"` useful if you are using inside a table. Floats the pagination to the right.
|
66
|
+
|
67
|
+
## Contributing
|
68
|
+
|
69
|
+
First of all, **thank you** for wanting to help!
|
70
|
+
|
71
|
+
1. [Fork it](https://help.github.com/articles/fork-a-repo).
|
72
|
+
2. Create a feature branch - `git checkout -b more_magic`
|
73
|
+
3. Add tests and make your changes
|
74
|
+
4. Check if tests are ok - `rake spec`
|
75
|
+
5. Commit changes - `git commit -am "Added more magic"`
|
76
|
+
6. Push to Github - `git push origin more_magic`
|
77
|
+
7. Send a [pull request](https://help.github.com/articles/using-pull-requests)! :heart:
|
@@ -4,7 +4,7 @@ module WillPaginateSemanticUi
|
|
4
4
|
|
5
5
|
def to_html
|
6
6
|
list_items = pagination.map do |item|
|
7
|
-
item.class ==
|
7
|
+
item.class == Integer ? page_number(item) : send(item)
|
8
8
|
end.join(@options[:link_separator])
|
9
9
|
|
10
10
|
tag("div", list_items, class: ul_class)
|
@@ -20,8 +20,11 @@ module WillPaginateSemanticUi
|
|
20
20
|
|
21
21
|
def previous_or_next_page(page, classname)
|
22
22
|
classLink = "icon item"
|
23
|
-
|
24
|
-
|
23
|
+
unless page
|
24
|
+
tag(:a, tag("i", "", class: "#{classname} chevron icon"), class: classLink + " disabled")
|
25
|
+
else
|
26
|
+
link(tag("i", "", class: "#{classname} chevron icon"), page, {class: classLink})
|
27
|
+
end
|
25
28
|
end
|
26
29
|
|
27
30
|
def gap
|
@@ -31,10 +31,6 @@ describe WillPaginateSemanticUi::GenericRenderer do
|
|
31
31
|
expect(html.at_css('div.disabled.item')).not_to be_nil
|
32
32
|
end
|
33
33
|
|
34
|
-
it "has one item with rel start value" do
|
35
|
-
expect(html.css('[rel~=start]').size).to eql 1
|
36
|
-
end
|
37
|
-
|
38
34
|
it "has two items with rel prev value" do
|
39
35
|
expect(html.css('[rel~=prev]').size).to eql 2
|
40
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: will_paginate_semantic_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael Biriba
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: will_paginate
|
@@ -138,7 +137,6 @@ homepage: https://github.com/rafaelbiriba/will_paginate_semantic_ui
|
|
138
137
|
licenses:
|
139
138
|
- MIT
|
140
139
|
metadata: {}
|
141
|
-
post_install_message:
|
142
140
|
rdoc_options: []
|
143
141
|
require_paths:
|
144
142
|
- lib
|
@@ -153,9 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
151
|
- !ruby/object:Gem::Version
|
154
152
|
version: '0'
|
155
153
|
requirements: []
|
156
|
-
|
157
|
-
rubygems_version: 2.4.8
|
158
|
-
signing_key:
|
154
|
+
rubygems_version: 3.6.9
|
159
155
|
specification_version: 4
|
160
156
|
summary: Integrates the Semantic UI pagination component with will_paginate
|
161
157
|
test_files:
|