europeana-blacklight 0.2.2 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d7512849109c5b1783edc4c44212eea6676850a
4
- data.tar.gz: b92ac3a4eea567d3c17e935602d8093b49ba758c
3
+ metadata.gz: 29a0e57ed225f0860790f4215adbf9a22befca98
4
+ data.tar.gz: f3e23a37016d58b5e0f3ab25483aa6ddb82a6db1
5
5
  SHA512:
6
- metadata.gz: 8c9ed0fa3d69f0145cfe946bd3cc06c8b924535e46b906a34cc770f0cf0e8baa245d569f5c56823cca3b1cf0b0a916fa1a26782e69b554a0c81680e402154a90
7
- data.tar.gz: 9dec8adfabdcef0c269b6a0427ff64abe48575fb60a56a1bde8a98f669c13f2fa95dd7c87c74ab66db3ec141001c6e7ec3da56ed0eb6b15df58462a90d905edf
6
+ metadata.gz: 0b143da6b190ca1dc96089be69fbbc68f67cfe5cbaa4f10404c26d5f7527d886dba1e0c26c51598955cee1ed3e3f8412985ed884bf3b9995e545f1eb058e6347
7
+ data.tar.gz: abde1175089ad11e1ddcf5ed8d560f68fab68308325f3d74a4f9d485ccd8d91674a1ff67ca835ec899786141eeb1172ace7cd252cb2f0c0abcd6ce75c53c20cc
@@ -51,7 +51,8 @@ module Europeana
51
51
  end
52
52
 
53
53
  def id
54
- self['id'] || self['about']
54
+ return @id unless @id.nil?
55
+ @id = (self['id'] || self['about']).sub(%r{^//}, '/')
55
56
  end
56
57
 
57
58
  def fetch(key, *default)
@@ -90,11 +91,11 @@ module Europeana
90
91
  end
91
92
 
92
93
  def provider_id
93
- @provider_id ||= self['id'].to_s.split('/')[1]
94
+ @provider_id ||= id.to_s.split('/')[1]
94
95
  end
95
96
 
96
97
  def record_id
97
- @record_id ||= self['id'].to_s.split('/')[2]
98
+ @record_id ||= id.to_s.split('/')[2]
98
99
  end
99
100
 
100
101
  def as_json(options = nil)
@@ -1,6 +1,6 @@
1
1
  module Europeana
2
2
  #:nodoc:
3
3
  module Blacklight
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: europeana-blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Doe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-29 00:00:00.000000000 Z
11
+ date: 2015-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blacklight