drpedia_lite 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/RawReader.rb +4 -1
- 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: b23df17a80c8f9dcd7d635400376ccb3d064bff6
|
|
4
|
+
data.tar.gz: 2b9f8476c14c80b7a2c1c12682c408da96dedc1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0840be01a4a1be316c4752a65161f6634fa8a45408eb69dc46f6dd4c3608d0fb1056394b3916c6084c5c26139076496a35ad9c17fa96ec100758d5ef117b9538
|
|
7
|
+
data.tar.gz: 3f846dd2c1178c6bbf639c2837101471b3ab2b4caeb804d72f181c24cc46a25788db1543084ce10d8bac6b0f22b4ed8db1896015185b5525a5f4cab77c3b7a29
|
data/lib/RawReader.rb
CHANGED
|
@@ -151,11 +151,14 @@ private
|
|
|
151
151
|
if line.strip.length == 0
|
|
152
152
|
@multiline_state = nil
|
|
153
153
|
else
|
|
154
|
-
|
|
154
|
+
# Force whitespace at end to the length count is correct
|
|
155
|
+
clusters = (line + ' ').split(/\:/)
|
|
156
|
+
|
|
155
157
|
case clusters.length
|
|
156
158
|
when 2
|
|
157
159
|
@multiline_state = clusters[0].strip.to_sym
|
|
158
160
|
@profession_advanced[@multiline_state] = ''
|
|
161
|
+
|
|
159
162
|
when 1
|
|
160
163
|
@profession_advanced[@multiline_state] += clusters[0]
|
|
161
164
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: drpedia_lite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gloria Budiman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-12-
|
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Extracts skills, strains, profession, and requirement trees into JSON
|
|
14
14
|
email: wahyu.g@gmail.com
|