tolq-parsers-xliff 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xliff/parser.rb +1 -1
- data/lib/xliff/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: 95e60765c302ac9b10aca5e2dc7b4a1307a202bd
|
4
|
+
data.tar.gz: e214eaeeb8c340c4962bd97842aed01a1c3559af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d4339bc0434267f9c7f8db3361360044a1a476ae4ab5f5e73c80db5157e6c26d054722de62e0994dbb402208cd46b12e758f21c2d0bd7bb2743bac08b2c08c7
|
7
|
+
data.tar.gz: 8e38ae8cbe49f13c1c8edfdecfa32073c60f4c8971177904f280c93c5eeca159efc047b67bc6ebc2ab3100d8d7560d0477d16d5c97042dacf2134be57530bf51
|
data/lib/xliff/parser.rb
CHANGED
@@ -32,7 +32,7 @@ module Tolq::Parsers::Xliff
|
|
32
32
|
|
33
33
|
def extract_request_data_from_file(xliff_file)
|
34
34
|
xliff_file.strings.inject({}) do |acc, string|
|
35
|
-
acc[string.id] = {"text" => string.source }
|
35
|
+
acc[string.id] = {"text" => string.source } if string.source && string.source.length > 0
|
36
36
|
if string.note.length > 0
|
37
37
|
acc[string.id].merge!("translator_message" => string.note)
|
38
38
|
end
|
data/lib/xliff/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tolq-parsers-xliff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timon Vonk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xliffer
|