translation 1.37 → 1.39

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
  SHA256:
3
- metadata.gz: 1aa63e584ea2e2064a46f87fdba20f387135bb3379c7ab85eaf6383a312cca59
4
- data.tar.gz: d77f0d69b67ab0e112a7f27da673199fe091df0230643893356b38a67653145b
3
+ metadata.gz: 9ccdbba7d0b1c556ba8ff6660e399cd47865efb5a1407b502a56de2887b13e59
4
+ data.tar.gz: 4c08e8e7185fd102233b69127205ab01a054494b8e02c129ef33e134bd6da6c0
5
5
  SHA512:
6
- metadata.gz: 483b2b4f922ed667b465d2a6ac551f0df46188c52859c2dc93951c2ea7f595af79055161e09ca88260bf23849514e0282257a02834455d768e264dcd6b39a5a3
7
- data.tar.gz: 9b0fe16f145640b20add0c2476e01f335be0692c31b53041b4768c366c45ec80dd0be7fa13354895335afc5073ec95a457b193f86827a45f792ccbcb55395df6
6
+ metadata.gz: c3cf9f46ec53d246ea66f25ab46b5a57c2383f6f43aca48cdb913e047d108ff6eb0021c314f4e7f518db9d3789bdff9c92a8873400c2c59a1ef02ffbb7b2dc2a
7
+ data.tar.gz: cb4e21ededf25d9cc1308ee8ac62dfd040ab29b96154cf2417c410d9b1269d75d40759d46ae61eac9526971c83f2c35c4daacb4cc81e5984fa525c37430483cc
@@ -28,9 +28,9 @@ module TranslationIO
28
28
  def get_flat_translations_for_yaml_data(yaml_data)
29
29
  translations = TranslationIO.yaml_load(yaml_data)
30
30
 
31
- if translations
31
+ if translations && translations.values.all? { |value| value.present? }
32
32
  return FlatHash.to_flat_hash(translations)
33
- else # loading an empty file returns false
33
+ else # loading an empty file, or file with only the language, returns false
34
34
  return {}
35
35
  end
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translation
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.37'
4
+ version: '1.39'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hoste
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-06-27 00:00:00.000000000 Z
12
+ date: 2024-02-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gettext
@@ -23,7 +23,7 @@ dependencies:
23
23
  version: 3.2.5
24
24
  - - "<="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.4.4
26
+ version: 3.4.9
27
27
  type: :runtime
28
28
  prerelease: false
29
29
  version_requirements: !ruby/object:Gem::Requirement
@@ -36,7 +36,7 @@ dependencies:
36
36
  version: 3.2.5
37
37
  - - "<="
38
38
  - !ruby/object:Gem::Version
39
- version: 3.4.4
39
+ version: 3.4.9
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rake
42
42
  requirement: !ruby/object:Gem::Requirement
@@ -129,11 +129,11 @@ homepage: https://translation.io
129
129
  licenses:
130
130
  - MIT
131
131
  metadata:
132
+ homepage_uri: https://translation.io/rails
133
+ source_code_uri: https://github.com/translation/rails
132
134
  bug_tracker_uri: https://github.com/translation/rails/issues
133
135
  changelog_uri: https://github.com/translation/rails/blob/master/CHANGELOG.md
134
- documentation_uri: https://translation.io/rails/usage
135
- homepage_uri: https://translation.io
136
- source_code_uri: https://github.com/translation/rails
136
+ documentation_uri: https://translation.io/docs/guide-to-translate-your-rails-applications
137
137
  post_install_message:
138
138
  rdoc_options: []
139
139
  require_paths: