capistrano-graphite 1.0.4 → 1.0.5

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: 6eaec296dc80d5610159d2757c93f59a0c7cc0bf
4
- data.tar.gz: 49b9598bf0b8d0feff72f56520dccd7785596d23
3
+ metadata.gz: c881b4ed11b51957684f6cecb76f01c47d9cff6f
4
+ data.tar.gz: d2474ae7de12a2da95acf98f2496ce98f7e5663c
5
5
  SHA512:
6
- metadata.gz: 0c790ef4bdea8aacf3f8293c7350a4d774e5f2fca4eef0cf4195eed7893c5ee8ffa5d55f5a03d5b5123ead3db60632515439ce27d73f649e245b5386acbbc8b9
7
- data.tar.gz: e3c519f1fde358e11ed0e804f71e7f66a9f2f144522ca933605436ec217addc9b6de4db9666f0cfa246630b3e20c6ec52ddefd071011ab0e66359bc88a78b63f
6
+ metadata.gz: cb66f2f8224eadc3702a7860dbdcbaf45aa6ec9dd0cdf53b8d162a9c8559f34502f536bd9b6c34a61528769da7b828ff2e08f3dc46e27ad93c8a97ba5fc99a87
7
+ data.tar.gz: 731a43a5fb5761b6775d6c5a16090dab49e637dbc8839dc81c89ada80e74c2522562e660031a8ae4bce9bc25126cf30ec1bae3713a69efecfbdfc29d62449e5f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.5 (2015-02-27)
2
+ BUG FIXES:
3
+ - Fixes bug introduced in 1.0.4 [GH-29]
4
+
1
5
  ## 1.0.4 (2015-02-26)
2
6
  IMPROVEMENTS
3
7
  - Allows for the overriding of graphite settings. [GH-28]
@@ -12,7 +12,7 @@ class GraphiteInterface
12
12
  uri = URI.parse("#{fetch(:graphite_url)}")
13
13
  req = Net::HTTP::Post.new(uri.path)
14
14
  req.basic_auth(uri.user, uri.password) if uri.user
15
- req.body = event(action).to_s
15
+ req.body = event(action).to_json
16
16
 
17
17
  Net::HTTP.start(uri.host, uri.port) do |http|
18
18
  http.request(req)
@@ -58,11 +58,11 @@ namespace :load do
58
58
  set :suppress_graphite_events, 'false'
59
59
  set :graphite_event_user, ENV.fetch('USER', 'unknown')
60
60
  set :graphite_event_data, -> { fetch(:graphite_event_user) }
61
- set :graphite_event_tags, lambda do |action|
61
+ set :graphite_event_tags, (lambda do |action|
62
62
  [fetch(:application), fetch(:stage), release_timestamp, action].join(',')
63
- end
64
- set :graphite_event_msg, lambda do |action|
63
+ end)
64
+ set :graphite_event_msg, (lambda do |action|
65
65
  "#{action} #{fetch(:application)} in #{fetch(:stage)}"
66
- end
66
+ end)
67
67
  end
68
68
  end
@@ -3,6 +3,6 @@
3
3
  module Capistrano
4
4
  # This module holds the capistrano-graphite version information.
5
5
  module Graphite
6
- VERSION = '1.0.4'
6
+ VERSION = '1.0.5'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - scottsuch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-26 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano