blacklight 5.0.0.pre1 → 5.0.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -4
- data/VERSION +1 -1
- data/app/assets/stylesheets/blacklight/_bookmark.css.scss +4 -0
- data/app/assets/stylesheets/blacklight/_catalog.css.scss +9 -13
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +15 -9
- data/app/helpers/blacklight/catalog_helper_behavior.rb +8 -25
- data/app/helpers/blacklight/facets_helper_behavior.rb +1 -1
- data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +1 -1
- data/app/helpers/blacklight/render_constraints_helper_behavior.rb +2 -2
- data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +1 -1
- data/app/views/bookmarks/index.html.erb +1 -1
- data/app/views/catalog/_did_you_mean.html.erb +1 -1
- data/app/views/catalog/_document.html.erb +4 -10
- data/app/views/catalog/{_document_header.html.erb → _index_header_default.html.erb} +6 -3
- data/app/views/catalog/_paginate_compact.html.erb +5 -0
- data/app/views/catalog/_show_header_default.html.erb +2 -0
- data/app/views/catalog/index.html.erb +1 -1
- data/app/views/catalog/show.html.erb +4 -10
- data/lib/blacklight.rb +0 -1
- data/lib/blacklight/configuration.rb +2 -2
- data/lib/blacklight/controller.rb +0 -1
- data/lib/blacklight/solr/document.rb +2 -0
- data/lib/blacklight/solr/document/schema_org.rb +7 -0
- data/lib/blacklight/solr_response.rb +4 -0
- data/lib/blacklight/user.rb +0 -6
- data/spec/controllers/application_controller_spec.rb +1 -2
- data/spec/controllers/bookmarks_controller_spec.rb +8 -9
- data/spec/controllers/catalog_controller_spec.rb +72 -73
- data/spec/controllers/saved_searches_controller_spec.rb +1 -2
- data/spec/controllers/search_history_controller_spec.rb +9 -10
- data/spec/features/search_pagination_spec.rb +1 -0
- data/spec/features/search_results_spec.rb +1 -0
- data/spec/features/search_spec.rb +1 -0
- data/spec/helpers/blacklight_helper_spec.rb +103 -93
- data/spec/helpers/catalog_helper_spec.rb +34 -21
- data/spec/helpers/facets_helper_spec.rb +41 -41
- data/spec/helpers/hash_as_hidden_fields_spec.rb +8 -9
- data/spec/helpers/render_constraints_helper_spec.rb +3 -3
- data/spec/helpers/search_history_constraints_helper_spec.rb +13 -14
- data/spec/lib/{blacklight_configurable_spec.rb → blacklight/configurable_spec.rb} +12 -14
- data/spec/lib/{blacklight_configuration_spec.rb → blacklight/configuration_spec.rb} +67 -69
- data/spec/lib/{facet_paginator_spec.rb → blacklight/facet_paginator_spec.rb} +13 -16
- data/spec/lib/{search_fields_spec.rb → blacklight/search_fields_spec.rb} +14 -15
- data/spec/lib/{blacklight_solr_document_dublin_core_spec.rb → blacklight/solr/document/dublin_core_spec.rb} +7 -8
- data/spec/lib/{blacklight_email_spec.rb → blacklight/solr/document/email_spec.rb} +5 -6
- data/spec/lib/{blacklight_solr_document_more_like_this_spec.rb → blacklight/solr/document/more_like_this_spec.rb} +5 -5
- data/spec/lib/{blacklight_sms_spec.rb → blacklight/solr/document/sms_spec.rb} +5 -6
- data/spec/lib/{blacklight_solr_document_spec.rb → blacklight/solr/document_spec.rb} +37 -39
- data/spec/lib/{solr_helper_spec.rb → blacklight/solr_helper_spec.rb} +183 -183
- data/spec/lib/{blacklight_solr_response_spec.rb → blacklight/solr_response_spec.rb} +20 -16
- data/spec/lib/{blacklight_user_spec.rb → blacklight/user_spec.rb} +3 -4
- data/spec/lib/blacklight_spec.rb +6 -7
- data/spec/lib/tasks/blacklight_task_spec.rb +2 -3
- data/spec/lib/utils_spec.rb +13 -14
- data/spec/models/bookmark_spec.rb +4 -4
- data/spec/models/record_mailer_spec.rb +15 -15
- data/spec/models/search_spec.rb +7 -7
- data/spec/models/solr_document_spec.rb +4 -4
- data/spec/routing/catalog_routing_spec.rb +12 -12
- data/spec/spec_helper.rb +1 -3
- data/spec/test_app_templates/Gemfile.extra +1 -2
- data/spec/views/catalog/_constraints_element.html.erb_spec.rb +12 -13
- data/spec/views/catalog/_document.html.erb_spec.rb +19 -2
- data/spec/views/catalog/_document_list.html.erb_spec.rb +0 -1
- data/spec/views/catalog/_facets.html.erb_spec.rb +5 -5
- data/spec/views/catalog/_index_default.erb_spec.rb +10 -11
- data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +45 -0
- data/spec/views/catalog/_search_header.erb_spec.rb +0 -1
- data/spec/views/catalog/_show_default.erb_spec.rb +10 -11
- data/spec/views/catalog/_show_sidebar.erb_spec.rb +2 -3
- data/spec/views/catalog/index.atom.builder_spec.rb +26 -27
- data/spec/views/catalog/index.html.erb_spec.rb +1 -1
- data/spec/views/catalog/show.html.erb_spec.rb +56 -0
- data/tasks/blacklight.rake +1 -1
- metadata +65 -64
- data/lib/blacklight/legacy_controller_methods.rb +0 -26
- data/spec/rcov.opts +0 -3
- data/spec/support/assert_difference.rb +0 -17
data/tasks/blacklight.rake
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.
|
4
|
+
version: 5.0.0.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -17,124 +17,124 @@ authors:
|
|
17
17
|
autorequire:
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
|
-
date: 2014-01-
|
20
|
+
date: 2014-01-16 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
24
24
|
requirement: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 3.2.6
|
29
|
-
- - <
|
29
|
+
- - "<"
|
30
30
|
- !ruby/object:Gem::Version
|
31
31
|
version: '5'
|
32
32
|
type: :runtime
|
33
33
|
prerelease: false
|
34
34
|
version_requirements: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- -
|
36
|
+
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: 3.2.6
|
39
|
-
- - <
|
39
|
+
- - "<"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '5'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: nokogiri
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '1.6'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '1.6'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: kaminari
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0.13'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0.13'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rsolr
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - ~>
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 1.0.6
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - ~>
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 1.0.6
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: sass-rails
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: bootstrap-sass
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - ~>
|
102
|
+
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '3.0'
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- - ~>
|
109
|
+
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '3.0'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: deprecation
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- -
|
116
|
+
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
type: :runtime
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: jettywrapper
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: 1.4.1
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: 1.4.1
|
140
140
|
- !ruby/object:Gem::Dependency
|
@@ -155,42 +155,42 @@ dependencies:
|
|
155
155
|
name: rspec-rails
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|
158
|
-
- -
|
158
|
+
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '0'
|
161
161
|
type: :development
|
162
162
|
prerelease: false
|
163
163
|
version_requirements: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
|
-
- -
|
165
|
+
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: '0'
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: engine_cart
|
170
170
|
requirement: !ruby/object:Gem::Requirement
|
171
171
|
requirements:
|
172
|
-
- -
|
172
|
+
- - ">="
|
173
173
|
- !ruby/object:Gem::Version
|
174
174
|
version: 0.1.0
|
175
175
|
type: :development
|
176
176
|
prerelease: false
|
177
177
|
version_requirements: !ruby/object:Gem::Requirement
|
178
178
|
requirements:
|
179
|
-
- -
|
179
|
+
- - ">="
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: 0.1.0
|
182
182
|
- !ruby/object:Gem::Dependency
|
183
183
|
name: equivalent-xml
|
184
184
|
requirement: !ruby/object:Gem::Requirement
|
185
185
|
requirements:
|
186
|
-
- -
|
186
|
+
- - ">="
|
187
187
|
- !ruby/object:Gem::Version
|
188
188
|
version: '0'
|
189
189
|
type: :development
|
190
190
|
prerelease: false
|
191
191
|
version_requirements: !ruby/object:Gem::Requirement
|
192
192
|
requirements:
|
193
|
-
- -
|
193
|
+
- - ">="
|
194
194
|
- !ruby/object:Gem::Version
|
195
195
|
version: '0'
|
196
196
|
description: Blacklight is an open source Solr user interface discovery platform.
|
@@ -202,11 +202,11 @@ executables: []
|
|
202
202
|
extensions: []
|
203
203
|
extra_rdoc_files: []
|
204
204
|
files:
|
205
|
-
- .gitignore
|
206
|
-
- .gitmodules
|
207
|
-
- .rspec
|
208
|
-
- .travis.yml
|
209
|
-
- .yardopts
|
205
|
+
- ".gitignore"
|
206
|
+
- ".gitmodules"
|
207
|
+
- ".rspec"
|
208
|
+
- ".travis.yml"
|
209
|
+
- ".yardopts"
|
210
210
|
- Gemfile
|
211
211
|
- LICENSE
|
212
212
|
- README.md
|
@@ -270,7 +270,6 @@ files:
|
|
270
270
|
- app/views/catalog/_constraints_element.html.erb
|
271
271
|
- app/views/catalog/_did_you_mean.html.erb
|
272
272
|
- app/views/catalog/_document.html.erb
|
273
|
-
- app/views/catalog/_document_header.html.erb
|
274
273
|
- app/views/catalog/_document_list.html.erb
|
275
274
|
- app/views/catalog/_email_form.html.erb
|
276
275
|
- app/views/catalog/_facet_layout.html.erb
|
@@ -282,6 +281,7 @@ files:
|
|
282
281
|
- app/views/catalog/_home.html.erb
|
283
282
|
- app/views/catalog/_home_text.html.erb
|
284
283
|
- app/views/catalog/_index_default.html.erb
|
284
|
+
- app/views/catalog/_index_header_default.html.erb
|
285
285
|
- app/views/catalog/_opensearch_response_metadata.html.erb
|
286
286
|
- app/views/catalog/_paginate_compact.html.erb
|
287
287
|
- app/views/catalog/_per_page_widget.html.erb
|
@@ -292,6 +292,7 @@ files:
|
|
292
292
|
- app/views/catalog/_search_header.html.erb
|
293
293
|
- app/views/catalog/_search_sidebar.html.erb
|
294
294
|
- app/views/catalog/_show_default.html.erb
|
295
|
+
- app/views/catalog/_show_header_default.html.erb
|
295
296
|
- app/views/catalog/_show_more_like_this.html.erb
|
296
297
|
- app/views/catalog/_show_sidebar.html.erb
|
297
298
|
- app/views/catalog/_show_tools.html.erb
|
@@ -357,7 +358,6 @@ files:
|
|
357
358
|
- lib/blacklight/engine.rb
|
358
359
|
- lib/blacklight/exceptions.rb
|
359
360
|
- lib/blacklight/facet.rb
|
360
|
-
- lib/blacklight/legacy_controller_methods.rb
|
361
361
|
- lib/blacklight/rails/routes.rb
|
362
362
|
- lib/blacklight/routes.rb
|
363
363
|
- lib/blacklight/search_fields.rb
|
@@ -368,6 +368,7 @@ files:
|
|
368
368
|
- lib/blacklight/solr/document/export.rb
|
369
369
|
- lib/blacklight/solr/document/extensions.rb
|
370
370
|
- lib/blacklight/solr/document/more_like_this.rb
|
371
|
+
- lib/blacklight/solr/document/schema_org.rb
|
371
372
|
- lib/blacklight/solr/document/sms.rb
|
372
373
|
- lib/blacklight/solr/facet_paginator.rb
|
373
374
|
- lib/blacklight/solr/request.rb
|
@@ -425,34 +426,32 @@ files:
|
|
425
426
|
- spec/helpers/hash_as_hidden_fields_spec.rb
|
426
427
|
- spec/helpers/render_constraints_helper_spec.rb
|
427
428
|
- spec/helpers/search_history_constraints_helper_spec.rb
|
429
|
+
- spec/lib/blacklight/configurable_spec.rb
|
430
|
+
- spec/lib/blacklight/configuration_spec.rb
|
431
|
+
- spec/lib/blacklight/facet_paginator_spec.rb
|
428
432
|
- spec/lib/blacklight/routes_spec.rb
|
433
|
+
- spec/lib/blacklight/search_fields_spec.rb
|
434
|
+
- spec/lib/blacklight/solr/document/dublin_core_spec.rb
|
435
|
+
- spec/lib/blacklight/solr/document/email_spec.rb
|
436
|
+
- spec/lib/blacklight/solr/document/more_like_this_spec.rb
|
437
|
+
- spec/lib/blacklight/solr/document/sms_spec.rb
|
438
|
+
- spec/lib/blacklight/solr/document_spec.rb
|
429
439
|
- spec/lib/blacklight/solr/request_spec.rb
|
440
|
+
- spec/lib/blacklight/solr_helper_spec.rb
|
430
441
|
- spec/lib/blacklight/solr_response/group_response_spec.rb
|
431
442
|
- spec/lib/blacklight/solr_response/group_spec.rb
|
432
|
-
- spec/lib/
|
433
|
-
- spec/lib/
|
434
|
-
- spec/lib/blacklight_email_spec.rb
|
435
|
-
- spec/lib/blacklight_sms_spec.rb
|
436
|
-
- spec/lib/blacklight_solr_document_dublin_core_spec.rb
|
437
|
-
- spec/lib/blacklight_solr_document_more_like_this_spec.rb
|
438
|
-
- spec/lib/blacklight_solr_document_spec.rb
|
439
|
-
- spec/lib/blacklight_solr_response_spec.rb
|
443
|
+
- spec/lib/blacklight/solr_response_spec.rb
|
444
|
+
- spec/lib/blacklight/user_spec.rb
|
440
445
|
- spec/lib/blacklight_spec.rb
|
441
|
-
- spec/lib/blacklight_user_spec.rb
|
442
|
-
- spec/lib/facet_paginator_spec.rb
|
443
|
-
- spec/lib/search_fields_spec.rb
|
444
|
-
- spec/lib/solr_helper_spec.rb
|
445
446
|
- spec/lib/tasks/blacklight_task_spec.rb
|
446
447
|
- spec/lib/utils_spec.rb
|
447
448
|
- spec/models/bookmark_spec.rb
|
448
449
|
- spec/models/record_mailer_spec.rb
|
449
450
|
- spec/models/search_spec.rb
|
450
451
|
- spec/models/solr_document_spec.rb
|
451
|
-
- spec/rcov.opts
|
452
452
|
- spec/routing/catalog_routing_spec.rb
|
453
453
|
- spec/spec.opts
|
454
454
|
- spec/spec_helper.rb
|
455
|
-
- spec/support/assert_difference.rb
|
456
455
|
- spec/support/features.rb
|
457
456
|
- spec/support/features/session_helpers.rb
|
458
457
|
- spec/support/include_text.rb
|
@@ -464,12 +463,14 @@ files:
|
|
464
463
|
- spec/views/catalog/_document_list.html.erb_spec.rb
|
465
464
|
- spec/views/catalog/_facets.html.erb_spec.rb
|
466
465
|
- spec/views/catalog/_index_default.erb_spec.rb
|
466
|
+
- spec/views/catalog/_paginate_compact.html.erb_spec.rb
|
467
467
|
- spec/views/catalog/_search_header.erb_spec.rb
|
468
468
|
- spec/views/catalog/_show_default.erb_spec.rb
|
469
469
|
- spec/views/catalog/_show_sidebar.erb_spec.rb
|
470
470
|
- spec/views/catalog/_thumbnail_default.erb_spec.rb
|
471
471
|
- spec/views/catalog/index.atom.builder_spec.rb
|
472
472
|
- spec/views/catalog/index.html.erb_spec.rb
|
473
|
+
- spec/views/catalog/show.html.erb_spec.rb
|
473
474
|
- tasks/blacklight.rake
|
474
475
|
homepage: http://projectblacklight.org/
|
475
476
|
licenses:
|
@@ -481,17 +482,17 @@ require_paths:
|
|
481
482
|
- lib
|
482
483
|
required_ruby_version: !ruby/object:Gem::Requirement
|
483
484
|
requirements:
|
484
|
-
- -
|
485
|
+
- - ">="
|
485
486
|
- !ruby/object:Gem::Version
|
486
487
|
version: '0'
|
487
488
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
488
489
|
requirements:
|
489
|
-
- -
|
490
|
+
- - ">"
|
490
491
|
- !ruby/object:Gem::Version
|
491
492
|
version: 1.3.1
|
492
493
|
requirements: []
|
493
494
|
rubyforge_project:
|
494
|
-
rubygems_version: 2.0
|
495
|
+
rubygems_version: 2.2.0
|
495
496
|
signing_key:
|
496
497
|
specification_version: 4
|
497
498
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|
@@ -521,34 +522,32 @@ test_files:
|
|
521
522
|
- spec/helpers/hash_as_hidden_fields_spec.rb
|
522
523
|
- spec/helpers/render_constraints_helper_spec.rb
|
523
524
|
- spec/helpers/search_history_constraints_helper_spec.rb
|
525
|
+
- spec/lib/blacklight/configurable_spec.rb
|
526
|
+
- spec/lib/blacklight/configuration_spec.rb
|
527
|
+
- spec/lib/blacklight/facet_paginator_spec.rb
|
524
528
|
- spec/lib/blacklight/routes_spec.rb
|
529
|
+
- spec/lib/blacklight/search_fields_spec.rb
|
530
|
+
- spec/lib/blacklight/solr/document/dublin_core_spec.rb
|
531
|
+
- spec/lib/blacklight/solr/document/email_spec.rb
|
532
|
+
- spec/lib/blacklight/solr/document/more_like_this_spec.rb
|
533
|
+
- spec/lib/blacklight/solr/document/sms_spec.rb
|
534
|
+
- spec/lib/blacklight/solr/document_spec.rb
|
525
535
|
- spec/lib/blacklight/solr/request_spec.rb
|
536
|
+
- spec/lib/blacklight/solr_helper_spec.rb
|
526
537
|
- spec/lib/blacklight/solr_response/group_response_spec.rb
|
527
538
|
- spec/lib/blacklight/solr_response/group_spec.rb
|
528
|
-
- spec/lib/
|
529
|
-
- spec/lib/
|
530
|
-
- spec/lib/blacklight_email_spec.rb
|
531
|
-
- spec/lib/blacklight_sms_spec.rb
|
532
|
-
- spec/lib/blacklight_solr_document_dublin_core_spec.rb
|
533
|
-
- spec/lib/blacklight_solr_document_more_like_this_spec.rb
|
534
|
-
- spec/lib/blacklight_solr_document_spec.rb
|
535
|
-
- spec/lib/blacklight_solr_response_spec.rb
|
539
|
+
- spec/lib/blacklight/solr_response_spec.rb
|
540
|
+
- spec/lib/blacklight/user_spec.rb
|
536
541
|
- spec/lib/blacklight_spec.rb
|
537
|
-
- spec/lib/blacklight_user_spec.rb
|
538
|
-
- spec/lib/facet_paginator_spec.rb
|
539
|
-
- spec/lib/search_fields_spec.rb
|
540
|
-
- spec/lib/solr_helper_spec.rb
|
541
542
|
- spec/lib/tasks/blacklight_task_spec.rb
|
542
543
|
- spec/lib/utils_spec.rb
|
543
544
|
- spec/models/bookmark_spec.rb
|
544
545
|
- spec/models/record_mailer_spec.rb
|
545
546
|
- spec/models/search_spec.rb
|
546
547
|
- spec/models/solr_document_spec.rb
|
547
|
-
- spec/rcov.opts
|
548
548
|
- spec/routing/catalog_routing_spec.rb
|
549
549
|
- spec/spec.opts
|
550
550
|
- spec/spec_helper.rb
|
551
|
-
- spec/support/assert_difference.rb
|
552
551
|
- spec/support/features.rb
|
553
552
|
- spec/support/features/session_helpers.rb
|
554
553
|
- spec/support/include_text.rb
|
@@ -560,9 +559,11 @@ test_files:
|
|
560
559
|
- spec/views/catalog/_document_list.html.erb_spec.rb
|
561
560
|
- spec/views/catalog/_facets.html.erb_spec.rb
|
562
561
|
- spec/views/catalog/_index_default.erb_spec.rb
|
562
|
+
- spec/views/catalog/_paginate_compact.html.erb_spec.rb
|
563
563
|
- spec/views/catalog/_search_header.erb_spec.rb
|
564
564
|
- spec/views/catalog/_show_default.erb_spec.rb
|
565
565
|
- spec/views/catalog/_show_sidebar.erb_spec.rb
|
566
566
|
- spec/views/catalog/_thumbnail_default.erb_spec.rb
|
567
567
|
- spec/views/catalog/index.atom.builder_spec.rb
|
568
568
|
- spec/views/catalog/index.html.erb_spec.rb
|
569
|
+
- spec/views/catalog/show.html.erb_spec.rb
|
@@ -1,26 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# These controller methods are mixed into the ApplicationController, and
|
3
|
-
# are likely things new Blacklight apps won't need (e.g. because of advancements in Rails)
|
4
|
-
# but are ideas that are firmly baked into existing application or plugins, so we're
|
5
|
-
# keeping around for now. There are probably better ways of doing some of the things
|
6
|
-
# in here, but you may find them useful.
|
7
|
-
module Blacklight
|
8
|
-
module LegacyControllerMethods
|
9
|
-
|
10
|
-
protected
|
11
|
-
#
|
12
|
-
# If a param[:no_layout] is set OR
|
13
|
-
# request.env['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest'
|
14
|
-
# don't use a layout, otherwise use the "application.html.erb" layout
|
15
|
-
#
|
16
|
-
def choose_layout
|
17
|
-
layout_name unless request.xml_http_request? || ! params[:no_layout].blank?
|
18
|
-
end
|
19
|
-
|
20
|
-
#over-ride this one locally to change what layout BL controllers use, usually
|
21
|
-
#by defining it in your own application_controller.rb
|
22
|
-
def layout_name
|
23
|
-
'blacklight'
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
data/spec/rcov.opts
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
# Added based on http://www.arctickiwi.com/blog/upgrading-to-rspec-2-with-ruby-on-rails-3
|
3
|
-
# God bless you Jonathon Horsman
|
4
|
-
def assert_difference(executable, how_many = 1, &block)
|
5
|
-
before = eval(executable)
|
6
|
-
yield
|
7
|
-
after = eval(executable)
|
8
|
-
after.should == before + how_many
|
9
|
-
end
|
10
|
-
|
11
|
-
def assert_no_difference(executable, &block)
|
12
|
-
before = eval(executable)
|
13
|
-
yield
|
14
|
-
after = eval(executable)
|
15
|
-
after.should == before
|
16
|
-
end
|
17
|
-
|