aigu 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aigu.rb +3 -0
- data/lib/aigu/android_importer.rb +1 -1
- data/lib/aigu/core_exporter.rb +1 -1
- data/lib/aigu/core_importer.rb +1 -1
- data/lib/aigu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eac535ebe6faefec0c2da69698309d5f2a98f6f6
|
4
|
+
data.tar.gz: 2746a44b55270cbf60a67edf5f9370a008da918f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbf11e1e3214c658c24f897ddb223a2710b508331e3f5198ff17952262eb19141021a4b56aa31633344e9f3638858fa49115de7e924e479ce9197cbcaec85065
|
7
|
+
data.tar.gz: ba28a3484fd6e84abd5b3b92add340ea64baba68e9aabb4017b3117ecf4b67fca79a666fc145006d88dd63b1ec0025eb13c0d8072e111b88666f1da06a7bdfcb
|
data/lib/aigu.rb
CHANGED
@@ -61,7 +61,7 @@ module Aigu
|
|
61
61
|
if value.is_a?(Array)
|
62
62
|
xml << ' <string-array name=' << key.encode(xml: :attr) << ">\n"
|
63
63
|
value.each do |item|
|
64
|
-
xml << ' <item>' << item.encode(xml: :text) << "</item>\n"
|
64
|
+
xml << ' <item>' << item.encode(xml: :text) << "</item>\n" if item
|
65
65
|
end
|
66
66
|
xml << " </string-array>\n"
|
67
67
|
elsif value.is_a?(String)
|
data/lib/aigu/core_exporter.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Aigu
|
2
2
|
class CoreExporter
|
3
|
-
ENUM_LINE_REGEX = /^\s*(?<key>\w+)\s?\("(?<value_en>.*)",\s?"(?<value_fr>.*)"\)
|
3
|
+
ENUM_LINE_REGEX = /^\s*(?<key>\w+)\s?\("(?<value_en>.*)",\s?"(?<value_fr>.*)"\)[,;]?\s$/
|
4
4
|
|
5
5
|
def initialize(opts = {})
|
6
6
|
@output_file = opts[:'output-file']
|
data/lib/aigu/core_importer.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Aigu
|
2
2
|
class CoreImporter
|
3
|
-
ENUM_LINE_REGEX = /^\s*(?<key>\w+)\s?\("(?<value_en>.*)",\s?"(?<value_fr>.*)"\)(?<comma
|
3
|
+
ENUM_LINE_REGEX = /^\s*(?<key>\w+)\s?\("(?<value_en>.*)",\s?"(?<value_fr>.*)"\)(?<comma>[,;]?)\s$/
|
4
4
|
|
5
5
|
def initialize(opts = {})
|
6
6
|
@input_file = opts[:'input-file']
|
data/lib/aigu/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aigu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rémi Prévost
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|