blacklight 5.9.0 → 5.9.1
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/solr/document.rb +2 -2
- data/spec/lib/blacklight/solr/document_spec.rb +12 -0
- data/template.demo.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fbed68275361c9a4e94bf4c2c435ac7883869bb
|
4
|
+
data.tar.gz: 03843ab60ef311245df30f2e261a912c05d52251
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 904db4c831d484e6bc2693a7a10e79f2a2d66d37228d7dd20310d3c00a1eb87e10ca8eddc7766f51d2affbd3b8ad287dc9d6f3a0517b11eee0d4dc5589b7af53
|
7
|
+
data.tar.gz: 55a043a1eb3c7820d2ceaf5209e834c114034639ed1c8b80030856a4b96f131c7086e562fca3f8309b419146439b0828cacb099dba19fa562e732dffec93be3a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.9.
|
1
|
+
5.9.1
|
@@ -47,6 +47,18 @@ describe "Blacklight::Solr::Document" do
|
|
47
47
|
|
48
48
|
end
|
49
49
|
|
50
|
+
describe "Primary key" do
|
51
|
+
before(:each) do
|
52
|
+
MockDocument.unique_key = 'my_unique_key'
|
53
|
+
end
|
54
|
+
after(:each) do
|
55
|
+
MockDocument.unique_key = 'id'
|
56
|
+
end
|
57
|
+
it "should be the same as the unique key" do
|
58
|
+
expect(MockDocument.primary_key).to eq MockDocument.unique_key
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
50
62
|
describe "#to_param" do
|
51
63
|
it "should be a string" do
|
52
64
|
@document = MockDocument.new :id => 1234
|
data/template.demo.rb
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.9.
|
4
|
+
version: 5.9.1
|
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-
|
20
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|