apiotics 0.1.62 → 0.1.63
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 +19 -17
- 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: 69d03554fe6afbcec7f62d7b1ded657d7ba9dd22
|
4
|
+
data.tar.gz: aa89797093f2c243822ef15b2f7fb4ad8551a176
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8ccbd1abe27e9d4a849742fe02d1b63be008d23866541df2b3d160c37b1bcee70012922bd8ed77d3651ab2c611cb84eaa163b6b2cfa50d823a0f599ecd927a7
|
7
|
+
data.tar.gz: 6328d16bf651d5fc187aedef10cc7e6870aa3663662c37dd5b4696540f6d7134c5f1c3fd533ecb979fafe34fc31f17374dd6b4e040bbfd2206979cc7880209e1
|
data/lib/apiotics/extract.rb
CHANGED
@@ -14,23 +14,25 @@ module Apiotics
|
|
14
14
|
end
|
15
15
|
if interfaces != {}
|
16
16
|
Extract.fire(object, interfaces, "set-request")
|
17
|
-
if Apiotics.configuration.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
17
|
+
if Apiotics.configuration.portal == "https://test.apiotics.com" #not a permanent solution.
|
18
|
+
if Apiotics.configuration.parents != {}
|
19
|
+
interfaces.each do |k,v|
|
20
|
+
if Apiotics.configuration.parents[object.class.parent.name][object.class.name.demodulize][k.to_s] != nil
|
21
|
+
m = "#{object.class.parent}".underscore.gsub(" ","_").downcase
|
22
|
+
target_class = Apiotics.configuration.parents[object.class.parent.name][object.class.name.demodulize][k.to_s]["driver"].downcase.constantize
|
23
|
+
target = object.m.target_class
|
24
|
+
i = Apiotics.configuration.parents[object.class.parent.name][object.class.name.demodulize][k.to_s]["interface"].downcase.constantize
|
25
|
+
if Apiotics.configuration.parents[object.class.parent.name][object.class.name.demodulize][k.to_s].keys < 3
|
26
|
+
target.i = v
|
27
|
+
target.skip_extract = true
|
28
|
+
target.save
|
29
|
+
target.skip_extract = false
|
30
|
+
else
|
31
|
+
target.i = Apiotics.configuration.parents[object.class.parent.name][object.class.name.demodulize][k][v]
|
32
|
+
target.skip_extract = true
|
33
|
+
target.save
|
34
|
+
target.skip_extract = false
|
35
|
+
end
|
34
36
|
end
|
35
37
|
end
|
36
38
|
end
|
data/lib/apiotics/version.rb
CHANGED