honeybadger 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/Appraisals CHANGED
@@ -23,7 +23,7 @@ appraise 'rails3.2' do
23
23
  end
24
24
 
25
25
  appraise 'rails4' do
26
- gem 'rails', '4.0.0.beta', :git => 'git://github.com/rails/rails.git'
26
+ gem 'rails', '4.0.0.beta1'
27
27
  gem 'honeybadger', :path => '../'
28
28
  gem 'better_errors', :require => false
29
29
  end
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## Honeybadger 1.7.0 (Unreleased) ##
2
+
3
+ * Added a deploy rake task which always loads the Rails environment.
4
+ Also added ability to override rake task in Capistrano recipe.
5
+
6
+ *Joshua Wood*
7
+
8
+ ## Honeybadger 1.6.1 ##
9
+
10
+ * Fixes a bug in Rails 4 test task
11
+
12
+ *Joshua Wood*
13
+
1
14
  ## Honeybadger 1.6.0 ##
2
15
 
3
16
  * Rescue from load error when application_controller.rb is missing.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- honeybadger (1.6.0)
4
+ honeybadger (1.6.1)
5
5
  json
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -192,9 +192,14 @@ previously configured with Capistrano, we already added this for you.
192
192
 
193
193
  The Capistrano task will run our `rake honeybadger:deploy` task on
194
194
  the server you are deploying to, so that it can correctly report
195
- environment-related information. If you would prefer to notify
196
- Honeybadger locally without using rake, check out our blog post:
197
- [Honeybadger and Capistrano: the metal way](http://honeybadger.io/blog/2012/10/06/honeybadger-and-capistrano/).
195
+ environment-related information. To override the task that is run, you
196
+ can set the `:honeybadger_deploy_task` in your *config/deploy.rb* file:
197
+
198
+ # Loads Rails environment before executing normal deploy task
199
+ set :honeybadger_deploy_task, 'honeybadger:deploy_with_environment'
200
+
201
+ If you would prefer to notify Honeybadger locally without using rake,
202
+ check out our blog post: [Honeybadger and Capistrano: the metal way](http://honeybadger.io/blog/2012/10/06/honeybadger-and-capistrano/).
198
203
 
199
204
  ### Heroku
200
205
 
@@ -219,8 +224,13 @@ If you are using other frameworks/platforms, you can still notify us of
219
224
  a deploy. We provide a rake task that uses ENV variables to report
220
225
  environment information:
221
226
 
227
+ # Skips loading the Rails environment if Rails and the honeybadger
228
+ # initializer are detected
222
229
  rake honeybadger:deploy TO=production
223
230
 
231
+ # Always loads the Rails environment
232
+ rake honeybadger:deploy_with_environment TO=production
233
+
224
234
  You can optionally add:
225
235
 
226
236
  * REPO=[scm repo url]
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/josh/code/honeybadger-ruby
3
3
  specs:
4
- honeybadger (1.5.0)
4
+ honeybadger (1.6.0)
5
5
  json
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/josh/code/honeybadger-ruby
3
3
  specs:
4
- honeybadger (1.5.0)
4
+ honeybadger (1.6.0)
5
5
  json
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/josh/code/honeybadger-ruby
3
3
  specs:
4
- honeybadger (1.5.0)
4
+ honeybadger (1.6.0)
5
5
  json
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/josh/code/honeybadger-ruby
3
3
  specs:
4
- honeybadger (1.5.0)
4
+ honeybadger (1.6.0)
5
5
  json
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/josh/code/honeybadger-ruby
3
3
  specs:
4
- honeybadger (1.5.0)
4
+ honeybadger (1.6.0)
5
5
  json
6
6
 
7
7
  GEM
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "4.0.0.beta", :git=>"git://github.com/rails/rails.git"
5
+ gem "rails", "4.0.0.beta1"
6
6
  gem "honeybadger", :path=>"../"
7
7
  gem "better_errors", :require=>false
8
8
 
@@ -1,124 +1,114 @@
1
- GIT
2
- remote: git://github.com/rails/rails.git
3
- revision: 351b0d90922dced4746eb445f243fea221e8114f
4
- specs:
5
- actionmailer (4.0.0.beta)
6
- actionpack (= 4.0.0.beta)
7
- mail (~> 2.5.3)
8
- actionpack (4.0.0.beta)
9
- activesupport (= 4.0.0.beta)
10
- builder (~> 3.1.0)
11
- erubis (~> 2.7.0)
12
- rack (~> 1.4.3)
13
- rack-test (~> 0.6.1)
14
- activemodel (4.0.0.beta)
15
- activesupport (= 4.0.0.beta)
16
- builder (~> 3.1.0)
17
- activerecord (4.0.0.beta)
18
- activemodel (= 4.0.0.beta)
19
- activerecord-deprecated_finders (= 0.0.2)
20
- activesupport (= 4.0.0.beta)
21
- arel (~> 3.0.2)
22
- activesupport (4.0.0.beta)
23
- i18n (~> 0.6)
24
- minitest (~> 4.1)
25
- multi_json (~> 1.3)
26
- thread_safe (~> 0.1)
27
- tzinfo (~> 0.3.33)
28
- rails (4.0.0.beta)
29
- actionmailer (= 4.0.0.beta)
30
- actionpack (= 4.0.0.beta)
31
- activerecord (= 4.0.0.beta)
32
- activesupport (= 4.0.0.beta)
33
- bundler (>= 1.2.2, < 2.0)
34
- railties (= 4.0.0.beta)
35
- sprockets-rails (~> 2.0.0.rc1)
36
- railties (4.0.0.beta)
37
- actionpack (= 4.0.0.beta)
38
- activesupport (= 4.0.0.beta)
39
- rake (>= 0.8.7)
40
- rdoc (~> 3.4)
41
- thor (>= 0.15.4, < 2.0)
42
-
43
1
  PATH
44
2
  remote: /Users/josh/code/honeybadger-ruby
45
3
  specs:
46
- honeybadger (1.5.0)
4
+ honeybadger (1.6.0)
47
5
  json
48
6
 
49
7
  GEM
50
8
  remote: https://rubygems.org/
51
9
  specs:
52
- activerecord-deprecated_finders (0.0.2)
10
+ actionmailer (4.0.0.beta1)
11
+ actionpack (= 4.0.0.beta1)
12
+ mail (~> 2.5.3)
13
+ actionpack (4.0.0.beta1)
14
+ activesupport (= 4.0.0.beta1)
15
+ builder (~> 3.1.0)
16
+ erubis (~> 2.7.0)
17
+ rack (~> 1.5.2)
18
+ rack-test (~> 0.6.2)
19
+ activemodel (4.0.0.beta1)
20
+ activesupport (= 4.0.0.beta1)
21
+ builder (~> 3.1.0)
22
+ activerecord (4.0.0.beta1)
23
+ activemodel (= 4.0.0.beta1)
24
+ activerecord-deprecated_finders (~> 0.0.3)
25
+ activesupport (= 4.0.0.beta1)
26
+ arel (~> 4.0.0.beta1)
27
+ activerecord-deprecated_finders (0.0.3)
28
+ activesupport (4.0.0.beta1)
29
+ i18n (~> 0.6.2)
30
+ minitest (~> 4.2)
31
+ multi_json (~> 1.3)
32
+ thread_safe (~> 0.1)
33
+ tzinfo (~> 0.3.33)
53
34
  appraisal (0.5.1)
54
35
  bundler
55
36
  rake
56
- arel (3.0.2)
37
+ arel (4.0.0.beta1)
57
38
  aruba (0.5.1)
58
39
  childprocess (~> 0.3.6)
59
40
  cucumber (>= 1.1.1)
60
41
  rspec-expectations (>= 2.7.0)
61
42
  atomic (1.0.1)
62
- atomic (1.0.1-java)
63
- better_errors (0.5.0)
43
+ better_errors (0.7.2)
64
44
  coderay (>= 1.0.0)
65
45
  erubis (>= 2.6.6)
66
- bourne (1.3.0)
67
- mocha (= 0.13.0)
46
+ bourne (1.3.2)
47
+ mocha (= 0.13.2)
68
48
  builder (3.1.4)
69
- capistrano (2.14.1)
49
+ capistrano (2.14.2)
70
50
  highline
71
51
  net-scp (>= 1.0.0)
72
52
  net-sftp (>= 2.0.0)
73
53
  net-ssh (>= 2.0.14)
74
54
  net-ssh-gateway (>= 1.1.0)
75
- childprocess (0.3.6)
76
- ffi (~> 1.0, >= 1.0.6)
77
- coderay (1.0.8)
78
- cucumber (1.2.1)
55
+ childprocess (0.3.9)
56
+ ffi (~> 1.0, >= 1.0.11)
57
+ coderay (1.0.9)
58
+ cucumber (1.2.3)
79
59
  builder (>= 2.1.2)
80
60
  diff-lcs (>= 1.1.3)
81
- gherkin (~> 2.11.0)
82
- json (>= 1.4.6)
61
+ gherkin (~> 2.11.6)
62
+ multi_json (~> 1.3)
83
63
  diff-lcs (1.1.3)
84
64
  erubis (2.7.0)
85
65
  fakeweb (1.3.0)
86
- ffi (1.3.1)
87
- ffi (1.3.1-java)
88
- gherkin (2.11.5)
89
- json (>= 1.4.6)
90
- gherkin (2.11.5-java)
91
- json (>= 1.4.6)
66
+ ffi (1.4.0)
67
+ gherkin (2.11.6)
68
+ json (>= 1.7.6)
92
69
  highline (1.6.15)
93
70
  hike (1.2.1)
94
- i18n (0.6.1)
95
- json (1.7.6)
96
- json (1.7.6-java)
71
+ i18n (0.6.4)
72
+ json (1.7.7)
97
73
  mail (2.5.3)
98
74
  i18n (>= 0.4.0)
99
75
  mime-types (~> 1.16)
100
76
  treetop (~> 1.4.8)
101
77
  metaclass (0.0.1)
102
- mime-types (1.19)
103
- minitest (4.4.0)
104
- mocha (0.13.0)
78
+ mime-types (1.21)
79
+ minitest (4.6.2)
80
+ mocha (0.13.2)
105
81
  metaclass (~> 0.0.1)
106
- multi_json (1.5.0)
107
- net-scp (1.0.4)
108
- net-ssh (>= 1.99.1)
109
- net-sftp (2.0.5)
110
- net-ssh (>= 2.0.9)
111
- net-ssh (2.6.3)
112
- net-ssh-gateway (1.1.0)
113
- net-ssh (>= 1.99.1)
82
+ multi_json (1.6.1)
83
+ net-scp (1.1.0)
84
+ net-ssh (>= 2.6.5)
85
+ net-sftp (2.1.1)
86
+ net-ssh (>= 2.6.5)
87
+ net-ssh (2.6.6)
88
+ net-ssh-gateway (1.2.0)
89
+ net-ssh (>= 2.6.5)
114
90
  polyglot (0.3.3)
115
- rack (1.4.4)
116
- rack-protection (1.3.2)
91
+ rack (1.5.2)
92
+ rack-protection (1.5.0)
117
93
  rack
118
94
  rack-test (0.6.2)
119
95
  rack (>= 1.0)
96
+ rails (4.0.0.beta1)
97
+ actionmailer (= 4.0.0.beta1)
98
+ actionpack (= 4.0.0.beta1)
99
+ activerecord (= 4.0.0.beta1)
100
+ activesupport (= 4.0.0.beta1)
101
+ bundler (>= 1.3.0, < 2.0)
102
+ railties (= 4.0.0.beta1)
103
+ sprockets-rails (~> 2.0.0.rc3)
104
+ railties (4.0.0.beta1)
105
+ actionpack (= 4.0.0.beta1)
106
+ activesupport (= 4.0.0.beta1)
107
+ rake (>= 0.8.7)
108
+ rdoc (~> 3.4)
109
+ thor (>= 0.17.0, < 2.0)
120
110
  rake (10.0.3)
121
- rdoc (3.12)
111
+ rdoc (3.12.2)
122
112
  json (~> 1.4)
123
113
  rspec (2.12.0)
124
114
  rspec-core (~> 2.12.0)
@@ -127,34 +117,33 @@ GEM
127
117
  rspec-core (2.12.2)
128
118
  rspec-expectations (2.12.1)
129
119
  diff-lcs (~> 1.1.3)
130
- rspec-mocks (2.12.1)
120
+ rspec-mocks (2.12.2)
131
121
  sham_rack (1.3.4)
132
122
  rack
133
123
  shoulda (2.11.3)
134
- sinatra (1.3.3)
135
- rack (~> 1.3, >= 1.3.6)
136
- rack-protection (~> 1.2)
124
+ sinatra (1.3.5)
125
+ rack (~> 1.4)
126
+ rack-protection (~> 1.3)
137
127
  tilt (~> 1.3, >= 1.3.3)
138
- sprockets (2.8.2)
128
+ sprockets (2.9.0)
139
129
  hike (~> 1.2)
140
130
  multi_json (~> 1.0)
141
131
  rack (~> 1.0)
142
132
  tilt (~> 1.1, != 1.3.0)
143
- sprockets-rails (2.0.0.rc1)
133
+ sprockets-rails (2.0.0.rc3)
144
134
  actionpack (>= 3.0)
145
135
  activesupport (>= 3.0)
146
136
  sprockets (~> 2.8)
147
- thor (0.16.0)
137
+ thor (0.17.0)
148
138
  thread_safe (0.1.0)
149
139
  atomic
150
- tilt (1.3.3)
140
+ tilt (1.3.5)
151
141
  treetop (1.4.12)
152
142
  polyglot
153
143
  polyglot (>= 0.3.1)
154
- tzinfo (0.3.35)
144
+ tzinfo (0.3.37)
155
145
 
156
146
  PLATFORMS
157
- java
158
147
  ruby
159
148
 
160
149
  DEPENDENCIES
@@ -166,7 +155,7 @@ DEPENDENCIES
166
155
  cucumber (~> 1.2.1)
167
156
  fakeweb (~> 1.3.0)
168
157
  honeybadger!
169
- rails (= 4.0.0.beta)!
158
+ rails (= 4.0.0.beta1)
170
159
  rake
171
160
  rspec (~> 2.12.0)
172
161
  sham_rack (~> 1.3.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/josh/code/honeybadger-ruby
3
3
  specs:
4
- honeybadger (1.5.0)
4
+ honeybadger (1.6.0)
5
5
  json
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/josh/code/honeybadger-ruby
3
3
  specs:
4
- honeybadger (1.5.0)
4
+ honeybadger (1.6.0)
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.6.0'
8
- s.date = '2013-03-12'
7
+ s.version = '1.6.1'
8
+ s.date = '2013-03-14'
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
@@ -12,7 +12,7 @@ require 'honeybadger/sender'
12
12
  require 'honeybadger/railtie' if defined?(Rails::Railtie)
13
13
 
14
14
  module Honeybadger
15
- VERSION = '1.6.0'
15
+ VERSION = '1.6.1'
16
16
  LOG_PREFIX = "** [Honeybadger] "
17
17
 
18
18
  HEADERS = {
@@ -16,10 +16,11 @@ module Honeybadger
16
16
  task :deploy, :except => { :no_release => true } do
17
17
  rails_env = fetch(:rails_env, "production")
18
18
  honeybadger_env = fetch(:honeybadger_env, fetch(:rails_env, "production"))
19
+ rake_task = fetch(:honeybadger_deploy_task, 'honeybadger:deploy')
19
20
  local_user = ENV['USER'] || ENV['USERNAME']
20
21
  executable = RUBY_PLATFORM.downcase.include?('mswin') ? fetch(:rake, 'rake.bat') : fetch(:rake, 'rake')
21
22
  directory = configuration.current_release
22
- notify_command = "cd #{directory}; #{executable} RAILS_ENV=#{rails_env} honeybadger:deploy TO=#{honeybadger_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}"
23
+ notify_command = "cd #{directory}; #{executable} RAILS_ENV=#{rails_env} #{rake_task} TO=#{honeybadger_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}"
23
24
  notify_command << " DRY_RUN=true" if dry_run
24
25
  notify_command << " API_KEY=#{ENV['API_KEY']}" if ENV['API_KEY']
25
26
  logger.info "Notifying Honeybadger of Deploy (#{notify_command})"
@@ -15,6 +15,7 @@ namespace :honeybadger do
15
15
  config.logger = Rails.logger
16
16
  config.debug = true
17
17
  config.development_environments = []
18
+ config.rescue_rake_exceptions = false
18
19
  end
19
20
 
20
21
  # Suppress error logging in Rails' exception handling middleware. Rails 3.0
@@ -80,7 +81,7 @@ namespace :honeybadger do
80
81
  end
81
82
 
82
83
  Rails.application.routes.draw do
83
- match 'verify' => 'application#verify', :as => 'verify'
84
+ match 'verify' => 'application#verify', :as => 'verify', :via => :get
84
85
  end
85
86
 
86
87
  puts 'Processing request.'
@@ -21,6 +21,8 @@ namespace :honeybadger do
21
21
  :dry_run => ENV['DRY_RUN'])
22
22
  end
23
23
 
24
+ task :deploy_with_environment => [:environment, :deploy]
25
+
24
26
  task :log_stdout do
25
27
  require 'logger'
26
28
  RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
@@ -29,6 +29,7 @@ namespace :honeybadger do
29
29
  Honeybadger.configure(true) do |config|
30
30
  config.debug = true
31
31
  config.development_environments = []
32
+ config.rescue_rake_exceptions = false
32
33
  end
33
34
 
34
35
  puts "Configuration:"
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.6.0
4
+ version: 1.6.1
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: 2013-03-12 00:00:00.000000000 Z
12
+ date: 2013-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -306,7 +306,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
306
306
  version: '0'
307
307
  segments:
308
308
  - 0
309
- hash: -3371863153631234141
309
+ hash: 3567896080089189096
310
310
  required_rubygems_version: !ruby/object:Gem::Requirement
311
311
  none: false
312
312
  requirements: