apiotics 0.1.60 → 0.1.61

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: 19afe73f95e9a3a8925b9bba008780512e11eaa6
4
- data.tar.gz: de2b1eede10faf5760b8685a6d514ae45019fd2e
3
+ metadata.gz: ca3d20d153d263e7f5450de1f167288cba3631ea
4
+ data.tar.gz: f82bf0199d2f790f50acb577a5497aea5b2d5388
5
5
  SHA512:
6
- metadata.gz: 0d8042034c6740e642776e703cbb82784c94085c62491aa786ae36f19d028eec7a4829a3065e2c0606761044a9d45c8df0cd9749a9ead2bd6548281eb47a1bab
7
- data.tar.gz: 2edfad5f428e995af5a58f4fef85b28e94a5137354bd38c986d1fd1d18944c9689b295dc3a12f430033eefa44b285f9f80505845f4485aeaf80b09be45d3b03b
6
+ metadata.gz: 61463484cac44ad676fa5628e51f659c358a0698e3ef78bd987e41e9f2375f9b01ccc24e37166db46929a7562ae7e73f3d3c21a726945211d4c6919390b02711
7
+ data.tar.gz: 35cbdedb7c365b4a11d07b2b1fbe6c10bece1197a3002697b98b26d252a215cd7fa9df39dd3691f2b6a42083b1a56dfbe299ef990adec3e0c92b5411f7bec1a3
@@ -16,7 +16,7 @@ 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][object.class.demodulize][k] != nil
19
+ if Apiotics.configuration.parents[object.class.parent][object.class.name.demodulize][k] != nil
20
20
  m = "#{object.class.parent}".underscore.gsub(" ","_").downcase
21
21
  target_class = Apiotics.configuration.parents[object.class.parent.name][object.class.name.demodulize][k]["driver"].downcase.constantize
22
22
  target = object.m.target_class
@@ -38,14 +38,14 @@ module Apiotics
38
38
  end
39
39
 
40
40
  def find_record
41
- #begin
41
+ begin
42
42
  klass = @class.classify.constantize
43
43
  master_klass = (klass.parent.to_s + "::" + klass.parent.to_s).classify.constantize
44
44
  master_record = master_klass.find_by(apiotics_instance: @id)
45
- @record = master_record.send(klass.classify.demodulize.underscore.downcase)
46
- #rescue Exception => e
45
+ @record = master_record.send(@class.demodulize.underscore.downcase)
46
+ rescue Exception => e
47
47
  puts e.to_s
48
- #end
48
+ end
49
49
  end
50
50
 
51
51
  def set_ack
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.60'
2
+ VERSION = '0.1.61'
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.60
4
+ version: 0.1.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation