binco 3.4.0 → 3.5.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: df85684b7a5f9a989f5fc9f2b8cbcac8000bd5daaf48b031265eb566edf39ee5
4
- data.tar.gz: 414ed77b6306b23bfc365be22e193bcf5c905c81caa22eed0b9094eff8ffd99f
3
+ metadata.gz: 2746492f2786b4b9c83a6b7b45bc0409efabde83427b59e5158f3ca312601de0
4
+ data.tar.gz: e11c393ed4dd6c89d4394a4028813e770fd25aff22f2d2fd151d1f98e04adf27
5
5
  SHA512:
6
- metadata.gz: 5e60384c48923e5aefca2f8df5eb9dc36d2f66e9a196f6fc1f39016f06d38b00546cdadbb5ddb60a19ff47ffb168d214ec954ef6ea2b2f048685803c4434797e
7
- data.tar.gz: 2402b7c9387135d466a040d87745f6a8a8375196d789021f0bc6014019c11218d6c3c7d8f00d234d7a6d6a4df9015b54bbaec258435c41965a834f2c94b013ab
6
+ metadata.gz: '081f24e97124e7eb087eeeb5c713b4f2790eaafd058da69ce276eb3874171095066260faa652e562ed33b03cc0b00e447e9af3485519be5eccfb1847a48c77b8'
7
+ data.tar.gz: 37c802b4fd9e3ad41bca61e99e7c61048450025e6b54253a2cf12b92bb911ef796cd78864ca1c0c1f9f5556e1c397a95e52557285ba655fecef3ad770c47914e
data/README.md CHANGED
@@ -115,6 +115,15 @@ end
115
115
  ```
116
116
 
117
117
  ### Pagination
118
+
119
+ ## Will Paginate
120
+
121
+ Add Will Paginate to your Gemfile
122
+
123
+ ```
124
+ gem "will_paginate", '~> 3.0'
125
+ ```
126
+
118
127
  ```ruby
119
128
  # controller
120
129
  @posts = Post.all.page(params[:page])
@@ -5,6 +5,7 @@ module Binco
5
5
  ELLIPSIS = '…'
6
6
 
7
7
  def to_html
8
+ caca
8
9
  list_items = pagination.map do |item|
9
10
  case item
10
11
  when Fixnum
@@ -1 +1 @@
1
- <%= will_paginate collection, renderer: ::Binco::PaginationRenderer %>
1
+ <%= will_paginate(collection, renderer: ::Binco::PaginationRenderer) if defined?(WillPaginate) %>
data/lib/binco/engine.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  require 'jquery-rails'
2
2
  require 'bootstrap'
3
3
  require 'select2-rails'
4
- require 'will_paginate'
5
4
  require 'bootstrap-datepicker-rails'
6
5
 
7
6
  module Binco
data/lib/binco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Binco
2
- VERSION = '3.4.0'
2
+ VERSION = '3.5.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binco
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Camacho
@@ -30,7 +30,7 @@ cert_chain:
30
30
  XdmvXYY6Fr9AHqSdbvphaVu+RqBpkBdGUQCcCZ73NjXSUwgJumx1p1A8e4NXrh1e
31
31
  pYh0/Q==
32
32
  -----END CERTIFICATE-----
33
- date: 2019-04-16 00:00:00.000000000 Z
33
+ date: 2019-07-23 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: railties
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '4.0'
97
- - !ruby/object:Gem::Dependency
98
- name: will_paginate
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '3.0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '3.0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: bootstrap-datepicker-rails
113
99
  requirement: !ruby/object:Gem::Requirement