binco 3.5.1 → 3.5.2

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
  SHA256:
3
- metadata.gz: aaa833be9cba23cb9a6c598a8bda31c066d194d5521aa4bd2386961d4a62ebdc
4
- data.tar.gz: 8341f9fc868dc978f665561f7a3a63458c72c35759247be86f8fc52ba82cbf03
3
+ metadata.gz: a592b6c6a8358f05a7ad46e4bfbad6e78db970e1e1bce8329c7ae24edce6a5fb
4
+ data.tar.gz: 0100b871dd2683c14667e4f72925e3b3807e6bff0902dcb0b91e1aa4eb86264a
5
5
  SHA512:
6
- metadata.gz: 0047e8f851e0fbff1dab0b7c65eb7f5e3af07693c5e1025db96f8ad2989425ef68e0cdb939b5e712b3bde3f38e2088180c481336bfa67c0004d3dcac7674f8b0
7
- data.tar.gz: cb1c648839248fb6d036cb7d05954afb13b225fbf3806f1fe665783440d596e4143058a296c3b03c61cd3583a0a3b2f2517cc8a9e1eb3560f7b5c90161841601
6
+ metadata.gz: c0b38cc430547cea1f80137e4de3c04eebb786d6f288874781067f3069c9911a328e42982e2ce91f6a3495376e8aa87d519509088a91cd68cf5654af390035e6
7
+ data.tar.gz: 8286232735bd0642e24010fe15177fec288308e5b6cc08e3105eeb6ba2e10c8e71d441e5ef93296cf0a32605dc5bd2ef0a616969887981ec82b9cf7e5cbd1d9b
@@ -1,65 +1,66 @@
1
- require 'will_paginate/view_helpers/action_view'
1
+ if defined?(::WillPaginate)
2
+ require 'will_paginate/view_helpers/action_view'
2
3
 
3
- module Binco
4
- class PaginationRenderer < WillPaginate::ActionView::LinkRenderer
5
- ELLIPSIS = '&hellip;'
4
+ module Binco
5
+ class PaginationRenderer < WillPaginate::ActionView::LinkRenderer
6
+ ELLIPSIS = '&hellip;'
6
7
 
7
- def to_html
8
- caca
9
- list_items = pagination.map do |item|
10
- case item
11
- when Fixnum
12
- page_number(item)
13
- else
14
- send(item)
15
- end
16
- end.join(@options[:link_separator])
8
+ def to_html
9
+ list_items = pagination.map do |item|
10
+ case item
11
+ when Fixnum
12
+ page_number(item)
13
+ else
14
+ send(item)
15
+ end
16
+ end.join(@options[:link_separator])
17
17
 
18
- list_wrapper = tag :ul, list_items, class: 'pagination', role: 'group'
19
- tag :nav, list_wrapper, class: @options[:class]
20
- end
18
+ list_wrapper = tag :ul, list_items, class: 'pagination', role: 'group'
19
+ tag :nav, list_wrapper, class: @options[:class]
20
+ end
21
21
 
22
- def container_attributes
23
- super.except(*[:link_options])
24
- end
22
+ def container_attributes
23
+ super.except(*[:link_options])
24
+ end
25
25
 
26
- protected
26
+ protected
27
27
 
28
- def page_number(page)
29
- link_options = @options[:link_options] || {}
28
+ def page_number(page)
29
+ link_options = @options[:link_options] || {}
30
30
 
31
- if page == current_page
32
- tag :li, tag(:span, page, class: 'page-link'), class: 'page-item active'
33
- else
34
- link_options.merge! class: 'page-link', rel: rel_value(page)
35
- tag :li, link(page, page, link_options), class: 'page-item'
31
+ if page == current_page
32
+ tag :li, tag(:span, page, class: 'page-link'), class: 'page-item active'
33
+ else
34
+ link_options.merge! class: 'page-link', rel: rel_value(page)
35
+ tag :li, link(page, page, link_options), class: 'page-item'
36
+ end
36
37
  end
37
- end
38
38
 
39
- def previous_or_next_page(page, text, classname)
40
- link_options = @options[:link_options] || {}
39
+ def previous_or_next_page(page, text, classname)
40
+ link_options = @options[:link_options] || {}
41
41
 
