capistrano-graphite 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: ed60203a50fea8d5872b9443a58ffb86283ee191
4
- data.tar.gz: dfc07a01653e5511046934e6e0fde87613cadf04
3
+ metadata.gz: b2c1f690fc5d7ed7909edf58dce04a3037200d0e
4
+ data.tar.gz: 95ef00184776082bc7bc259eaaeeda993ab75a64
5
5
  SHA512:
6
- metadata.gz: 5c2faf586dda8861b94c5cae9812e343d12ff6ab34b8ded7960317b8dcf98324487c65055085f62c0c5b1344107fac3d18e7a56208d4a73686ac02f2e446a471
7
- data.tar.gz: a917425e8095c7e9e7ff9a60b0f2c74532fb334e9ab845af96aea7578707db8a353f816c0fb699ecb9ff3f9134d1e5f760fcf038dc5b707956439056ff3b74e5
6
+ metadata.gz: 1b37ac4b8ecf1ee70ff9ee499c5ffe84b578ba0d9a39c46751b23dff4d48e4061727a2a65e4c6b4d9f364cc513a8601bdf213871be40cd36ff97b5e26dee62ca
7
+ data.tar.gz: 629dd91c96526d18c8c64150ad5973d1f636a82845c87d687039a46fa14b7c2464e1abd7d414298026eece16fb0676f0fe53fed8e9aed11733c0220de9cde170
data/.travis.yml CHANGED
@@ -1,3 +1,5 @@
1
+ sudo: false
2
+
1
3
  language: ruby
2
4
 
3
5
  rvm:
data/CHANGELOG.md CHANGED
@@ -1,4 +1,19 @@
1
- ## 1.0.1
1
+ ## 1.0.3 (2015-01-08)
2
+
3
+
4
+
5
+ ## 1.0.2 (2014-11-19)
6
+
7
+ BUG FIXES:
8
+
9
+ - Fix bug introduced by [GH-17].
10
+ - Fix issue where notification could be sent on failed deploy/rollback.
11
+
12
+ IMPROVEMENTS:
13
+
14
+ - Cleaner Rake syntax.
15
+
16
+ ## 1.0.1 (2014-11-19)
2
17
 
3
18
  BUG FIXES:
4
19
 
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Scott Gorsuch
1
+ Copyright (c) 2015 Scott Gorsuch
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -36,12 +36,11 @@ Path to your graphite instance. Port and user:password are optional.
36
36
 
37
37
  set :graphite_url, "http://user:password@example.com:8000/events/"
38
38
 
39
- Disable sending events for a particular stage by setting the following to 0.
40
- Note that the config `graphite_enable_events` has been deprecated in favor of
41
- the config `suppress_graphite_events` below
39
+ Disable sending events for a particular stage by setting the following:
42
40
 
43
41
  set :suppress_graphite_events, "true" # This is set to false by default
44
42
 
43
+ Note that the config `graphite_enable_events` was deprecated in version 1.0.0.
45
44
 
46
45
  ### Test that it's working
47
46
  You can run the following on it's own assuming you have configured the graphite url
@@ -18,12 +18,6 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.required_ruby_version = '> 1.9'
20
20
 
21
- s.post_install_message = 'The config `graphite_enable_events` has changed ' \
22
- 'to `suppress_graphite_events` and will accept ' \
23
- 'a true or false. See the README.md at ' \
24
- 'https://github.com/scottsuch/capistrano-graphite ' \
25
- 'for details.'\
26
-
27
21
  s.files = `git ls-files -z`.split("\x0")
28
22
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
29
23
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
@@ -28,13 +28,13 @@ namespace :deploy do
28
28
  task :post_graphite, :action do |_, args|
29
29
  action = args[:action]
30
30
  run_locally do
31
- if fetch(:suppress_graphite_events).downcase == 'true'
31
+ if fetch(:suppress_graphite_events).downcase == 'false'
32
32
  GraphiteInterface.new.post_event("#{action}")
33
33
  info("#{action.capitalize} event posted to graphite.")
34
- elsif fetch(:suppress_graphite_events).downcase == 'false'
35
- info('No event posted: `suppress_graphite_events` set to true.')
34
+ elsif fetch(:suppress_graphite_events).downcase == 'true'
35
+ info('No event posted: `suppress_graphite_events` is set to true.')
36
36
  else
37
- warn('No event posted: `suppress_graphite_events` set incorrectly.')
37
+ warn('No event posted: `suppress_graphite_events` is set incorrectly.')
38
38
  end
39
39
  end
40
40
  end
@@ -50,7 +50,7 @@ end
50
50
 
51
51
  namespace :load do
52
52
  task :defaults do
53
- set :suppress_graphite_events, 'false'
54
- set :local_user, ENV['USER']
53
+ set_if_empty :suppress_graphite_events, 'false'
54
+ set_if_empty :local_user, ENV['USER']
55
55
  end
56
56
  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.2'
6
+ VERSION = '1.0.3'
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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - scottsuch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-19 00:00:00.000000000 Z
11
+ date: 2015-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -135,9 +135,7 @@ homepage: https://github.com/scottsuch/capistrano-graphite
135
135
  licenses:
136
136
  - MIT
137
137
  metadata: {}
138
- post_install_message: The config `graphite_enable_events` has changed to `suppress_graphite_events`
139
- and will accept a true or false. See the README.md at https://github.com/scottsuch/capistrano-graphite
140
- for details.
138
+ post_install_message:
141
139
  rdoc_options: []
142
140
  require_paths:
143
141
  - lib
@@ -160,3 +158,4 @@ summary: A gem for pushing graphite events via capistrano v3 deployment
160
158
  test_files:
161
159
  - spec/grapite_spec.rb
162
160
  - spec/spec_helper.rb
161
+ has_rdoc: