will_paginate_bootstrp 0.3.5 → 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: 6f58b4c9b8ceb5ab802a5be587efc0b148db0d5b73d20ff71ff0015eb34f1038
4
- data.tar.gz: a648b7b7a7710d99ab0ca191198403fb396301afaf914126a4bc142f3fcec4ff
3
+ metadata.gz: 0316acada1f0f1cbd50f7f17db58c49953f69b109c931fac8ab9bd462c194702
4
+ data.tar.gz: 1779f08f809f3bd13b85d9b8a21f5f5fb1d2353eac06e9e0d5d1f99ddf0b8d9c
5
5
  SHA512:
6
- metadata.gz: 5692e28a3ab1e966f76806cb420115238eb558cb19e55154e6dcd16e01b8fe8ad846e1f4e990cf40ae3b7e5001cb61573ccb3aba2b5a40afcdd2ba39787b1c46
7
- data.tar.gz: 1986c8fa1bd2e0e4e3efacd23fe54bab7093d2308ab7e5eb8331909dfec9fe1e56de39bc50377c9d391ff464f3d81483b16a97e8c5a312521dc556a1811f185e
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.5'
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.5
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-17 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