apiotics-test 0.1.50 → 0.1.52
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 +17 -16
- 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: 0ff1f721ff437e3abbe56bded7583c57ca541d74
|
4
|
+
data.tar.gz: a49c1b007a74bdb454c03173fdbd76f3234b9663
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89fa9677a5416bd0d2ba8c99a9df0c8b7ff7ddf3e24887c2a4ece80077f5dce43337be79eb19d2177f2f0be552a5712cf9dea6e3e030ca83c2f40ecae02b46e6
|
7
|
+
data.tar.gz: bfdd4e123053814bfe67dc62200da4143a22a4eeed514e8b0684762f310414fe445c692f7d1e3c6c5143bba80aeafbf3161753139a48028e3af62822b92557bb
|
data/lib/apiotics/extract.rb
CHANGED
@@ -15,22 +15,23 @@ module Apiotics
|
|
15
15
|
if interfaces != {}
|
16
16
|
Extract.fire(object, interfaces, "set-request")
|
17
17
|
if Apiotics.configuration.parents != {}
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
18
|
+
interfaces.each do |k,v|
|
19
|
+
if Apiotics.configuration.parents[object.class.parent.demodulize][object.class.demodulize][k] != nil
|
20
|
+
m = "#{object.class.parent}".demodulize.underscore.gsub(" ","_").downcase
|
21
|
+
target_class = Apiotics.configuration.parents[object.class.parent.demodulize][object.class.demodulize][k]["driver"].downcase.constantize
|
22
|
+
target = object.m.target_class
|
23
|
+
i = Apiotics.configuration.parents[object.class.parent.demodulize][object.class.demodulize][k]["interface"].downcase.constantize
|
24
|
+
if Apiotics.configuration.parents[object.class.parent.demodulize][object.class.demodulize][k].keys < 3
|
25
|
+
target.i = v
|
26
|
+
target.skip_extract = true
|
27
|
+
target.save
|
28
|
+
target.skip_extract = false
|
29
|
+
else
|
30
|
+
target.i = Apiotics.configuration.parents[object.class.parent.demodulize][object.class.demodulize][k][v]
|
31
|
+
target.skip_extract = true
|
32
|
+
target.save
|
33
|
+
target.skip_extract = false
|
34
|
+
end
|
34
35
|
end
|
35
36
|
end
|
36
37
|
end
|
data/lib/apiotics/version.rb
CHANGED