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 +4 -4
- data/lib/tbx_importer/version.rb +1 -1
- data/lib/tbx_importer.rb +5 -3
- 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: b0a89cc90bfb0da2901149b99a39f968e22afb31
|
4
|
+
data.tar.gz: 647d1288aa408be31688a10bc31c25fd22ecbfa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15f48e14b96c3fcbcad3d572a6a22bc413132a7a1adbbfae34c8dfba302d60c6784258baa5291e753db623dfb4bbf43a08b05b474a1eee526bf088d0bc211311
|
7
|
+
data.tar.gz: ed62cb32c367bafa33ae4f57eae48891d2b0512d8f9887cb2c8049d18aae8722aa5ddc1071b9531f6ea238a4be1d31432ad8bff415d5e856ac02bc7b1db90732
|
data/lib/tbx_importer/version.rb
CHANGED
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
|
-
|
125
|
-
|
126
|
-
|
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.
|
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-
|
11
|
+
date: 2016-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|