munin2graphite 0.2.1 → 0.2.2

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: d873c57c17e3e3796363d858d5b902913af4ec96
4
- data.tar.gz: 71145f7b38be43c838f66f4555587e192e90d7d3
3
+ metadata.gz: ca1f280c0197965173014c8af4bc327b678d2d7c
4
+ data.tar.gz: af43da8c810480c547cc3d4604a905e01aee3cb1
5
5
  SHA512:
6
- metadata.gz: 1114fffd3b901c5857ed2131a5e58e81413becee053aec98532735e292741e9dc197e97b4bbb98c3f3508ef93f8a8450d911a816b98e3e6c7c95caf9eff27d45
7
- data.tar.gz: 988f46825018e83a1ec0a987863b737bca367365d4ee7e7742805a1936bf0e2dcc1eb74fc4974ee4644d785bde78d9bde4eb2d7c6f3f07a4315ee0cc386b4bd3
6
+ metadata.gz: 5876dd3ddfac05cf216645138fe3926504fdf65b6693cb10afad0ec8e408c38fc5df7e8f5b81ba84169b62ebbd99100d2ecd50f3e0b6e02f046a74f280983aaf
7
+ data.tar.gz: 7ced9a5d1e5af376d3184cc24c65030032c29bfc8a64b3f42cb169d9ec549d14201f1a70160a3e5869fe6a23cb150bca8fe7934a8425fa6c548ac4431cf65951
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/lib/graphite/base.rb CHANGED
@@ -7,7 +7,6 @@ module Graphite
7
7
 
8
8
  # connection instance (shared with every instance of the class)
9
9
  def self.connection
10
- @@path = ""
11
10
  @init_header ||= {}
12
11
  @@connection ||= begin
13
12
  endpoint_uri = URI.parse(@@endpoint)
@@ -18,9 +17,10 @@ module Graphite
18
17
 
19
18
  # If the operation needs authentication you have to call this first
20
19
  def self.authenticate(user = @@user,password = @@password)
20
+ connection = self.connection
21
21
  url = @@path + "/account/login"
22
22
  url.gsub!("//","/")
23
- response = self.connection.post(url,"nextPage=/&password=#{password}&username=#{user}")
23
+ response = connection.post(url,"nextPage=/&password=#{password}&username=#{user}")
24
24
  @@init_header = {"Cookie" => response.get_fields('Set-Cookie').first}
25
25
  end
26
26
 
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: munin2graphite 0.2.1 ruby lib
5
+ # stub: munin2graphite 0.2.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "munin2graphite"
9
- s.version = "0.2.1"
9
+ s.version = "0.2.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Jose Fernandez (magec)"]
14
- s.date = "2014-05-19"
14
+ s.date = "2014-12-17"
15
15
  s.description = "This gem will install as a daemon and can be used to connect to a graphite and a carbon backend. It will not only post the data for the metrics but also create graphs into graphite, by means of a translation from munin-node."
16
16
  s.email = "jfernandezperez@gmail.com"
17
17
  s.executables = ["munin2gdash", "munin2graphite", "munin2graphite-1r", "munin2graphite-daemon"]
@@ -55,7 +55,7 @@ Gem::Specification.new do |s|
55
55
  ]
56
56
  s.homepage = "http://github.com/magec/munin2graphite"
57
57
  s.licenses = ["MIT"]
58
- s.rubygems_version = "2.2.0"
58
+ s.rubygems_version = "2.2.2"
59
59
  s.summary = "Allows to post both data and graphic info from munin to graphite (https://launchpad.net/graphite)"
60
60
 
61
61
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: munin2graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Fernandez (magec)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-19 00:00:00.000000000 Z
11
+ date: 2014-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rufus-scheduler
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubyforge_project:
177
- rubygems_version: 2.2.0
177
+ rubygems_version: 2.2.2
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: Allows to post both data and graphic info from munin to graphite (https://launchpad.net/graphite)