honeybadger 1.16.5 → 1.16.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## Honeybadger 1.16.6 ##
2
+
3
+ * Fix cap3 bug where app server is not found for deploy notification.
4
+
5
+ *Joshua Wood*
6
+
1
7
  ## Honeybadger 1.16.5 ##
2
8
 
3
9
  * Add `delayed_job_attempt_threshold` configuration variable. Notifications will not be sent until this threshold is reached.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- honeybadger (1.16.5)
4
+ honeybadger (1.16.6)
5
5
  json
6
6
 
7
7
  GEM
data/honeybadger.gemspec CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'honeybadger'
7
- s.version = '1.16.5'
8
- s.date = '2014-09-17'
7
+ s.version = '1.16.6'
8
+ s.date = '2014-11-26'
9
9
 
10
10
  s.summary = 'Error reports you can be happy about.'
11
11
  s.description = 'Make managing application errors a more pleasant experience.'
data/lib/honeybadger.rb CHANGED
@@ -19,7 +19,7 @@ require 'honeybadger/railtie' if defined?(Rails::Railtie)
19
19
  require 'honeybadger/monitor'
20
20
 
21
21
  module Honeybadger
22
- VERSION = '1.16.5'.freeze
22
+ VERSION = '1.16.6'.freeze
23
23
  LOG_PREFIX = "** [Honeybadger] ".freeze
24
24
 
25
25
  HEADERS = {
@@ -39,27 +39,33 @@ namespace :honeybadger do
39
39
  end
40
40
 
41
41
  server = fetch(:honeybadger_server) do
42
- s = primary(:app)
43
- set(:honeybadger_server, s.select?({ :exclude => :no_release }) ? s : nil)
42
+ if s = primary(:app)
43
+ set(:honeybadger_server, s.select?({ :exclude => :no_release }) ? s : nil)
44
+ end
44
45
  end
45
46
 
46
- if server
47
- on server do |host|
48
- rails_env = fetch(:rails_env, "production")
49
- honeybadger_env = fetch(:honeybadger_env, rails_env)
50
- repository = fetch(:repo_url)
51
- local_user = fetch(:honeybadger_user, ENV['USER'] || ENV['USERNAME'])
52
- api_key = fetch(:honeybadger_api_key, ENV['HONEYBADGER_API_KEY'] || ENV['API_KEY'])
53
- revision = fetch(:current_revision) do
54
- within(repo_path) do
55
- capture("cd #{repo_path} && git rev-parse --short HEAD")
56
- end
57
- end
47
+ unless server
48
+ run_locally do
49
+ warn 'Unable to notify Honeybadger: could not find app server for notification. Try setting honeybadger_server.'
50
+ end
51
+ next
52
+ end
58
53
 
59
- env = ["RAILS_ENV=#{rails_env}", "TO=#{honeybadger_env}", "REVISION=#{revision}", "REPO=#{repository}", "USER=#{local_user}"]
60
- env << "API_KEY=#{api_key}" if api_key
61
- ::SSHKit.config.command_map.prefix[:rake].unshift(*env)
54
+ on server do |host|
55
+ rails_env = fetch(:rails_env, "production")
56
+ honeybadger_env = fetch(:honeybadger_env, rails_env)
57
+ repository = fetch(:repo_url)
58
+ local_user = fetch(:honeybadger_user, ENV['USER'] || ENV['USERNAME'])
59
+ api_key = fetch(:honeybadger_api_key, ENV['HONEYBADGER_API_KEY'] || ENV['API_KEY'])
60
+ revision = fetch(:current_revision) do
61
+ within(repo_path) do
62
+ capture("cd #{repo_path} && git rev-parse --short HEAD")
63
+ end
62
64
  end
65
+
66
+ env = ["RAILS_ENV=#{rails_env}", "TO=#{honeybadger_env}", "REVISION=#{revision}", "REPO=#{repository}", "USER=#{local_user}"]
67
+ env << "API_KEY=#{api_key}" if api_key
68
+ ::SSHKit.config.command_map.prefix[:rake].unshift(*env)
63
69
  end
64
70
  end
65
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.5
4
+ version: 1.16.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-17 00:00:00.000000000 Z
12
+ date: 2014-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -371,7 +371,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
371
371
  version: '0'
372
372
  segments:
373
373
  - 0
374
- hash: -57196166684131191
374
+ hash: 1962430107445670140
375
375
  required_rubygems_version: !ruby/object:Gem::Requirement
376
376
  none: false
377
377
  requirements: