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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e08463663182e35b84d2765d9ab48d321bbefe68
4
- data.tar.gz: d910566af4d15b8a28b646356ecaf9da2f46fb6c
3
+ metadata.gz: 95e60765c302ac9b10aca5e2dc7b4a1307a202bd
4
+ data.tar.gz: e214eaeeb8c340c4962bd97842aed01a1c3559af
5
5
  SHA512:
6
- metadata.gz: 9c1ed7451147cc820d4579a36ddbd29035c04b4e7cb4481ac52c9397439567b890c2366f7df459aeb340ab4e6a6ab717e2e0500fdf55d4bc5bef533b4c5e4646
7
- data.tar.gz: 2e5604abde0d51c14b896160973d4856d67df0d30dbd1aef251ef7ee4e777bd27e8b423cee44144336e4df20afe55eabee0ffd3ab0bf50491946d25e539a7fcb
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
@@ -1,7 +1,7 @@
1
1
  module Tolq
2
2
  module Parsers
3
3
  module Xliff
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
6
6
  end
7
7
  end
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.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-13 00:00:00.000000000 Z
11
+ date: 2017-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xliffer