apiotics 0.1.125 → 0.1.126

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f339868158af532938572df17068726ac665b53
4
- data.tar.gz: 0adcb9511005aee0c073467bfa21c794ace2729d
3
+ metadata.gz: 75830b04fc7dba73c02aa47a90abedcb80f6548e
4
+ data.tar.gz: cf982b85792ab34e7fe8d0b77187d3c96510c13f
5
5
  SHA512:
6
- metadata.gz: 3cac9cf099a6a315fd37c0fcdfbbcf7a0c1a7a538975d87f5f93744fbca19c8d97d9ada36e354a3b27b0f90cb0de79bda464f0318efe9c5994c394553284ac93
7
- data.tar.gz: 0f36c77694ce849ec34513e162fe64684a9178cebadb9985d508d81710be35d3cd549dd4569dace983bbaa77ac373d866b70465896ea83356bb577f8a42674ee
6
+ metadata.gz: 80ab700ddb6fc8e5324be89df9f9f49754c074047436d0a1c7613b98f12e02a8b8ef3ec3c44fa9b446d278adda67efa3a4dfdef06daa2920b6e4817fe80305d5
7
+ data.tar.gz: 18f1d3cd8cecb6b864f5454f0a49d64d8d43ef78ba5ffea75295d270fa90783282dcfef07f0fdbe5d72b0c447648f096c409c7a947e072f30e224ae226199cf8
@@ -15,27 +15,29 @@ module Apiotics
15
15
  @timestamp = hash["timestamp"]
16
16
  @status = hash["status"]
17
17
  @valid = true
18
- begin
19
- find_record
20
- @methods.each do |k,v|
21
- @type = @record.class.columns_hash[k].type
22
- #change_value
23
- @record.send("#{k}=".to_sym, v)
24
- unless Apiotics.configuration.reduced_metadata == true
25
- @record.send(("#{k}_action=").to_sym, @action)
26
- @record.send("#{k}_timestamp=".to_sym, @timestamp)
27
- @record.send("#{k}_status=".to_sym, @status)
18
+ unless hash["error"] == nil
19
+ begin
20
+ find_record
21
+ @methods.each do |k,v|
22
+ @type = @record.class.columns_hash[k].type
23
+ #change_value
24
+ @record.send("#{k}=".to_sym, v)
25
+ unless Apiotics.configuration.reduced_metadata == true
26
+ @record.send(("#{k}_action=").to_sym, @action)
27
+ @record.send("#{k}_timestamp=".to_sym, @timestamp)
28
+ @record.send("#{k}_status=".to_sym, @status)
29
+ end
28
30
  end
31
+ if @action == "set-complete"
32
+ set_complete
33
+ elsif @action == "set-request-ack"
34
+ set_ack
35
+ elsif @action == "get-ack"
36
+ get_ack
37
+ end
38
+ rescue
39
+ @valid = false
29
40
  end
30
- if @action == "set-complete"
31
- set_complete
32
- elsif @action == "set-request-ack"
33
- set_ack
34
- elsif @action == "get-ack"
35
- get_ack
36
- end
37
- rescue
38
- @valid = false
39
41
  end
40
42
  end
41
43
 
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.125'
2
+ VERSION = '0.1.126'
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.125
4
+ version: 0.1.126
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation