blacklight 5.9.2 → 5.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/blacklight/configuration.rb +10 -2
- data/lib/blacklight/routes.rb +4 -1
- data/spec/lib/blacklight/configuration_spec.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ea3fda913edc204db8dbc3b5a06ced2862324ad
|
4
|
+
data.tar.gz: 0b1b41f89ccdfcd3dcd1b88857ccb0919a29afd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57fbc7119ffaa221ff7e562ba6e1e27d0e4a8c10a44e1bde8ee95164cebd6f5ad40b5054466035aae35faf2f49da9f88f53c6dbc60e0d486f3abea5910b63479
|
7
|
+
data.tar.gz: 29737da492197e076a19f36c103ae9277ea2bd063d036041b10ee1a6aae10589136a0243113c92a7716d929da51d59d5eb7f1e7438833336f1b45ee54161e1e0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.9.
|
1
|
+
5.9.3
|
@@ -252,8 +252,16 @@ module Blacklight
|
|
252
252
|
end
|
253
253
|
alias_method :inheritable_copy, :deep_copy
|
254
254
|
else
|
255
|
-
|
256
|
-
|
255
|
+
##
|
256
|
+
# Rails 4.x provides `#deep_dup`, but it aggressively `#dup`'s class names
|
257
|
+
# too. These model names should not be `#dup`'ed or we might break ActiveModel::Naming.
|
258
|
+
def deep_copy
|
259
|
+
deep_dup.tap do |copy|
|
260
|
+
copy.solr_response_model = self.solr_response_model
|
261
|
+
copy.solr_document_model = self.solr_document_model
|
262
|
+
end
|
263
|
+
end
|
264
|
+
alias_method :inheritable_copy, :deep_copy
|
257
265
|
end
|
258
266
|
|
259
267
|
##
|
data/lib/blacklight/routes.rb
CHANGED
@@ -66,7 +66,10 @@ module Blacklight
|
|
66
66
|
get "bookmarks/sms", :as => "sms_bookmarks"
|
67
67
|
post "bookmarks/sms"
|
68
68
|
get "bookmarks/citation", :as => "citation_bookmarks"
|
69
|
-
|
69
|
+
|
70
|
+
args = {}
|
71
|
+
args[:constraints] = options[:constraints] if options[:constraints]
|
72
|
+
resources :bookmarks, args
|
70
73
|
end
|
71
74
|
end
|
72
75
|
|
@@ -84,6 +84,16 @@ describe "Blacklight::Configuration" do
|
|
84
84
|
expect(@config.facet_fields).to_not include(@mock_facet)
|
85
85
|
end
|
86
86
|
|
87
|
+
it "should not dup solr_response_model or solr_document_model" do
|
88
|
+
@config.solr_response_model = Blacklight::SolrResponse
|
89
|
+
@config.solr_document_model = SolrDocument
|
90
|
+
|
91
|
+
config_copy = @config.inheritable_copy
|
92
|
+
|
93
|
+
expect(config_copy.solr_response_model).to eq Blacklight::SolrResponse
|
94
|
+
expect(config_copy.solr_document_model).to eq SolrDocument
|
95
|
+
end
|
96
|
+
|
87
97
|
it "should provide cloned copies of mutable data structures" do
|
88
98
|
@config.a = { value: 1 }
|
89
99
|
@config.b = [1,2,3]
|
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.9.
|
4
|
+
version: 5.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -17,7 +17,7 @@ authors:
|
|
17
17
|
autorequire:
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
|
-
date: 2015-02-
|
20
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
@@ -576,7 +576,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
576
576
|
version: '0'
|
577
577
|
requirements: []
|
578
578
|
rubyforge_project:
|
579
|
-
rubygems_version: 2.
|
579
|
+
rubygems_version: 2.4.5
|
580
580
|
signing_key:
|
581
581
|
specification_version: 4
|
582
582
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|