tmx_importer 0.2.0 → 0.2.1

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: 2d9609a8256bf614eed18bcd0482e7cc72e75f68
4
- data.tar.gz: ed72d1341c9daf13a7bba504457b25be16d2a93a
3
+ metadata.gz: 879c5a494ffdf3380ca31ffc402dc031261db2bb
4
+ data.tar.gz: 09cd7465ac1b8cb93fc21edc411cba48ca20ae7d
5
5
  SHA512:
6
- metadata.gz: 59eb55bd99594f64f64b4ab9beb1e3990a85082cb5c0d7123ee6168013b5b1a73313eb5c95e222df7cb50f01b5df2111266e825ea99e94a71b14a4e87b31be56
7
- data.tar.gz: d4a284564130928be00a06597c523033fd10f7069c9235072aeacad409fd720f2f38ee9d49fedcff408598b520efbfe0793311c6a1fbf8c21b9137c77a0c5427
6
+ metadata.gz: a1e9252071f93e9a8a65f811a931e7c0aef4f914b7709d28780be54f69f543508773ac2fe379d2c67587abcaa2ce074b41bb9e1eceb628e6f61c432c5c9f0d80
7
+ data.tar.gz: 7e8e76da0b91f2ba041e75e7d86d348d6ad1fe66f03506173e0535d6e0395f9e12a0bd04df9699e4141a931bc1da1aad74498af37c54e0fdd7bba1bc4a30c7c9
data/lib/tmx_importer.rb CHANGED
@@ -122,7 +122,7 @@ module TmxImporter
122
122
  end
123
123
 
124
124
  def write_seg(reader)
125
- return if reader.read_string.empty?
125
+ return if reader.read_string.nil?
126
126
  text = PrettyStrings::Cleaner.new(reader.read_string.force_encoding('UTF-8')).pretty.gsub("\\","\").gsub("'",%q(\\\'))
127
127
  word_count = text.gsub("\s+", ' ').split(' ').length
128
128
  @doc[:seg][:vals] << [@doc[:tu][:id], @doc[:seg][:role], word_count, @doc[:seg][:lang], text, @doc[:tu][:creation_date]]
@@ -1,3 +1,3 @@
1
1
  module TmxImporter
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmx_importer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias