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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fedd8110404760fccc7f451d8c48086a291ee6b5
4
- data.tar.gz: 7576a604fa84a87d1c09b4cbede4715eaf28adf8
3
+ metadata.gz: 6fbed68275361c9a4e94bf4c2c435ac7883869bb
4
+ data.tar.gz: 03843ab60ef311245df30f2e261a912c05d52251
5
5
  SHA512:
6
- metadata.gz: b3fba026879c4a1f690d2998581eec9e89f4cdf9e93d5785b1d23270a2fd67a5e6792122df90c49fb7be802c50ee6a5449f2377a6523c26643ed2c4021d1f963
7
- data.tar.gz: 1206489a87d12d763df09ca14b0490860530983b754d3c7c6523f90e7abd5bcf015d3d5fc0384ff638df63e944b15b172d235dc14f2279a058f6b08287b51e09
6
+ metadata.gz: 904db4c831d484e6bc2693a7a10e79f2a2d66d37228d7dd20310d3c00a1eb87e10ca8eddc7766f51d2affbd3b8ad287dc9d6f3a0517b11eee0d4dc5589b7af53
7
+ data.tar.gz: 55a043a1eb3c7820d2ceaf5209e834c114034639ed1c8b80030856a4b96f131c7086e562fca3f8309b419146439b0828cacb099dba19fa562e732dffec93be3a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.9.0
1
+ 5.9.1
@@ -175,9 +175,9 @@ module Blacklight::Solr::Document
175
175
  def unique_key
176
176
  @unique_key ||= 'id'
177
177
  end
178
-
178
+
179
179
  def primary_key
180
- 'id'
180
+ unique_key
181
181
  end
182
182
 
183
183
  def base_class
@@ -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
@@ -1,4 +1,5 @@
1
1
  gem "blacklight", ">= 5.3.0"
2
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
2
3
 
3
4
  run "bundle install"
4
5
 
@@ -16,4 +17,4 @@ if options =~ /jettywrapper/
16
17
  rake "jetty:start"
17
18
  rake "blacklight:solr:seed"
18
19
  rake "jetty:stop"
19
- end
20
+ end
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.0
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-01-30 00:00:00.000000000 Z
20
+ date: 2015-02-10 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails