arii 1.0.2 → 1.0.3

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: edc635e3c7d49a3b7c2358c523420a12385a7769
4
- data.tar.gz: 07e4a3530dceed11c6936f9ebef1c3c32642a07c
3
+ metadata.gz: f92af18ae1d08338573b7e6730782d00a8ae164c
4
+ data.tar.gz: 4c22be9fd55855894bfa361fe70df3ab1aae4bb4
5
5
  SHA512:
6
- metadata.gz: 72bc7e958ddebf7f39c751b27427deee716fd3b4849e2ba1ceb74ad8994b7f7c6747a6d83ab7be86bf90c82fdf6f85bc6e818de2cd38f0e1427225c6dc4547ee
7
- data.tar.gz: c0ecac90eac2752039c0893932cf9baa440ef4aa5bb646805ef013b03a56247c5cc7cca9fd851753cb4bfeae436628ef7b323dfa8ba743b8967bb98246d7ebae
6
+ metadata.gz: a0e66865272b6d5b39f3096269056831a27acdc08a26b32c880fd19f53e6e915e90844ba93dac44bb75840c63b28650ef2f054166cc2f42ed8f1153fb4351a7d
7
+ data.tar.gz: 8e418c8217cf77b91b37458cc4324768399fd5c27b3fdac96d211296c5a2c8aa8cb4caa3d2ffef7b6708a68999c88b2b9fdaf406e56ffaf9fb05222f764af756
@@ -18,7 +18,9 @@ module ARII
18
18
  ARII::Config.log.debug(self.class.name) {"Monitoring #{object[:host]}"}
19
19
  begin
20
20
  @client = Mysql2::Client.new(:host => object[:host], :username => object[:username] , :password => object[:password] , :database => object[:database])
21
+ puts @agent[:payload][:query]
21
22
  @client.query(@agent[:payload][:query]).each(:symbolize_keys => false) do |row|
23
+ puts row
22
24
  unless object[:cache].nil? then
23
25
  @response = Cashier.verify row[object[:cache]], object, row, object[:seed]
24
26
  else
@@ -26,6 +28,7 @@ module ARII
26
28
  end
27
29
 
28
30
  # Process ARII cache response
31
+ puts response
29
32
  @cache = JSON.parse(@response, {:symbolize_names => true})
30
33
  unless @cache[:templates].nil? then
31
34
  @cache[:templates].each do |t|
data/lib/arii/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ARII
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Lopes