capistrano-graphite 1.0.7 → 1.0.8

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: 252c2cae55df89bf20316773caa34f6cd56b69bf
4
- data.tar.gz: 447eae0a3273bb51b459bbb0084da09103ab5027
3
+ metadata.gz: 9e88d8b9c6c46ca2e563f5aac608079166d8a415
4
+ data.tar.gz: 3c647adb3a37c9144cd46dd32e7c47a2aa4dddb3
5
5
  SHA512:
6
- metadata.gz: ef908a0665630607209a915564e50946005cfbefc2c932d31f3393183e8373b636c7fa4f88481a13e4487de66b69357652478e15c4b2e823468c0b8931fe6baf
7
- data.tar.gz: 1eea5599e8bd78c9df8f886dee67221789f7f6d7b920a00a78bc5b9a6c3fc2659d3f150fde71f0f59bb358075ec1a52531629c874fd25666cd072ea7c3fdc524
6
+ metadata.gz: b0d250c7a9d3c846291bf5a6586972db2ed86c39539cfe5d3d2bbd469b81427fcfaae3594e50acec33ad0089074375f0e86a16ebad8f456909202e1f4132b230
7
+ data.tar.gz: ec82364bb1260d3f2a49c8f0a2d654fb64f07724cfc1665312db19957fb2d069ba0afc5d6c5ec796345f5128426be99cae20098e31553f6adf4fc6c4e0d8afcf
@@ -1,5 +1,6 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2014-11-18 14:45:57 -0500 using RuboCop version 0.27.1.
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2016-02-22 21:18:24 -0500 using RuboCop version 0.37.2.
3
4
  # The point is for the user to remove these configuration records
4
5
  # one by one as the offenses are removed from the code base.
5
6
  # Note that changes in the inspected code, or installation of new
@@ -7,5 +8,10 @@
7
8
 
8
9
  # Offense count: 1
9
10
  Metrics/AbcSize:
10
- Max: 20
11
+ Max: 19
11
12
 
13
+ # Offense count: 2
14
+ # Cop supports --auto-correct.
15
+ Style/UnneededInterpolation:
16
+ Exclude:
17
+ - 'lib/capistrano/graphite.rb'
@@ -1,3 +1,11 @@
1
+ ## 1.0.8 (2016-02-26)
2
+ BUG FIXES:
3
+ - Add missing require for json
4
+
5
+ IMPROVEMENTS:
6
+ - Cleanup a few new rubocop warnings
7
+ - Fix Coveralls/TravisCI error
8
+
1
9
  ## 1.0.7 (2015-10-26)
2
10
  IMPROVEMENTS
3
11
  - Fix regression in ssl url generation [GH-32]
@@ -5,6 +5,7 @@ require 'net/http'
5
5
  require 'uri'
6
6
  require 'sshkit'
7
7
  require 'sshkit/dsl'
8
+ require 'json'
8
9
 
9
10
  # Build the request to post
10
11
  class GraphiteInterface
@@ -36,10 +37,10 @@ namespace :deploy do
36
37
  task :post_graphite, :action do |_, args|
37
38
  action = args[:action]
38
39
  run_locally do
39
- if fetch(:suppress_graphite_events).downcase == 'false'
40
+ if fetch(:suppress_graphite_events).casecmp('false')
40
41
  GraphiteInterface.new.post_event("#{action}")
41
42
  info("#{action.capitalize} event posted to graphite.")
42
- elsif fetch(:suppress_graphite_events).downcase == 'true'
43
+ elsif fetch(:suppress_graphite_events).casecmp('true')
43
44
  info('No event posted: `suppress_graphite_events` is set to true.')
44
45
  else
45
46
  warn('No event posted: `suppress_graphite_events` is set incorrectly.')
@@ -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.7'
6
+ VERSION = '1.0.8'.freeze
7
7
  end
8
8
  end
@@ -6,6 +6,7 @@ require 'webmock/rspec'
6
6
  require 'capistrano/all'
7
7
  require 'capistrano/framework'
8
8
  require 'capistrano/setup'
9
+ require 'tempfile'
9
10
 
10
11
  require 'coveralls'
11
12
  Coveralls.wear!
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.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - scottsuch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-26 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano