apiotics 0.1.58 → 0.1.59

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: 00501d500f38dbef08696d2ecd48dfc6e2fbc7ba
4
- data.tar.gz: 484e95e829bf66bb6b09387cc989e8273d8ddcde
3
+ metadata.gz: 98f4cc5447124f11fcadaa6cf296198a0a780bdd
4
+ data.tar.gz: 4daec4faa8e81e290c2f8e98a06db72cd6565546
5
5
  SHA512:
6
- metadata.gz: 01f16440480f01b30cf6f7389d1afe820eeba10333823f4825fbf91aa3f772bce59891c1f995fc39182877167a5078cc5c21ab8b2ee51e34b6e5e42c79c36295
7
- data.tar.gz: b492bd839aa262afc134518fdd26e3252b68f048c87011674f0da23561ecd5e343c6ad404bddfa97dba1d51acea020e6d4160773eabaf4433badfeafb81108dd
6
+ metadata.gz: 066598529c7a95e8278be0c73359aef4ba180282afae283da84db8bd6235d92407c7ee2abb7434c93dc52916a46b3c03244a300788773ce712f53a6e1af1a48a
7
+ data.tar.gz: 7240e0cee846e29eb7ea86d7648bb4877f045d33840d82d311471b324e340d26e2e821409db6491ba6b29ff8065c6673f5b9a699920470b3ae758623d3e054a1
@@ -16,18 +16,18 @@ module Apiotics
16
16
  Extract.fire(object, interfaces, "set-request")
17
17
  if Apiotics.configuration.parents != {}
18
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
19
+ if Apiotics.configuration.parents[object.class.parent][object.class.demodulize][k] != nil
20
+ m = "#{object.class.parent}".underscore.gsub(" ","_").downcase
21
+ target_class = Apiotics.configuration.parents[object.class.parent][object.class.demodulize][k]["driver"].downcase.constantize
22
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
23
+ i = Apiotics.configuration.parents[object.class.parent][object.class.demodulize][k]["interface"].downcase.constantize
24
+ if Apiotics.configuration.parents[object.class.parent][object.class.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.parents[object.class.parent.demodulize][object.class.demodulize][k][v]
30
+ target.i = Apiotics.configuration.parents[object.class.parent][object.class.demodulize][k][v]
31
31
  target.skip_extract = true
32
32
  target.save
33
33
  target.skip_extract = false
@@ -60,7 +60,7 @@ module Apiotics
60
60
  def self.fire(object, interfaces, a, time0= nil, time1= nil)
61
61
  if Apiotics.configuration.targets[object.class.parent.to_s] != nil
62
62
  k = "#{object.class.parent}::#{object.class.parent}".constantize
63
- i = "#{object.class.parent}".demodulize.underscore.gsub(" ","_").downcase + "_id"
63
+ i = "#{object.class.parent}".underscore.gsub(" ","_").downcase + "_id"
64
64
  msg = {
65
65
  "action" => a,
66
66
  "instance" => k.find(object.send(i)).apiotics_instance,
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.58'
2
+ VERSION = '0.1.59'
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.58
4
+ version: 0.1.59
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation