tbx_importer 0.1.6 → 0.1.7

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: 2033921597c1fc81b125a26dc8ad32a3163c83b2
4
- data.tar.gz: 4dfa3659ed1715b06d6e71e2dd12354aad1951a3
3
+ metadata.gz: b0a89cc90bfb0da2901149b99a39f968e22afb31
4
+ data.tar.gz: 647d1288aa408be31688a10bc31c25fd22ecbfa8
5
5
  SHA512:
6
- metadata.gz: 7b43b05258e4d44f46360b1aba60c01bc36b4509b333918f232ccbf40b36b84acf5c62feb7d6c2bcf03bf7e23966d430148a826f5584554c35f4d4fc67ed1130
7
- data.tar.gz: 89a329fa3c63b9a6e6e1ace78f92f0d04391c029425889d03c9cc56ce80949b5b30b7299352d8327189abd63058ac1cb8759d9f2b75b4e44b81a2e997570050b
6
+ metadata.gz: 15f48e14b96c3fcbcad3d572a6a22bc413132a7a1adbbfae34c8dfba302d60c6784258baa5291e753db623dfb4bbf43a08b05b474a1eee526bf088d0bc211311
7
+ data.tar.gz: ed62cb32c367bafa33ae4f57eae48891d2b0512d8f9887cb2c8049d18aae8722aa5ddc1071b9531f6ea238a4be1d31432ad8bff415d5e856ac02bc7b1db90732
@@ -1,3 +1,3 @@
1
1
  module TbxImporter
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/lib/tbx_importer.rb CHANGED
@@ -121,9 +121,11 @@ module TbxImporter
121
121
  when [116, 101, 114, 109] #term
122
122
  write_term(reader)
123
123
  when [116, 101, 114, 109, 78, 111, 116, 101] #termNote
124
- @doc[:term][:part_of_speech] = PrettyStrings::Cleaner.new(reader.read_string.downcase).pretty.gsub("\\","\").gsub("'",%q(\\\')) if reader.get_attribute("type").eql?("partOfSpeech")
125
- @doc[:term][:vals].pop
126
- write_term(reader)
124
+ unless reader.read_string.nil?
125
+ @doc[:term][:part_of_speech] = PrettyStrings::Cleaner.new(reader.read_string.downcase).pretty.gsub("\\","\").gsub("'",%q(\\\')) if reader.get_attribute("type").eql?("partOfSpeech")
126
+ @doc[:term][:vals].pop
127
+ write_term(reader)
128
+ end
127
129
  when [100, 101, 115, 99, 114, 105, 112] #descrip
128
130
  @doc[:tc][:definition] = PrettyStrings::Cleaner.new(reader.read_string).pretty.gsub("\\","\").gsub("'",%q(\\\')) if reader.get_attribute("type").eql?("definition")
129
131
  @doc[:tc][:vals].pop
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tbx_importer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-22 00:00:00.000000000 Z
11
+ date: 2016-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler