indexer101 0.2.4 → 0.2.5
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/indexer101.rb +14 -6
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58debc39c10c1dff7e46220800a6f063ee8ae0c2b7e47c5dc1161b1c2555d64d
|
|
4
|
+
data.tar.gz: e7b468fb8b030e9a6710625f7e3f6061e30b7d0ae0f371d5977c01f027ab3b32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 480085f3742927accef9c583ef778bedaef2d08c113b87a4fb109fd910ef3b662324b3a35b7cce4c86f3a8d59043f49f03a69e3bfd5d0620a23ba354212e764d
|
|
7
|
+
data.tar.gz: 62f4cd3287838fb3e25d8c54ba74259b03f40d4bafbcb51198b6ad47c3d67adc0f6dcfcf72eddc771be60356253e05b644152b4b5d3b20bb0662226c4299f12e
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/indexer101.rb
CHANGED
|
@@ -127,12 +127,20 @@ class Indexer101
|
|
|
127
127
|
threads = locations.flatten.map do |location|
|
|
128
128
|
|
|
129
129
|
Thread.new {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
|
|
131
|
+
if location.is_a?(Dynarex) or location.is_a?(DxLite) then
|
|
132
|
+
|
|
133
|
+
Thread.current[:v] = location
|
|
134
|
+
|
|
135
|
+
elsif location.is_a? String
|
|
136
|
+
|
|
137
|
+
case File.extname(location)
|
|
138
|
+
when '.xml'
|
|
139
|
+
Thread.current[:v] = Dynarex.new location, debug: @debug
|
|
140
|
+
when '.json'
|
|
141
|
+
Thread.current[:v] = DxLite.new location, debug: @debug
|
|
142
|
+
end
|
|
143
|
+
|
|
136
144
|
end
|
|
137
145
|
}
|
|
138
146
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|