kaminari 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kaminari might be problematic. Click here for more details.

checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 117c68d8324470079a8c8a6eeaa3810f85c12db6
4
+ data.tar.gz: 7b2782d769a5f11cdae40b5235d32f52a38cb0b7
5
+ SHA512:
6
+ metadata.gz: 2c4e2d2cec8d2b0590956a935271d45277843a3acf507848be5c76098f79d072574f06447c76fbd5398bbf212be3b37bfd0c104d6568ca7a52a09f51cc233010
7
+ data.tar.gz: 5f4bfd98606eddfffa12c4b52a004183a110ac9c7b32c6b80f28fd58f7265379c8b55e3d2a258cfb31e3459e97fd694aa9bec62e5f1d0aad051517bbca33ec62
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.16.1
2
+
3
+ * Fix a bug where :theme option for #paginate method doesn't work properly
4
+ #566 [commstratdev]
5
+
1
6
  == 0.16.0
2
7
 
3
8
  * Add support for mongoid max_scan option #500 [aptx4869]
@@ -25,7 +25,7 @@ module Kaminari
25
25
  h[:right] = outer_window if h[:right] == 0
26
26
  end
27
27
  @template, @options = template, options
28
- @theme = @options.delete(:theme)
28
+ @theme = @options[:theme]
29
29
  @views_prefix = @options[:views_prefix]
30
30
  @window_options.merge! @options
31
31
  @window_options[:current_page] = @options[:current_page] = PageProxy.new(@window_options, @options[:current_page], nil)
@@ -17,7 +17,7 @@ module Kaminari
17
17
  @template, @options = template, options.dup
18
18
  @param_name = @options.delete(:param_name) || Kaminari.config.param_name
19
19
  @theme = @options.delete(:theme)
20
- @views_prefix = @options[:views_prefix]
20
+ @views_prefix = @options.delete(:views_prefix)
21
21
  @params = @options[:params] ? template.params.merge(@options.delete :params) : template.params
22
22
  end
23
23
 
@@ -1,3 +1,3 @@
1
1
  module Kaminari
2
- VERSION = '0.16.0'
2
+ VERSION = '0.16.1'
3
3
  end
@@ -0,0 +1 @@
1
+ <li class="bootstrap-page-link"><%= link_to page, url %></li>
@@ -0,0 +1,7 @@
1
+ <div class="bootstrap-paginator">
2
+ <%= paginator.render do -%>
3
+ <% each_page do |page| %>
4
+ <%= page_tag(page) -%>
5
+ <% end %>
6
+ <% end %>
7
+ </div>
@@ -16,6 +16,13 @@ describe 'Kaminari::ActionViewExtension', :if => defined?(Rails)do
16
16
  end
17
17
  end
18
18
 
19
+ context 'accepts :theme option' do
20
+ before { helper.controller.append_view_path "spec/fake_app/views" }
21
+ subject { helper.paginate @users, :theme => "bootstrap", :params => {:controller => 'users', :action => 'index'} }
22
+ it { should match(/bootstrap-paginator/) }
23
+ it { should match(/bootstrap-page-link/) }
24
+ end
25
+
19
26
  context 'accepts :view_prefix option' do
20
27
  before { helper.controller.append_view_path "spec/fake_app/views" }
21
28
  subject { helper.paginate @users, :views_prefix => "alternative/", :params => {:controller => 'users', :action => 'index'} }
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaminari
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
5
- prerelease:
4
+ version: 0.16.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Akira Matsuda
@@ -12,166 +11,146 @@ authors:
12
11
  autorequire:
13
12
  bindir: bin
14
13
  cert_chain: []
15
- date: 2014-06-08 00:00:00.000000000 Z
14
+ date: 2014-06-11 00:00:00.000000000 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: activesupport
19
18
  requirement: !ruby/object:Gem::Requirement
20
- none: false
21
19
  requirements:
22
- - - ! '>='
20
+ - - ">="
23
21
  - !ruby/object:Gem::Version
24
22
  version: 3.0.0
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
- - - ! '>='
27
+ - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: 3.0.0
33
30
  - !ruby/object:Gem::Dependency
34
31
  name: actionpack
35
32
  requirement: !ruby/object:Gem::Requirement
36
- none: false
37
33
  requirements:
38
- - - ! '>='
34
+ - - ">="
39
35
  - !ruby/object:Gem::Version
40
36
  version: 3.0.0
41
37
  type: :runtime
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
- - - ! '>='
41
+ - - ">="
47
42
  - !ruby/object:Gem::Version
48
43
  version: 3.0.0
49
44
  - !ruby/object:Gem::Dependency
50
45
  name: bundler
51
46
  requirement: !ruby/object:Gem::Requirement
52
- none: false
53
47
  requirements:
54
- - - ! '>='
48
+ - - ">="
55
49
  - !ruby/object:Gem::Version
56
50
  version: 1.0.0
57
51
  type: :development
58
52
  prerelease: false
59
53
  version_requirements: !ruby/object:Gem::Requirement
60
- none: false
61
54
  requirements:
62
- - - ! '>='
55
+ - - ">="
63
56
  - !ruby/object:Gem::Version
64
57
  version: 1.0.0
65
58
  - !ruby/object:Gem::Dependency
66
59
  name: rake
67
60
  requirement: !ruby/object:Gem::Requirement
68
- none: false
69
61
  requirements:
70
- - - ! '>='
62
+ - - ">="
71
63
  - !ruby/object:Gem::Version
72
64
  version: '0'
73
65
  type: :development
74
66
  prerelease: false
75
67
  version_requirements: !ruby/object:Gem::Requirement
76
- none: false
77
68
  requirements:
78
- - - ! '>='
69
+ - - ">="
79
70
  - !ruby/object:Gem::Version
80
71
  version: '0'
81
72
  - !ruby/object:Gem::Dependency
82
73
  name: tzinfo
83
74
  requirement: !ruby/object:Gem::Requirement
84
- none: false
85
75
  requirements:
86
- - - ! '>='
76
+ - - ">="
87
77
  - !ruby/object:Gem::Version
88
78
  version: '0'
89
79
  type: :development
90
80
  prerelease: false
91
81
  version_requirements: !ruby/object:Gem::Requirement
92
- none: false
93
82
  requirements:
94
- - - ! '>='
83
+ - - ">="
95
84
  - !ruby/object:Gem::Version
96
85
  version: '0'
97
86
  - !ruby/object:Gem::Dependency
98
87
  name: rspec
99
88
  requirement: !ruby/object:Gem::Requirement
100
- none: false
101
89
  requirements:
102
- - - ! '>='
90
+ - - ">="
103
91
  - !ruby/object:Gem::Version
104
92
  version: '0'
105
93
  type: :development
106
94
  prerelease: false
107
95
  version_requirements: !ruby/object:Gem::Requirement
108
- none: false
109
96
  requirements:
110
- - - ! '>='
97
+ - - ">="
111
98
  - !ruby/object:Gem::Version
112
99
  version: '0'
113
100
  - !ruby/object:Gem::Dependency
114
101
  name: rr
115
102
  requirement: !ruby/object:Gem::Requirement
116
- none: false
117
103
  requirements:
118
- - - ! '>='
104
+ - - ">="
119
105
  - !ruby/object:Gem::Version
120
106
  version: '0'
121
107
  type: :development
122
108
  prerelease: false
123
109
  version_requirements: !ruby/object:Gem::Requirement
124
- none: false
125
110
  requirements:
126
- - - ! '>='
111
+ - - ">="
127
112
  - !ruby/object:Gem::Version
128
113
  version: '0'
129
114
  - !ruby/object:Gem::Dependency
130
115
  name: capybara
131
116
  requirement: !ruby/object:Gem::Requirement
132
- none: false
133
117
  requirements:
134
- - - ! '>='
118
+ - - ">="
135
119
  - !ruby/object:Gem::Version
136
120
  version: '1.0'
137
121
  type: :development
138
122
  prerelease: false
139
123
  version_requirements: !ruby/object:Gem::Requirement
140
- none: false
141
124
  requirements:
142
- - - ! '>='
125
+ - - ">="
143
126
  - !ruby/object:Gem::Version
144
127
  version: '1.0'
145
128
  - !ruby/object:Gem::Dependency
146
129
  name: database_cleaner
147
130
  requirement: !ruby/object:Gem::Requirement
