blacklight_range_limit 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7fd71837c9733a9d2ea4ca5eb4bbff71697ab2e1
4
+ data.tar.gz: fdc729acd63a5a49852b837d51becea0b3cb4b70
5
+ SHA512:
6
+ metadata.gz: dbdeb05576a7296203d86e15ff697053f8b59e0d938a00f5f3948946a11fc96ee3ae8a4f1bfdc83690936fb3fccbc71759efd64ec7ce57f168b51a5a40899a98
7
+ data.tar.gz: 5a30c15bf81ab9eee1fb553a7c2752d907aa0f6ac48124238b3e8d735c59043db5f2a5210cad67107bf9bd793b8e3be1e8f817f79bd2ac7960e55cc487647eeb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.2.0
@@ -3,7 +3,22 @@
3
3
  # display.
4
4
  module BlacklightRangeLimit::ViewHelperOverride
5
5
 
6
+ def has_range_limit_parameters?(params = params)
7
+ params[:range] &&
8
+ params[:range].any? do |key, v|
9
+ v.present? && v.respond_to?(:'[]') &&
10
+ (v["begin"].present? || v["end"].present? || v["missing"].present?)
11
+ end
12
+ end
6
13
 
14
+ # over-ride, call super, but make sure our range limits count too
15
+ def has_search_parameters?
16
+ super || has_range_limit_parameters?
17
+ end
18
+
19
+ def query_has_constraints?(params = params)
20
+ super || has_range_limit_parameters?(params)
21
+ end
7
22
 
8
23
  def facet_partial_name(display_facet)
9
24
  return "blacklight_range_limit/range_limit_panel" if range_config(display_facet.name) and should_show_limit(display_facet.name)
metadata CHANGED
@@ -1,164 +1,145 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_range_limit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
5
- prerelease:
4
+ version: 2.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jonathan Rochkind
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-02-11 00:00:00.000000000 Z
11
+ date: 2014-08-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.0'
22
- - - <
20
+ - - "<"
23
21
  - !ruby/object:Gem::Version
24
22
  version: '5.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'
33
- - - <
30
+ - - "<"
34
31
  - !ruby/object:Gem::Version
35
32
  version: '5.0'
36
33
  - !ruby/object:Gem::Dependency
37
34
  name: jquery-rails
38
35
  requirement: !ruby/object:Gem::Requirement
39
- none: false
40
36
  requirements:
41
- - - ! '>='
37
+ - - ">="
42
38
  - !ruby/object:Gem::Version
43
39
  version: '0'
44
40
  type: :runtime
45
41
  prerelease: false
46
42
  version_requirements: !ruby/object:Gem::Requirement
47
- none: false
48
43
  requirements:
49
- - - ! '>='
44
+ - - ">="
50
45
  - !ruby/object:Gem::Version
51
46
  version: '0'
52
47
  - !ruby/object:Gem::Dependency
53
48
  name: blacklight
54
49
  requirement: !ruby/object:Gem::Requirement
55
- none: false
56
50
  requirements:
57
- - - ~>
51
+ - - "~>"
58
52
  - !ruby/object:Gem::Version
59
53
  version: '4.0'
60
54
  type: :runtime
61
55
  prerelease: false
62
56
  version_requirements: !ruby/object:Gem::Requirement
63
- none: false
64
57
  requirements:
65
- - - ~>
58
+ - - "~>"
66
59
  - !ruby/object:Gem::Version
67
60
  version: '4.0'
68
61
  - !ruby/object:Gem::Dependency
69
62
  name: rspec
70
63
  requirement: !ruby/object:Gem::Requirement
71
- none: false
72
64
  requirements:
73
- - - ! '>='
65
+ - - ">="
74
66
  - !ruby/object:Gem::Version
75
67
  version: '2.0'
76
68
  type: :development
77
69
  prerelease: false
78
70
  version_requirements: !ruby/object:Gem::Requirement
79
- none: false
80
71
  requirements:
81
- - - ! '>='
72
+ - - ">="
82
73
  - !ruby/object:Gem::Version
83
74
  version: '2.0'
84
75
  - !ruby/object:Gem::Dependency
85
76
  name: rspec-rails
86
77
  requirement: !ruby/object:Gem::Requirement
87
- none: false
88
78
  requirements:
89
- - - ! '>='
79
+ - - ">="
90
80
  - !ruby/object:Gem::Version
91
81
  version: '0'
92
82
  type: :development
93
83
  prerelease: false
94
84
  version_requirements: !ruby/object:Gem::Requirement
95
- none: false
96
85
  requirements:
97
- - - ! '>='
86
+ - - ">="
98
87
  - !ruby/object:Gem::Version
99
88
  version: '0'
100
89
  - !ruby/object:Gem::Dependency
101
90
  name: capybara
102
91
  requirement: !ruby/object:Gem::Requirement
103
- none: false
104
92
  requirements:
105
- - - ! '>='
93
+ - - ">="
106
94
  - !ruby/object:Gem::Version
107
95
  version: '0'
108
96
  type: :development
109
97
  prerelease: false
110
98
  version_requirements: !ruby/object:Gem::Requirement
111
- none: false
112
99
  requirements:
113
- - - ! '>='
100
+ - - ">="
114
101
  - !ruby/object:Gem::Version
115
102
  version: '0'
116
103
  - !ruby/object:Gem::Dependency
117
104
  name: sqlite3
118
105
  requirement: !ruby/object:Gem::Requirement
119
- none: false
120
106
  requirements:
121
- - - ! '>='
107
+ - - ">="
122
108
  - !ruby/object:Gem::Version
123
109
  version: '0'
124
110
  type: :development
125
111
  prerelease: false
126
112
  version_requirements: !ruby/object:Gem::Requirement
127
- none: false
128
113
  requirements:
129
- - - ! '>='
114
+ - - ">="
130
115
  - !ruby/object:Gem::Version
131
116
  version: '0'
132
117
  - !ruby/object:Gem::Dependency
133
118
  name: launchy
134
119
  requirement: !ruby/object:Gem::Requirement
135
- none: false
136
120
  requirements:
137
- - - ! '>='
121
+ - - ">="
138
122
  - !ruby/object:Gem::Version
139
123
  version: '0'
140
124
  type: :development
141
125
  prerelease: false
142
126
  version_requirements: !ruby/object:Gem::Requirement
143
- none: false
144
127
  requirements:
145
- - - ! '>='
128
+ - - ">="
146
129
  - !ruby/object:Gem::Version
147
130
  version: '0'
148
131
  - !ruby/object:Gem::Dependency
149
132
  name: jettywrapper
150
133
  requirement: !ruby/object:Gem::Requirement
151
- none: false
152
134
  requirements:
153
- - - ! '>='
135
+ - - ">="
154
136
  - !ruby/object:Gem::Version
155
137
  version: '0'
156
138
  type: :development
157
139
  prerelease: false
158
140
  version_requirements: !ruby/object:Gem::Requirement
159
- none: false
160
141
  requirements:
161
- - - ! '>='
142
+ - - ">="
162
143
  - !ruby/object:Gem::Version
163
144
  version: '0'
164
145
  description:
@@ -168,8 +149,8 @@ executables: []
168
149
  extensions: []
169
150
  extra_rdoc_files: []
170
151
  files:
171
- - .gitignore
172
- - .travis.yml
152
+ - ".gitignore"
153
+ - ".travis.yml"
173
154
  - Gemfile
174
155
  - MIT-LICENSE
175
156
  - README.rdoc
@@ -209,27 +190,26 @@ files:
209
190
  - vendor/assets/javascripts/jquery-ui-1.9.2.custom.js
210
191
  homepage: http://projectblacklight.org/
211
192
  licenses: []
193
+ metadata: {}
212
194
  post_install_message:
213
195
  rdoc_options: []
214
196
  require_paths:
215
197
  - lib
216
198
  required_ruby_version: !ruby/object:Gem::Requirement
217
- none: false
218
199
  requirements:
219
- - - ! '>='
200
+ - - ">="
220
201
  - !ruby/object:Gem::Version
221
202
  version: '0'
222
203
  required_rubygems_version: !ruby/object:Gem::Requirement
223
- none: false
224
204
  requirements:
225
- - - ! '>='
205
+ - - ">="
226
206
  - !ruby/object:Gem::Version
227
207
  version: '0'
228
208
  requirements: []
229
209
  rubyforge_project: blacklight
230
- rubygems_version: 1.8.23
210
+ rubygems_version: 2.2.2
231
211
  signing_key:
232
- specification_version: 3
212
+ specification_version: 4
233
213
  summary: Blacklight Range Limit plugin
234
214
  test_files:
235
215
  - spec/features/blacklight_range_limit_spec.rb
@@ -237,4 +217,3 @@ test_files:
237
217
  - spec/test_app_templates/Gemfile.extra
238
218
  - spec/test_app_templates/lib/generators/test_app_generator.rb
239
219
  - spec/test_app_templates/lib/tasks/blacklight_test_app.rake
240
- has_rdoc: