will_paginate_semantic_ui 2.0.0 → 2.0.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/lib/will_paginate_semantic_ui.rb +1 -1
- data/lib/will_paginate_semantic_ui/{rails.rb → action_view.rb} +1 -1
- data/lib/will_paginate_semantic_ui/sinatra.rb +1 -1
- data/lib/will_paginate_semantic_ui/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7684ba976266cb129f3fd1a039744312f57fd74f
|
4
|
+
data.tar.gz: a30bad402fe56c69dba03c459319d0db15cbe4ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aebe374da6b07646142155ebfe4667f488d17d40e1216f82d772a82a546d3f029e55bff0651e0e3ccba68f959695169f411f4f9fbf73b4e78595f2b7f5bb9946
|
7
|
+
data.tar.gz: 46bb7e47b13a7b9c65fda70e39fc6d75a47f2645d9238a15ca90499450c2308bd0cda9562b696c9197e5262dad12241528632e3949b0ebcf5ca0746b1a7ee7a5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.0.1
|
4
|
+
|
5
|
+
- Fix error when Sinatra and ActionView is available in the same project
|
6
|
+
- Renderer class WillPaginateSemanticUi::Renderer removed. Use WillPaginateSemanticUi::ActionView::Renderer or WillPaginateSemanticUi::Sinatra::Renderer (See docs for more info)
|
7
|
+
|
3
8
|
## 2.0.0
|
4
9
|
|
5
10
|
- Sinatra support
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Will Paginate for Semantic UI
|
2
2
|
|
3
|
-
|
3
|
+
 [](https://codeclimate.com/github/rafaelbiriba/will_paginate_semantic_ui) [](https://coveralls.io/r/rafaelbiriba/will_paginate_semantic_ui?branch=master) [](https://travis-ci.org/rafaelbiriba/will_paginate_semantic_ui)
|
4
4
|
|
5
5
|
#### If you are using [Will Paginate gem](https://github.com/mislav/will_paginate) and [Semantic UI framework](http://semantic-ui.com/), this gem is WHAT YOU NEED!
|
6
6
|
|
@@ -25,7 +25,7 @@ As easy as `gem install will_paginate_semantic_ui` or add `gem "will_paginate_se
|
|
25
25
|
|
26
26
|
In your paginated view, you need to use another render in the will paginate command:
|
27
27
|
|
28
|
-
`<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Renderer %>`
|
28
|
+
`<%= will_paginate @collection, renderer: WillPaginateSemanticUi::ActionView::Renderer %>`
|
29
29
|
|
30
30
|
### Sinatra
|
31
31
|
|
@@ -33,7 +33,7 @@ In your paginated view, you need to use another render in the will paginate comm
|
|
33
33
|
|
34
34
|
In your paginated view, you need to use another render in the will paginate command:
|
35
35
|
|
36
|
-
`<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Renderer %>`
|
36
|
+
`<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Sinatra::Renderer %>`
|
37
37
|
|
38
38
|
**Look the example implementation at** `docs/sinatra_example`
|
39
39
|
|
@@ -51,7 +51,7 @@ rackup
|
|
51
51
|
|
52
52
|
You can also use some will_pagination options to customize your component:
|
53
53
|
|
54
|
-
`<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Renderer, class: "right floated", inner_window: 3 %>
|
54
|
+
`<%= will_paginate @collection, renderer: WillPaginateSemanticUi::ActionView::Renderer, class: "right floated", inner_window: 3 %>
|
55
55
|
`
|
56
56
|
|
57
57
|
The command above create this
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "will_paginate/view_helpers/action_view"
|
2
2
|
require "will_paginate_semantic_ui/generic_renderer"
|
3
3
|
|
4
|
-
module WillPaginateSemanticUi
|
4
|
+
module WillPaginateSemanticUi::ActionView
|
5
5
|
class Renderer < WillPaginate::ActionView::LinkRenderer
|
6
6
|
include WillPaginateSemanticUi::GenericRenderer
|
7
7
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "will_paginate/view_helpers/sinatra"
|
2
2
|
require "will_paginate_semantic_ui/generic_renderer"
|
3
3
|
|
4
|
-
module WillPaginateSemanticUi
|
4
|
+
module WillPaginateSemanticUi::Sinatra
|
5
5
|
class Renderer < WillPaginate::Sinatra::LinkRenderer
|
6
6
|
include WillPaginateSemanticUi::GenericRenderer
|
7
7
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: will_paginate_semantic_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael Biriba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: will_paginate
|
@@ -126,8 +126,8 @@ files:
|
|
126
126
|
- README.md
|
127
127
|
- Rakefile
|
128
128
|
- lib/will_paginate_semantic_ui.rb
|
129
|
+
- lib/will_paginate_semantic_ui/action_view.rb
|
129
130
|
- lib/will_paginate_semantic_ui/generic_renderer.rb
|
130
|
-
- lib/will_paginate_semantic_ui/rails.rb
|
131
131
|
- lib/will_paginate_semantic_ui/sinatra.rb
|
132
132
|
- lib/will_paginate_semantic_ui/version.rb
|
133
133
|
- spec/lib/will_paginate_semantic_ui/generic_renderer_spec.rb
|