apiotics 0.1.62 → 0.1.63

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a75b436906a8a7d375fa6a6766c5a2c625949354
4
- data.tar.gz: 3d832a5ba507392369768f38d23f26ae3378a1ca
3
+ metadata.gz: 69d03554fe6afbcec7f62d7b1ded657d7ba9dd22
4
+ data.tar.gz: aa89797093f2c243822ef15b2f7fb4ad8551a176
5
5
  SHA512:
6
- metadata.gz: 1c1ed921e8246be6b1a9d7b239b4926d74ca6f160207ba9fff929374b3ba305026350a40b5a1662351e8f37a6c4bf93983e48fe42963f8cdd0318171abf5e01b
7
- data.tar.gz: ab046c63cc1ff4bb4abf6cacf4dbf1a14ae99a441ed001e89f70ef472d6cdc96611115a7bb490f49f7f8b3c3f6f4506a2fc6cfce226ef3c61679487c12ef548f
6
+ metadata.gz: c8ccbd1abe27e9d4a849742fe02d1b63be008d23866541df2b3d160c37b1bcee70012922bd8ed77d3651ab2c611cb84eaa163b6b2cfa50d823a0f599ecd927a7
7
+ data.tar.gz: 6328d16bf651d5fc187aedef10cc7e6870aa3663662c37dd5b4696540f6d7134c5f1c3fd533ecb979fafe34fc31f17374dd6b4e040bbfd2206979cc7880209e1
@@ -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.targets != {}
18
- interfaces.each do |k,v|
19
- if Apiotics.configuration.targets[object.class.parent.name][object.class.name.demodulize][k] != nil
20
- m = "#{object.class.parent}".underscore.gsub(" ","_").downcase
21
- target_class = Apiotics.configuration.targets[object.class.parent.name][object.class.name.demodulize][k]["driver"].downcase.constantize
22
- target = object.m.target_class
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
- target.i = v
26
- target.skip_extract = true
27
- target.save
28
- target.skip_extract = false
29
- else
30
- target.i = Apiotics.configuration.targets[object.class.parent.name][object.class.name.demodulize][k][v]
31
- target.skip_extract = true
32
- target.save
33
- target.skip_extract = false
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
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.62'
2
+ VERSION = '0.1.63'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiotics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.62
4
+ version: 0.1.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation