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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20af20169fc09d7392d29b70558c4a2a8d4aee95
4
- data.tar.gz: 5ce0974fba0f7f7a98b75121d8a35ba9785856d3
3
+ metadata.gz: a2702fe66e2a3555c33fcedf5ae251b905f842f1
4
+ data.tar.gz: 6b3eae4edbb685d9c1daf38582524ba7f1d74506
5
5
  SHA512:
6
- metadata.gz: 63bef23cddc0df4028d1927d61704ef50ee0bad76f14205146ea6da585883ec5012ba3e93022d3ab2cbc52d7c73e35f66c094dd282127924a3aac9037ba0ef54
7
- data.tar.gz: 4086e94abacd17d8eebda797e7fda77d58de0f0fa59ef154b09efd85d87d8f8f65ca977de7cd4558b20617acd3b41d6311b6b7f8066c70ca0c098d346d332bad
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)
@@ -1,6 +1,5 @@
1
1
  module Europeana
2
- #:nodoc:
3
2
  module Blacklight
4
- VERSION = '0.2.5'
3
+ VERSION = '0.2.6'
5
4
  end
6
5
  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.5
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-04 00:00:00.000000000 Z
11
+ date: 2015-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blacklight