arii 1.0.8 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arii/agent.rb +0 -4
- data/lib/arii/cashier.rb +1 -1
- data/lib/arii/jsondetector.rb +1 -1
- data/lib/arii/seedreader.rb +1 -1
- data/lib/arii/sqldetector.rb +1 -2
- data/lib/arii/version.rb +1 -1
- data/lib/arii/xmldetector.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 057ae00a6822650e3c7e280caf80938d00b7a46d
|
4
|
+
data.tar.gz: cb60035b6c4258fb7586bda1f45061e2c75b94ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b55598ffe786b89c419f8801bd141905608c61132c5df60c0a655eba7e708fe7b221d0dc563b8c8cefea16ea5bb48d5be88b41860203e109d3389e58ad0af7e7
|
7
|
+
data.tar.gz: 30e7edca8cd4c3712bcaf24ef77fe82e78ebbba72bff2c721fb2354a2602edbac29a50845d770b1a21347634bbda1e30c476758150c07ec1c10effb4aa744318
|
data/lib/arii/agent.rb
CHANGED
@@ -80,7 +80,6 @@ module ARII
|
|
80
80
|
end
|
81
81
|
|
82
82
|
begin
|
83
|
-
puts @checkup
|
84
83
|
if @checkup[:status] == 100 then
|
85
84
|
process @checkup
|
86
85
|
end
|
@@ -99,12 +98,9 @@ module ARII
|
|
99
98
|
begin
|
100
99
|
checkup[:templates].each do |template|
|
101
100
|
ARII::Config.log.info(self.class.name) {"Delivering to #{template} template."}
|
102
|
-
puts "checkup: #{checkup}"
|
103
101
|
checkup[:payload].each do |payload|
|
104
|
-
puts "payload #{payload}"
|
105
102
|
ARII::Config.log.debug(self.class.name) {"Processing #{payload}."}
|
106
103
|
response = RestClient.post "#{ARII::Config.host}postman/deliver/#{template}.js", payload
|
107
|
-
puts response
|
108
104
|
case response.code
|
109
105
|
when 200
|
110
106
|
ARII::Config.log.debug(self.class.name) {"Delivered to #{template}."}
|
data/lib/arii/cashier.rb
CHANGED
@@ -15,7 +15,7 @@ module ARII
|
|
15
15
|
# - *seed*: seed data (if available)
|
16
16
|
#
|
17
17
|
def self.verify cache, agent, payload, seed
|
18
|
-
ARII::Config.log.info(self.class.name) {"Verifying\n\taccess token: #{ARII::Config.access_token}\n\thost: #{ARII::Config.host}\n\tcache: #{cache}\n\tagent: #{agent}\n\tpayload: #{payload}\tseed: #{seed}"}
|
18
|
+
#ARII::Config.log.info(self.class.name) {"Verifying\n\taccess token: #{ARII::Config.access_token}\n\thost: #{ARII::Config.host}\n\tcache: #{cache}\n\tagent: #{agent}\n\tpayload: #{payload}\n\tseed: #{seed}"}
|
19
19
|
begin
|
20
20
|
response = RestClient.post "#{ARII::Config.host}fluxcapacitor/verify.json", {:access_token => ARII::Config.access_token, :agent => agent[:identifier], :cache => cache, :payload => payload, :seed => seed}
|
21
21
|
rescue Exception => e
|
data/lib/arii/jsondetector.rb
CHANGED
@@ -42,7 +42,7 @@ module ARII
|
|
42
42
|
##
|
43
43
|
# If not on cache, add to payload for processing
|
44
44
|
#
|
45
|
-
if @cache[:status] == 100 then
|
45
|
+
if @cache[:cache][:status] == 100 then
|
46
46
|
ARII::Config.log.info(self.class.name) {"Not on cache, generating payload"}
|
47
47
|
# add row data to payload from selectors (key => key, value => column name)
|
48
48
|
payload = Hash.new
|
data/lib/arii/seedreader.rb
CHANGED
data/lib/arii/sqldetector.rb
CHANGED
@@ -32,10 +32,9 @@ module ARII
|
|
32
32
|
@templates.push t
|
33
33
|
end
|
34
34
|
end
|
35
|
-
|
36
35
|
# The actual processing
|
37
36
|
#
|
38
|
-
if @cache[:status] == 100 then
|
37
|
+
if @cache[:cache][:status] == 100 then
|
39
38
|
ARII::Config.log.info(self.class.name) {"Not on cache, generating payload"}
|
40
39
|
# add row data to payload from selectors (key => key, value => column name)
|
41
40
|
payload = Hash.new
|
data/lib/arii/version.rb
CHANGED
data/lib/arii/xmldetector.rb
CHANGED
@@ -37,7 +37,7 @@ module ARII
|
|
37
37
|
##
|
38
38
|
# If not on cache, add to payload for processing
|
39
39
|
#
|
40
|
-
if @cache[:status] == 100 then
|
40
|
+
if @cache[:cache][:status] == 100 then
|
41
41
|
ARII::Config.log.info(self.class.name) {"Not on cache, generating payload"}
|
42
42
|
# add row data to payload from selectors (key => key, value => column name)
|
43
43
|
payload = Hash.new
|