poesie 1.5.0 → 1.5.1
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/apple_formatter.rb +3 -2
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 701f15f6b74496ec0c2633dbfd4c1844d443ecb2
|
|
4
|
+
data.tar.gz: 89d6c6c78837adf1464b1a9525bf5677c946fe80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2606f0881c15c01026b5b983090fa931a6044ecd1865a9c69d0e460ebd757784f58424978455e3153d3bce170a225a171f00f97185d316eb1e5d10c00165e17
|
|
7
|
+
data.tar.gz: 6ab61e3bd298dbd42282e7ea900038a2b3ca815e3ec3ca28b6dc4227fd0121fe4468a3a0e358a0c035670d0ae26d3840d863cb1ba7c6128cf7b408ec9a40a5f4
|
data/lib/apple_formatter.rb
CHANGED
|
@@ -40,9 +40,10 @@ module Poesie
|
|
|
40
40
|
out_lines += ['', '/'*80, "// MARK: #{mark}"]
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
# If
|
|
43
|
+
# If definition is a Hash, use the text for "one" if available (singular in languages using plurals)
|
|
44
|
+
# otherwise (e.g. asian language where only key in hash will be "other", not "one"), then use the first entry
|
|
44
45
|
if definition.is_a? Hash
|
|
45
|
-
definition = definition["one"]
|
|
46
|
+
definition = definition["one"] || definition.values.first
|
|
46
47
|
end
|
|
47
48
|
|
|
48
49
|
definition = Poesie::process(definition, substitutions)
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: poesie
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Olivier Halligon
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2019-01-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: net
|
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
92
92
|
version: '0'
|
|
93
93
|
requirements: []
|
|
94
94
|
rubyforge_project:
|
|
95
|
-
rubygems_version: 2.
|
|
95
|
+
rubygems_version: 2.5.2.3
|
|
96
96
|
signing_key:
|
|
97
97
|
specification_version: 4
|
|
98
98
|
summary: Automate and post-process the export of POEditor strings
|