apiotics 0.1.126 → 0.1.127

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: 75830b04fc7dba73c02aa47a90abedcb80f6548e
4
- data.tar.gz: cf982b85792ab34e7fe8d0b77187d3c96510c13f
3
+ metadata.gz: 2f055a06a1fffb56569e7858bf4729fb6999f56b
4
+ data.tar.gz: 2e0838b96458762a5d686cbb5b4841509d28a960
5
5
  SHA512:
6
- metadata.gz: 80ab700ddb6fc8e5324be89df9f9f49754c074047436d0a1c7613b98f12e02a8b8ef3ec3c44fa9b446d278adda67efa3a4dfdef06daa2920b6e4817fe80305d5
7
- data.tar.gz: 18f1d3cd8cecb6b864f5454f0a49d64d8d43ef78ba5ffea75295d270fa90783282dcfef07f0fdbe5d72b0c447648f096c409c7a947e072f30e224ae226199cf8
6
+ metadata.gz: 02ffcc0192573aa261a62029eac9b2685a460834b1719a2bbf5e5d92f9b7f05a607edc733e8fee79022f1f7dd880039417876c56d53c9e85c62a3ed92e4db73f
7
+ data.tar.gz: 704316eb1ca9f586163351e19278e8dca7672e08deb41317788d660385ac28c876d195b443928df44008a978de1f5d65560fc046960796ee4ff91f42dd6e213f
@@ -15,29 +15,27 @@ module Apiotics
15
15
  @timestamp = hash["timestamp"]
16
16
  @status = hash["status"]
17
17
  @valid = true
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
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
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)
37
28
  end
38
- rescue
39
- @valid = false
40
29
  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
41
39
  end
42
40
  end
43
41
 
@@ -111,7 +111,7 @@ module Apiotics
111
111
  puts "Message received: " + msg
112
112
  msg_hash = Apiotics::Parse.message(msg)
113
113
  #puts "Driver: " + msg_hash["driver"]
114
- unless msg_hash["driver"] == "Core::Heartbeat"
114
+ unless msg_hash["driver"] == "Core::Heartbeat" || msg_hash["error"] != nil
115
115
  r = Apiotics::Insert.new(msg_hash)
116
116
  if r.valid == true
117
117
  if r.action == "set-request-ack" || r.action == "set-complete" || r.action == "get-ack"
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.126'
2
+ VERSION = '0.1.127'
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.126
4
+ version: 0.1.127
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation