cul_scv_hydra 0.16.10 → 0.16.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjlkYzY2YTNkZmFiMjNlMGY4OGVlZjI2OTkxMmIzM2NmYTI4MzExMw==
4
+ ZGFkMzRjYjBmOTU0NjFhOGM0YmY1ZWY3ZThlN2Y0ZWMyZmExYWVkMQ==
5
5
  data.tar.gz: !binary |-
6
- YzNiNTZiOWUzYmU1MDkwNDZhODhmNjNlNTIzNWFjYzM2MjYxNjZiYw==
6
+ YjYyZGNjMjA5ZDJkMWE2YWYwM2ExYmNhOTA4YjYxYWY3NzI3ZDM1Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmMzZGJkMTBhM2Q3YTgzZDVkZWNkM2Q1OTUwZmFiMzhkYjQyNjMxNGM2OGNh
10
- NDg2MGRkYTM3OGFjZWU2YTU0MDM0YzJkNmJmNGZjNTk2ZmIxMTUyZTc4ZWZl
11
- YjY3YjA5OTIwYmVhODRmMmY3OGMxYjUzNmI3NjZiNDljY2ZlZjI=
9
+ YmZhMzhlMzMyYzA0OGZhNDI4NjEzYzBjY2U3ZGYyODg2Zjc1YjA3N2ZhZDI4
10
+ M2Q3NGM4YjAxMTYxNDgwZTQzZjc3ZmI0Nzg0MDE5NmQzMjYwODk4ZGQxODJm
11
+ M2E5MGM4NDNhZTE3OTU1MGRiNDk3MzIyNTNlYzU1ODhjZjgzOGU=
12
12
  data.tar.gz: !binary |-
13
- ZWQyOTk1YjU5YTBlYzE3ZjI5ZWQxZmVmNWExNTBiOTM0Njk4YWZiNzI2MTM0
14
- ODVmYWUxZjcyZTBlMjcxNTdiOWE4MzBlMDdiZjNiMWQyNzI3NzVlOWMzZDhm
15
- ZDgzNTI0MTNhMjA5ZmRjZjU3NDAyOGY2Y2FmMDg2NDQxN2M3MzU=
13
+ ODc0YmFjMWQ0ZWM5NTBjNTkxZDAxNzFiNzc1YWM2MGQyMmMzZDE5ODBkMmUy
14
+ MTM1MjRkZmY4NTRiYzg2OTAxZjRiZjFmNmQzYmQzOWQ1ZDg0NWQwZGY4OWRk
15
+ MmM4NDU5YjMxOGY0ODhiM2JlYjkwOGIyNDBhNWZlZDYzNDczYmU=
@@ -70,11 +70,11 @@ module Solrizer::DefaultDescriptors
70
70
  end
71
71
 
72
72
  module Normal
73
- SHORT_REPO = "ldpd.short.repo."
74
- LONG_REPO = "ldpd.long.repo."
75
- FULL_REPO = "ldpd.full.repo."
76
- SHORT_PROJ = "ldpd.short.project."
77
- FULL_PROJ = "ldpd.full.project."
73
+ SHORT_REPO = "ldpd.short.repo"
74
+ LONG_REPO = "ldpd.long.repo"
75
+ FULL_REPO = "ldpd.full.repo"
76
+ SHORT_PROJ = "ldpd.short.project"
77
+ FULL_PROJ = "ldpd.full.project"
78
78
  def normal(value)
79
79
  normal!(value.clone)
80
80
  end
@@ -85,9 +85,15 @@ module Solrizer::DefaultDescriptors
85
85
  end
86
86
  def translate_with_default(prefix, value, default)
87
87
  begin
88
- return I18n.t(prefix + value, default: default)
88
+ # Using method below to handle translations because our YAML keys can contain periods and this doesn't play well with the translation dot-syntax
89
+ translations = HashWithIndifferentAccess.new(I18n.t(prefix))
90
+ if translations.has_key?(value)
91
+ return translations[value]
92
+ else
93
+ return default
94
+ end
89
95
  rescue
90
- return value
96
+ return default
91
97
  end
92
98
  end
93
99
  end
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.16.10'
5
+ VERSION = '0.16.11'
6
6
  def self.version
7
7
  VERSION
8
8
  end
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.16.9'
5
+ VERSION = '0.16.10'
6
6
  def self.version
7
7
  VERSION
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_scv_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.10
4
+ version: 0.16.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-03 00:00:00.000000000 Z
11
+ date: 2014-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blacklight