blacklight 5.9.2 → 5.9.3

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
  SHA1:
3
- metadata.gz: aa54bd985624be72c4d598e49b1c3cc9ac6e5da6
4
- data.tar.gz: d50f42354e114da71d7f33e9f5d772314831a644
3
+ metadata.gz: 2ea3fda913edc204db8dbc3b5a06ced2862324ad
4
+ data.tar.gz: 0b1b41f89ccdfcd3dcd1b88857ccb0919a29afd9
5
5
  SHA512:
6
- metadata.gz: 19bbfbe1307baed32d2e732b4dc8acbbefe3b567f91302b5b9df40864334e4c1affe87569ea44195e424b62dac14b6450eed5d856ba58b2d0c2c8ba908c73d7a
7
- data.tar.gz: 326d4bb0884bcf4bd3fba974ef37891f4e21493639aa650d4ba41d4c95a296f236a993ef83d77b161ffe55180347d93bf07eb5ac98cca048115439e1fdb4af96
6
+ metadata.gz: 57fbc7119ffaa221ff7e562ba6e1e27d0e4a8c10a44e1bde8ee95164cebd6f5ad40b5054466035aae35faf2f49da9f88f53c6dbc60e0d486f3abea5910b63479
7
+ data.tar.gz: 29737da492197e076a19f36c103ae9277ea2bd063d036041b10ee1a6aae10589136a0243113c92a7716d929da51d59d5eb7f1e7438833336f1b45ee54161e1e0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.9.2
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
- alias_method :deep_copy, :deep_dup
256
- alias_method :inheritable_copy, :deep_dup
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
  ##
@@ -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
- resources :bookmarks
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.2
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-11 00:00:00.000000000 Z
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.2.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)