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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ea5a9addba0617a687d77121e2f44deebf3cfee
4
- data.tar.gz: 0d61fe746c55ee8b74403d98ccce180416cd2000
3
+ metadata.gz: 057ae00a6822650e3c7e280caf80938d00b7a46d
4
+ data.tar.gz: cb60035b6c4258fb7586bda1f45061e2c75b94ee
5
5
  SHA512:
6
- metadata.gz: 7ea246b5cf029f3b1c2b95c83bc2dab548940f440c4be197ef59606d38f484ccb15342953efb4e76974f3d73caea4fd0f32d7d03274c7330f73fc64785741a0e
7
- data.tar.gz: 5ab16753d3d7fb7438cc5904553af0ceaab1ad31ddec2a29620cea4231263f4889c957bcc4cc2dc1a86f5742ea57a716b55680f47a25018131101fc65bbf67c6
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
@@ -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
@@ -15,7 +15,7 @@ module ARII
15
15
  @help = ARII::Helper.new
16
16
  @seed = seed
17
17
  @objects = Array.new
18
- puts "\t\tSeed: #{@seed[:identifier]}"
18
+ # puts "\t\tSeed: #{@seed[:identifier]}"
19
19
  end
20
20
  end
21
21
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ARII
2
- VERSION = "1.0.8"
2
+ VERSION = "1.1"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arii
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Lopes