148
- none: false
149
131
  requirements:
150
- - - ~>
132
+ - - "~>"
151
133
  - !ruby/object:Gem::Version
152
134
  version: 1.2.0
153
135
  type: :development
154
136
  prerelease: false
155
137
  version_requirements: !ruby/object:Gem::Requirement
156
- none: false
157
138
  requirements:
158
- - - ~>
139
+ - - "~>"
159
140
  - !ruby/object:Gem::Version
160
141
  version: 1.2.0
161
142
  - !ruby/object:Gem::Dependency
162
143
  name: rdoc
163
144
  requirement: !ruby/object:Gem::Requirement
164
- none: false
165
145
  requirements:
166
- - - ! '>='
146
+ - - ">="
167
147
  - !ruby/object:Gem::Version
168
148
  version: '0'
169
149
  type: :development
170
150
  prerelease: false
171
151
  version_requirements: !ruby/object:Gem::Requirement
172
- none: false
173
152
  requirements:
174
- - - ! '>='
153
+ - - ">="
175
154
  - !ruby/object:Gem::Version
176
155
  version: '0'
177
156
  description: Kaminari is a Scope & Engine based, clean, powerful, agnostic, customizable
@@ -183,11 +162,11 @@ extensions: []
183
162
  extra_rdoc_files:
184
163
  - README.rdoc
185
164
  files:
186
- - .document
187
- - .gemtest
188
- - .gitignore
189
- - .rspec
190
- - .travis.yml
165
+ - ".document"
166
+ - ".gemtest"
167
+ - ".gitignore"
168
+ - ".rspec"
169
+ - ".travis.yml"
191
170
  - CHANGELOG.rdoc
192
171
  - Gemfile
193
172
  - MIT-LICENSE
@@ -270,6 +249,8 @@ files:
270
249
  - spec/fake_app/sinatra_app.rb
271
250
  - spec/fake_app/views/alternative/kaminari/_first_page.html.erb
272
251
  - spec/fake_app/views/alternative/kaminari/_paginator.html.erb
252
+ - spec/fake_app/views/kaminari/bootstrap/_page.html.erb
253
+ - spec/fake_app/views/kaminari/bootstrap/_paginator.html.erb
273
254
  - spec/fake_gem.rb
274
255
  - spec/generators/views_generator_spec.rb
275
256
  - spec/helpers/action_view_extension_spec.rb
@@ -291,27 +272,26 @@ files:
291
272
  homepage: https://github.com/amatsuda/kaminari
292
273
  licenses:
293
274
  - MIT
275
+ metadata: {}
294
276
  post_install_message:
295
277
  rdoc_options: []
296
278
  require_paths:
297
279
  - lib
298
280
  required_ruby_version: !ruby/object:Gem::Requirement
299
- none: false
300
281
  requirements:
301
- - - ! '>='
282
+ - - ">="
302
283
  - !ruby/object:Gem::Version
303
284
  version: '0'
304
285
  required_rubygems_version: !ruby/object:Gem::Requirement
305
- none: false
306
286
  requirements:
307
- - - ! '>='
287
+ - - ">="
308
288
  - !ruby/object:Gem::Version
309
289
  version: '0'
310
290
  requirements: []
311
291
  rubyforge_project: kaminari
312
- rubygems_version: 1.8.23.2
292
+ rubygems_version: 2.2.2
313
293
  signing_key:
314
- specification_version: 3
294
+ specification_version: 4
315
295
  summary: A pagination engine plugin for Rails 3+ and other modern frameworks
316
296
  test_files:
317
297
  - spec/config/config_spec.rb
@@ -327,6 +307,8 @@ test_files:
327
307
  - spec/fake_app/sinatra_app.rb
328
308
  - spec/fake_app/views/alternative/kaminari/_first_page.html.erb
329
309
  - spec/fake_app/views/alternative/kaminari/_paginator.html.erb
310
+ - spec/fake_app/views/kaminari/bootstrap/_page.html.erb
311
+ - spec/fake_app/views/kaminari/bootstrap/_paginator.html.erb
330
312
  - spec/fake_gem.rb
331
313
  - spec/generators/views_generator_spec.rb
332
314
  - spec/helpers/action_view_extension_spec.rb