will_paginate_semantic_ui 1.0.0 → 2.0.0
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 +21 -1
- data/lib/will_paginate_semantic_ui/sinatra.rb +8 -0
- data/lib/will_paginate_semantic_ui/version.rb +1 -1
- data/lib/will_paginate_semantic_ui.rb +4 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b7169b9752d757220ec53b05398a8948cd19504
|
4
|
+
data.tar.gz: 9b6e9553fefcdff20e7030fded86376f054e054e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dbd511658ed2edec0eac772ce0b0ceb6619ba7c3d6f802f84eec45c7796f6abec1b68b7f9669fcd448df5d2e452e6425d36e74352d06aa153911153b04a5c1a
|
7
|
+
data.tar.gz: 6e018daf1e61fc7bc7b2ab49a41002ee6130a5055b88282f1ca1553cf1fbf38509e2f11b8a4a9101c6321d0d8df4a942454c81f679dcf4c14863bf48a6d7fc06
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -23,10 +23,30 @@ As easy as `gem install will_paginate_semantic_ui` or add `gem "will_paginate_se
|
|
23
23
|
|
24
24
|
### Rails
|
25
25
|
|
26
|
-
|
26
|
+
In your paginated view, you need to use another render in the will paginate command:
|
27
27
|
|
28
28
|
`<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Renderer %>`
|
29
29
|
|
30
|
+
### Sinatra
|
31
|
+
|
32
|
+
`require "will_paginate_semantic_ui"` in your Sinatra app.
|
33
|
+
|
34
|
+
In your paginated view, you need to use another render in the will paginate command:
|
35
|
+
|
36
|
+
`<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Renderer %>`
|
37
|
+
|
38
|
+
**Look the example implementation at** `docs/sinatra_example`
|
39
|
+
|
40
|
+

|
41
|
+
|
42
|
+
To run the example:
|
43
|
+
|
44
|
+
```
|
45
|
+
cd docs/sinatra_example
|
46
|
+
bundle install
|
47
|
+
rackup
|
48
|
+
```
|
49
|
+
|
30
50
|
## Tuning
|
31
51
|
|
32
52
|
You can also use some will_pagination options to customize your component:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: will_paginate_semantic_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael Biriba
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- lib/will_paginate_semantic_ui.rb
|
129
129
|
- lib/will_paginate_semantic_ui/generic_renderer.rb
|
130
130
|
- lib/will_paginate_semantic_ui/rails.rb
|
131
|
+
- lib/will_paginate_semantic_ui/sinatra.rb
|
131
132
|
- lib/will_paginate_semantic_ui/version.rb
|
132
133
|
- spec/lib/will_paginate_semantic_ui/generic_renderer_spec.rb
|
133
134
|
- spec/spec_helper.rb
|