will_paginate_bootstrp 0.3.6 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8bb60515f2deb8f2a37560aa3c1181e66a23800b3954c78a4e9e6ccf09df90e
4
- data.tar.gz: f55d350cdd3febe49402be846ed5a14fb791de31dfdafc5702f888469017c95f
3
+ metadata.gz: 0316acada1f0f1cbd50f7f17db58c49953f69b109c931fac8ab9bd462c194702
4
+ data.tar.gz: 1779f08f809f3bd13b85d9b8a21f5f5fb1d2353eac06e9e0d5d1f99ddf0b8d9c
5
5
  SHA512:
6
- metadata.gz: d84564c8c7118a701a8b90cf83efd49ed1284aaf16b4bc2b871930b3b1f7ce2362c1c8acf8c8cd1c2a903e77aa677d888f5bcd2634de61c21de190c62f8f446e
7
- data.tar.gz: 484b31f2d7fa5544448fb6df48e9732336e568aede492afebd5270b18c9f0823bb09dab8e2af3a4f4647e8413636ac9e513b8424805a3689bc2f975b3430602e
6
+ metadata.gz: 7a9a60ed4e8670ebe109e1370de09309c315f4d3f9c60fa5e803646e9bf8f8a84d036b367dc1cc5fb7b0bd55e65da0d47990e3610adf44954b30b48a3ba8f8f1
7
+ data.tar.gz: 75c9766997835ae645f4f6f4c49e9da607ad121621b8079c658656b8dacb163b19ef29c40d1364d093c63eccd3594603f96d59f81b0548022081c413dee4dcca
@@ -26,19 +26,15 @@ module WillPaginateBootstrp
26
26
  protected
27
27
 
28
28
  def page_number(page)
29
- if page == current_page
30
- tag(:li, tag(:span, page, class: 'page-link'), class: 'page-item active')
31
- else
32
- tag(:li, link(page, page, link_options.merge(class: 'page-link', rel: rel_value(page))), class: 'page-item')
33
- end
29
+ return tag(:li, tag(:span, page, class: 'page-link'), class: 'page-item active') if page == current_page
30
+
31
+ tag(:li, link(page, page, link_options.merge(class: 'page-link', rel: rel_value(page))), class: 'page-item')
34
32
  end
35
33
 
36
34
  def previous_or_next_page(page, text, classname)
37
- if page
38
- tag(:li, link(text, page, link_options.merge(class: classname)), class: 'page-item')
39
- else
40
- tag(:li, tag(:span, text, class: classname), class: 'page-item disabled')
41
- end
35
+ return tag(:li, link(text, page, link_options.merge(class: classname)), class: 'page-item') if page
36
+
37
+ tag(:li, tag(:span, text, class: classname), class: 'page-item disabled')
42
38
  end
43
39
 
44
40
  def gap
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WillPaginateBootstrp
4
- VERSION = '0.3.6'
4
+ VERSION = '1.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: will_paginate_bootstrp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergii Demianchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-19 00:00:00.000000000 Z
11
+ date: 2023-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: will_paginate