europeana-blacklight 0.2.1 → 0.2.2
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/lib/europeana/blacklight/document.rb +5 -1
- data/lib/europeana/blacklight/version.rb +1 -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: 4d7512849109c5b1783edc4c44212eea6676850a
|
4
|
+
data.tar.gz: b92ac3a4eea567d3c17e935602d8093b49ba758c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c9ed0fa3d69f0145cfe946bd3cc06c8b924535e46b906a34cc770f0cf0e8baa245d569f5c56823cca3b1cf0b0a916fa1a26782e69b554a0c81680e402154a90
|
7
|
+
data.tar.gz: 9dec8adfabdcef0c269b6a0427ff64abe48575fb60a56a1bde8a98f669c13f2fa95dd7c87c74ab66db3ec141001c6e7ec3da56ed0eb6b15df58462a90d905edf
|
@@ -20,10 +20,14 @@ module Europeana
|
|
20
20
|
class << self
|
21
21
|
def lang_map?(obj)
|
22
22
|
return false unless obj.is_a?(Hash)
|
23
|
-
obj.
|
23
|
+
obj.keys.all? { |k| (k == 'def') || (k.length == 2) }
|
24
24
|
end
|
25
25
|
|
26
26
|
def localize_lang_map(lang_map)
|
27
|
+
if lang_map.is_a?(Array)
|
28
|
+
return lang_map.map { |l| localize_lang_map(l) }
|
29
|
+
end
|
30
|
+
|
27
31
|
return lang_map unless lang_map?(lang_map)
|
28
32
|
if lang_map.key?(I18n.locale)
|
29
33
|
lang_map[I18n.locale]
|
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.
|
4
|
+
version: 0.2.2
|
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-
|
11
|
+
date: 2015-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: blacklight
|