will_paginate_semantic_ui 2.0.1 → 2.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7684ba976266cb129f3fd1a039744312f57fd74f
4
- data.tar.gz: a30bad402fe56c69dba03c459319d0db15cbe4ba
3
+ metadata.gz: fc883d7585180f6eb62b455ee97ea8c427ff5cdb
4
+ data.tar.gz: 5546e7b07f2b564f359e1ef8403fc16ba66f50e4
5
5
  SHA512:
6
- metadata.gz: aebe374da6b07646142155ebfe4667f488d17d40e1216f82d772a82a546d3f029e55bff0651e0e3ccba68f959695169f411f4f9fbf73b4e78595f2b7f5bb9946
7
- data.tar.gz: 46bb7e47b13a7b9c65fda70e39fc6d75a47f2645d9238a15ca90499450c2308bd0cda9562b696c9197e5262dad12241528632e3949b0ebcf5ca0746b1a7ee7a5
6
+ metadata.gz: dd99e970c0e288a296dcacfb64a393fde2928fe672afd926337ed91e0449acf89231228ae29fdd0da2c873ef577b09943bc79e341c625033144ede5092aac59a
7
+ data.tar.gz: 8555ce43c95853be912e66c87828b1b16bc63980842e5575801eb932f0e50a4c603cfa3edd60476102331991353275e8be9a74581cf5eb837e90c6a46010a62f
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.0
4
+
5
+ - Avoid creation of `/false` links when that page not exists. (For more details: https://github.com/rafaelbiriba/will_paginate_semantic_ui/pull/1 )
6
+
3
7
  ## 2.0.1
4
8
 
5
9
  - Fix error when Sinatra and ActionView is available in the same project
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- will_paginate_semantic_ui (2.0.1)
4
+ will_paginate_semantic_ui (2.1.0)
5
5
  will_paginate (> 3.0.0)
6
6
 
7
7
  GEM
@@ -60,4 +60,4 @@ DEPENDENCIES
60
60
  will_paginate_semantic_ui!
61
61
 
62
62
  BUNDLED WITH
63
- 1.12.5
63
+ 1.14.4
data/README.md CHANGED
@@ -63,3 +63,15 @@ The command above create this
63
63
  ![Example](https://raw.githubusercontent.com/rafaelbiriba/will_paginate_semantic_ui/master/docs/example3.png)
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:
@@ -20,8 +20,11 @@ module WillPaginateSemanticUi
20
20
 
21
21
  def previous_or_next_page(page, classname)
22
22
  classLink = "icon item"
23
- classLink += " disabled" if !page
24
- link(tag("i", "", class: "#{classname} chevron icon"), page, {class: classLink})
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
@@ -1,3 +1,3 @@
1
1
  module WillPaginateSemanticUi
2
- VERSION = "2.0.1"
2
+ VERSION = "2.1.0"
3
3
  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.1
4
+ version: 2.1.0
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 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: will_paginate
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.4.8
157
+ rubygems_version: 2.6.10
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Integrates the Semantic UI pagination component with will_paginate