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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 147a5398c7444cb641b250e3b38a8394bf335d02
4
- data.tar.gz: 944bde3b16366fa7ebf8cf1fba0721fc14bb5561
3
+ metadata.gz: 701f15f6b74496ec0c2633dbfd4c1844d443ecb2
4
+ data.tar.gz: 89d6c6c78837adf1464b1a9525bf5677c946fe80
5
5
  SHA512:
6
- metadata.gz: 759e06722d8d15a7a73b728abe2cff5e07acbcecd0c00a9a2ffdd3cbdda6f8695ec1245e3b2fef37f6afd0b52821d76a8edbe576184c7aa62269852dcee99fc7
7
- data.tar.gz: 5644643aaca8bcf56e24ea9989b2959c426b2eccaabd21dd935e90afd570da48db547595dd8e35d03a8ac38004ec9bb735d855a4135fbdb8392774c894ed73cc
6
+ metadata.gz: e2606f0881c15c01026b5b983090fa931a6044ecd1865a9c69d0e460ebd757784f58424978455e3153d3bce170a225a171f00f97185d316eb1e5d10c00165e17
7
+ data.tar.gz: 6ab61e3bd298dbd42282e7ea900038a2b3ca815e3ec3ca28b6dc4227fd0121fe4468a3a0e358a0c035670d0ae26d3840d863cb1ba7c6128cf7b408ec9a40a5f4
@@ -40,9 +40,10 @@ module Poesie
40
40
  out_lines += ['', '/'*80, "// MARK: #{mark}"]
41
41
  end
42
42
 
43
- # If plural, use the text for the "one" (singular) entry
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
@@ -1,3 +1,3 @@
1
1
  module Poesie
2
- VERSION = '1.5.0'
2
+ VERSION = '1.5.1'
3
3
  end
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.0
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: 2017-02-10 00:00:00.000000000 Z
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.6.7
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