tolq-parsers-xliff 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95e60765c302ac9b10aca5e2dc7b4a1307a202bd
4
- data.tar.gz: e214eaeeb8c340c4962bd97842aed01a1c3559af
3
+ metadata.gz: 12ae10800de70b0a8b638c5194303cd76b293819
4
+ data.tar.gz: 6a23b3ab885cd7308cc89810c6b51c0701f03f8a
5
5
  SHA512:
6
- metadata.gz: 2d4339bc0434267f9c7f8db3361360044a1a476ae4ab5f5e73c80db5157e6c26d054722de62e0994dbb402208cd46b12e758f21c2d0bd7bb2743bac08b2c08c7
7
- data.tar.gz: 8e38ae8cbe49f13c1c8edfdecfa32073c60f4c8971177904f280c93c5eeca159efc047b67bc6ebc2ab3100d8d7560d0477d16d5c97042dacf2134be57530bf51
6
+ metadata.gz: 05fa2848e34c8d805d7a999e076e778ee2ac82be61a5b23ccce6168daa9315b26e1ebe12b7c5054b9065bc45d779c2e3735fb80fab4c754e8538f25463c10b27
7
+ data.tar.gz: cb5be587d2f85120b28d7c8faed1c6755f4d76e4132d6e9f42683ffb60b184c41942d67215e35e660fa7774fed3f48a020ef13855b7088b3e13818101868ee9b
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 } if string.source && string.source.length > 0
35
+ acc[string.id] = {"text" => string.source } if string.source && string.source.strip.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
@@ -1,7 +1,7 @@
1
1
  module Tolq
2
2
  module Parsers
3
3
  module Xliff
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tolq-parsers-xliff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timon Vonk