42
- if page
43
- link_wrapper = link(text, page, link_options.merge(class: 'page-link'))
44
- tag :li, link_wrapper, class: '%s page-item' % classname
45
- else
46
- span_wrapper = tag(:span, text, class: 'page-link')
47
- tag :li, span_wrapper, class: '%s page-item disabled' % classname
42
+ if page
43
+ link_wrapper = link(text, page, link_options.merge(class: 'page-link'))
44
+ tag :li, link_wrapper, class: '%s page-item' % classname
45
+ else
46
+ span_wrapper = tag(:span, text, class: 'page-link')
47
+ tag :li, span_wrapper, class: '%s page-item disabled' % classname
48
+ end
48
49
  end
49
- end
50
50
 
51
- def gap
52
- tag :li, tag(:i, ELLIPSIS, class: 'page-link'), class: 'page-item disabled'
53
- end
51
+ def gap
52
+ tag :li, tag(:i, ELLIPSIS, class: 'page-link'), class: 'page-item disabled'
53
+ end
54
54
 
55
- def previous_page
56
- num = @collection.current_page > 1 && @collection.current_page - 1
57
- previous_or_next_page num, @options[:previous_label], 'previous'
58
- end
55
+ def previous_page
56
+ num = @collection.current_page > 1 && @collection.current_page - 1
57
+ previous_or_next_page num, @options[:previous_label], 'previous'
58
+ end
59
59
 
60
- def next_page
61
- num = @collection.current_page < @collection.total_pages && @collection.current_page + 1
62
- previous_or_next_page num, @options[:next_label], 'next'
60
+ def next_page
61
+ num = @collection.current_page < @collection.total_pages && @collection.current_page + 1
62
+ previous_or_next_page num, @options[:next_label], 'next'
63
+ end
63
64
  end
64
65
  end
65
66
  end
@@ -1 +1 @@
1
- <%= will_paginate(collection, renderer: ::Binco::PaginationRenderer) if defined?(WillPaginate) %>
1
+ <%= will_paginate(collection, renderer: ::Binco::PaginationRenderer) if defined?(::WillPaginate) %>
@@ -1,3 +1,3 @@
1
1
  module Binco
2
- VERSION = '3.5.1'
2
+ VERSION = '3.5.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binco
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 3.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Camacho
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2019-07-25 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDYDCCAkigAwIBAgIBATANBgkqhkiG9w0BAQUFADA7MQ8wDQYDVQQDDAZ2aWN0
14
+ b3IxFDASBgoJkiaJk/IsZAEZFgRjb2RuMRIwEAYKCZImiZPyLGQBGRYCbXgwHhcN
15
+ MTUwMz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jXSUwgJumx1p1A8e4NXrh1e
31
+ pYh0/Q==
32
+ -----END CERTIFICATE-----
33
+ date: 2019-08-19 00:00:00.000000000 Z
12
34
  dependencies:
13
35
  - !ruby/object:Gem::Dependency
14
36
  name: railties
@@ -76,22 +98,22 @@ dependencies:
76
98
  name: bootstrap-datepicker-rails
77
99
  requirement: !ruby/object:Gem::Requirement
78
100
  requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: 1.6.0
82
101
  - - "~>"
83
102
  - !ruby/object:Gem::Version
84
103
  version: '1.6'
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: 1.6.0
85
107
  type: :runtime
86
108
  prerelease: false
87
109
  version_requirements: !ruby/object:Gem::Requirement
88
110
  requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- version: 1.6.0
92
111
  - - "~>"
93
112
  - !ruby/object:Gem::Version
94
113
  version: '1.6'
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 1.6.0
95
117
  - !ruby/object:Gem::Dependency
96
118
  name: activesupport
97
119
  requirement: !ruby/object:Gem::Requirement
@@ -209,7 +231,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
231
  - !ruby/object:Gem::Version
210
232
  version: '0'
211
233
  requirements: []
212
- rubygems_version: 3.0.1
234
+ rubyforge_project:
235
+ rubygems_version: 2.7.6
213
236
  signing_key:
214
237
  specification_version: 4
215
238
  summary: Bootstrap Sass for use in Ruby on Rails applications