apiotics 0.1.61 → 0.1.62
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apiotics/extract.rb +6 -6
- data/lib/apiotics/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a75b436906a8a7d375fa6a6766c5a2c625949354
|
4
|
+
data.tar.gz: 3d832a5ba507392369768f38d23f26ae3378a1ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c1ed921e8246be6b1a9d7b239b4926d74ca6f160207ba9fff929374b3ba305026350a40b5a1662351e8f37a6c4bf93983e48fe42963f8cdd0318171abf5e01b
|
7
|
+
data.tar.gz: ab046c63cc1ff4bb4abf6cacf4dbf1a14ae99a441ed001e89f70ef472d6cdc96611115a7bb490f49f7f8b3c3f6f4506a2fc6cfce226ef3c61679487c12ef548f
|
data/lib/apiotics/extract.rb
CHANGED
@@ -14,20 +14,20 @@ module Apiotics
|
|
14
14
|
end
|
15
15
|
if interfaces != {}
|
16
16
|
Extract.fire(object, interfaces, "set-request")
|
17
|
-
if Apiotics.configuration.
|
17
|
+
if Apiotics.configuration.targets != {}
|
18
18
|
interfaces.each do |k,v|
|
19
|
-
if Apiotics.configuration.
|
19
|
+
if Apiotics.configuration.targets[object.class.parent.name][object.class.name.demodulize][k] != nil
|
20
20
|
m = "#{object.class.parent}".underscore.gsub(" ","_").downcase
|
21
|
-
target_class = Apiotics.configuration.
|
21
|
+
target_class = Apiotics.configuration.targets[object.class.parent.name][object.class.name.demodulize][k]["driver"].downcase.constantize
|
22
22
|
target = object.m.target_class
|
23
|
-
i = Apiotics.configuration.
|
24
|
-
if Apiotics.configuration.
|
23
|
+
i = Apiotics.configuration.targets[object.class.parent.name][object.class.name.demodulize][k]["interface"].downcase.constantize
|
24
|
+
if Apiotics.configuration.targets[object.class.parent.name][object.class.name.demodulize][k].keys < 3
|
25
25
|
target.i = v
|
26
26
|
target.skip_extract = true
|
27
27
|
target.save
|
28
28
|
target.skip_extract = false
|
29
29
|
else
|
30
|
-
target.i = Apiotics.configuration.
|
30
|
+
target.i = Apiotics.configuration.targets[object.class.parent.name][object.class.name.demodulize][k][v]
|
31
31
|
target.skip_extract = true
|
32
32
|
target.save
|
33
33
|
target.skip_extract = false
|
data/lib/apiotics/version.rb
CHANGED