europeana-blacklight 0.2.5 → 0.2.6
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 -2
- 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: a2702fe66e2a3555c33fcedf5ae251b905f842f1
|
4
|
+
data.tar.gz: 6b3eae4edbb685d9c1daf38582524ba7f1d74506
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7246432ee065790f959c44a9c785ac7669756df737f7cc9c35cc543d095fc3137e7b7056b96eacedc72f3e86794a73daab93195cbaec957d1440dd9515aca1aa
|
7
|
+
data.tar.gz: 7afb730a3edb844665aad832e9cad03c01cc6f60bab193a2e251bcf95475e0398a7d1ff699cad2ff39eeca08cfc8bef6cf2cb6b6fd9b4ab742f6cf2f3be0cd17
|
@@ -18,9 +18,13 @@ module Europeana
|
|
18
18
|
attr_accessor :hierarchy
|
19
19
|
|
20
20
|
class << self
|
21
|
+
# @todo Are three-letter language codes valid in EDM?
|
22
|
+
# @todo Empty key acceptance is a workaround for malformed API data
|
23
|
+
# output; remove when fixed at source
|
21
24
|
def lang_map?(obj)
|
22
25
|
return false unless obj.is_a?(Hash)
|
23
|
-
obj.keys.all? { |k| (k == 'def') || (k.length == 2) }
|
26
|
+
return true if obj.keys.all? { |k| (k == 'def') || (k == '') || (k.length == 2) }
|
27
|
+
obj.keys.all? { |k| (k == 'def') || (k == '') || (k.length == 3) }
|
24
28
|
end
|
25
29
|
|
26
30
|
def localize_lang_map(lang_map)
|
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.6
|
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-08-
|
11
|
+
date: 2015-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: blacklight
|