will_paginate_bootstrp 0.2.6 → 0.2.9

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: 794b24114778af868fdd7f6af1e1f7c734ce5be697f44100090cefd759cade78
4
- data.tar.gz: 1ebfaa5be7611adbed0974895bbbf3ce7fb3a7936f6e0a3921a4cab1b8689dc2
3
+ metadata.gz: 92a91975867d22d43c9eaa95a3f335ada735bffa06e5ef2f58a3682b03c271fb
4
+ data.tar.gz: 03ed72070dee6d67eec0b0e464e5e1a1865f734233feb2ec862e16799183e7d4
5
5
  SHA512:
6
- metadata.gz: 58a3276851db92f0f103cf1b8d44179d9181e2bb36f4b38697177126add5bfdb176df4763cd96a6b8f4f4006614eafd3895902da24b3aa283750ed5f7d0862cb
7
- data.tar.gz: b8c3812de9c3c703a975da5ee304f2a2c609d405359b45e084c7b4dadbc439372a64c1aafcbc3998fc92a42c0c6b220ca91efa1af2137a67eb9f47a5996d070b
6
+ metadata.gz: a6621f5a8d054778a8ba7487e43267b8bbe82c77218328df50dd13f2e6b0b490ef35c7055358306fc84ffebeb8e71c4e2a0f8d23210649f231aa2c0aa4ce785c
7
+ data.tar.gz: 34d8b4e77eaf6668ac23995c899585f2f54b05a18d21b5d4b0b24a9cacabf504144401a1d4def050e43df2c03f89c22a62c4cd67aaa9d6df26e663d4d04483d8
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'will_paginate/view_helpers/action_view'
4
+ require 'will_paginate_bootstrp/renderer'
5
+
6
+ module WillPaginate
7
+ module ActionView
8
+ def will_paginate(collection = nil, options = {})
9
+ options, collection = collection, nil if collection.is_a? Hash
10
+ collection ||= infer_collection_from_controller
11
+
12
+ options = options.symbolize_keys
13
+ options[:renderer] ||= WillPaginateBootstrp::Renderer
14
+ options[:list_classes] ||= ['pagination']
15
+ options[:previous_label] ||= WillPaginateBootstrp::Renderer::PREVIOUS_LABEL
16
+ options[:next_label] ||= WillPaginateBootstrp::Renderer::NEXT_LABEL
17
+
18
+ super(collection, options)
19
+ end
20
+ end
21
+ end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'will_paginate/view_helpers/action_view'
3
4
 
4
5
  module WillPaginateBootstrp
@@ -57,4 +58,4 @@ module WillPaginateBootstrp
57
58
  @options[:link_options] || {}
58
59
  end
59
60
  end
60
- end
61
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WillPaginateBootstrp
4
- VERSION = '0.2.6'
4
+ VERSION = '0.2.9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: will_paginate_bootstrp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergii Demianchuk
@@ -24,13 +24,14 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.3.1
27
- description: " Gem will_paginate_bootstrp integrates the Twitter Bootstrap pagination
28
- component with the Gem will_paginate\n"
27
+ description: will_paginate_bootstrp provides Twitter Bootstrap pagination like design
28
+ on top of will_paginate gem
29
29
  email: sergeydemjanchyk@gmail.com
30
30
  executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
+ - config/initializers/will_paginate.rb
34
35
  - lib/will_paginate_bootstrp.rb
35
36
  - lib/will_paginate_bootstrp/renderer.rb
36
37
  - lib/will_paginate_bootstrp/version.rb
@@ -56,5 +57,5 @@ requirements: []
56
57
  rubygems_version: 3.0.3
57
58
  signing_key:
58
59
  specification_version: 4
59
- summary: Integrates the Twitter Bootstrap pagination component with will_paginate
60
+ summary: Integrates Twitter Bootstrap pagination component with will_paginate gem
60
61
  test_files: []