honeybadger 1.9.2 → 1.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.9.2'
8
- s.date = '2013-10-28'
7
+ s.version = '1.9.3'
8
+ s.date = '2013-11-05'
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.'
@@ -19,14 +19,14 @@ Gem::Specification.new do |s|
19
19
  s.rdoc_options = ['--charset=UTF-8', '--markup tomdoc']
20
20
  s.extra_rdoc_files = %w[README.md MIT-LICENSE]
21
21
 
22
- s.add_dependency('faraday')
22
+ s.add_dependency('faraday', '~> 0.7')
23
23
  s.add_dependency('json')
24
24
 
25
25
  s.add_development_dependency('cucumber', '~> 1.2.1')
26
26
  s.add_development_dependency('rspec', '~> 2.14.0')
27
27
  s.add_development_dependency('fakeweb', '~> 1.3.0')
28
28
  s.add_development_dependency('sham_rack', '~> 1.3.0')
29
- s.add_development_dependency('capistrano')
29
+ s.add_development_dependency('capistrano', '~> 2.0')
30
30
  s.add_development_dependency('rake')
31
31
  s.add_development_dependency('sinatra')
32
32
  s.add_development_dependency('aruba')
@@ -75,6 +75,8 @@ Gem::Specification.new do |s|
75
75
  gemfiles/rails3.2.gemfile.lock
76
76
  gemfiles/rails4.gemfile
77
77
  gemfiles/rails4.gemfile.lock
78
+ gemfiles/rails_edge.gemfile
79
+ gemfiles/rails_edge.gemfile.lock
78
80
  gemfiles/rake.gemfile
79
81
  gemfiles/rake.gemfile.lock
80
82
  gemfiles/sinatra.gemfile
@@ -1,4 +1,5 @@
1
1
  require 'faraday'
2
+ require 'timeout'
2
3
  require 'json'
3
4
  require 'digest'
4
5
  require 'logger'
@@ -13,7 +14,7 @@ require 'honeybadger/stats'
13
14
  require 'honeybadger/railtie' if defined?(Rails::Railtie)
14
15
 
15
16
  module Honeybadger
16
- VERSION = '1.9.2'
17
+ VERSION = '1.9.3'
17
18
  LOG_PREFIX = "** [Honeybadger] "
18
19
 
19
20
  HEADERS = {
@@ -119,7 +119,7 @@ module Honeybadger
119
119
  end
120
120
 
121
121
  def client
122
- @client ||= Faraday.new(:request => request_options, :proxy => proxy_options) do |conn|
122
+ @client ||= Faraday.new(:request => request_options, :proxy => proxy_options).tap do |conn|
123
123
  conn.adapter Faraday.default_adapter
124
124
  conn.url_prefix = "#{protocol}://#{host}:#{port}"
125
125
  conn.headers['User-agent'] = "HB-Ruby #{Honeybadger::VERSION}; #{RUBY_VERSION}; #{RUBY_PLATFORM}"
@@ -1,17 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Honeybadger do
4
- def stub_http(options = {})
5
- response = options[:response] || Faraday::Response.new(:status => 200)
6
- response.stub(:body => options.include?(:body) ? options[:body] : '{"id":"1234"}')
7
- http = double(:post => response,
8
- :adapter => nil,
9
- :url_prefix= => nil,
10
- :headers => nil)
11
- Faraday.stub(:new => http)
12
- http
13
- end
14
-
15
4
  def send_notice
16
5
  Honeybadger.sender.send_to_honeybadger('data')
17
6
  end
@@ -5,9 +5,7 @@ describe Honeybadger::Sender do
5
5
 
6
6
  it "posts to Honeybadger when using an HTTP proxy" do
7
7
  post = double()
8
- http = double(:adapter => nil,
9
- :url_prefix= => nil,
10
- :headers => nil)
8
+ http = stub_http
11
9
  http.stub(:post).and_yield(post).and_return(false)
12
10
 
13
11
  url = "http://api.honeybadger.io:80#{Honeybadger::Sender::NOTICES_URI}"
@@ -142,7 +140,7 @@ describe Honeybadger::Sender do
142
140
 
143
141
  real_http = Faraday.new(:url => url)
144
142
  real_http.stub(:post => nil)
145
- Faraday.stub(:new).and_yield(real_http)
143
+ Faraday.stub(:new).and_return(real_http)
146
144
 
147
145
  File.stub(:exist?).with(OpenSSL::X509::DEFAULT_CERT_FILE).and_return(false)
148
146
 
@@ -235,15 +233,4 @@ describe Honeybadger::Sender do
235
233
  sender = args.delete(:sender) || build_sender(args)
236
234
  sender.send_to_honeybadger(notice)
237
235
  end
238
-
239
- def stub_http(options = {})
240
- response = options[:response] || Faraday::Response.new(:status => 200)
241
- response.stub(:body => options[:body] || '{"id":"1234"}')
242
- http = double(:post => response,
243
- :adapter => nil,
244
- :url_prefix= => nil,
245
- :headers => nil)
246
- Faraday.stub(:new => http)
247
- http
248
- end
249
236
  end
@@ -23,6 +23,16 @@ module Helpers
23
23
  end
24
24
  end
25
25
 
26
+ def stub_http(options = {})
27
+ response = options[:response] || Faraday::Response.new(:status => 200)
28
+ response.stub(:body => options[:body] || '{"id":"1234"}')
29
+
30
+ http = Faraday.new
31
+ http.stub(:post).and_return(response)
32
+ Faraday.stub(:new => http)
33
+ http
34
+ end
35
+
26
36
  def reset_config
27
37
  Honeybadger.configuration = nil
28
38
  Honeybadger.configure do |config|
metadata CHANGED
@@ -1,52 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2
5
- prerelease:
4
+ version: 1.9.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Joshua Wood
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-28 00:00:00.000000000 Z
11
+ date: 2013-11-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: faraday
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: '0.7'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: '0'
26
+ version: '0.7'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: cucumber
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: fakeweb
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: sham_rack
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
@@ -110,145 +97,127 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: capistrano
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - ~>
116
102
  - !ruby/object:Gem::Version
117
- version: '0'
103
+ version: '2.0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - ~>
124
109
  - !ruby/object:Gem::Version
125
- version: '0'
110
+ version: '2.0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: rake
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ! '>='
115
+ - - '>='
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - '>='
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: sinatra
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ! '>='
129
+ - - '>='
148
130
  - !ruby/object:Gem::Version
149
131
  version: '0'
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ! '>='
136
+ - - '>='
156
137
  - !ruby/object:Gem::Version
157
138
  version: '0'
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: aruba
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
- - - ! '>='
143
+ - - '>='
164
144
  - !ruby/object:Gem::Version
165
145
  version: '0'
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
- - - ! '>='
150
+ - - '>='
172
151
  - !ruby/object:Gem::Version
173
152
  version: '0'
174
153
  - !ruby/object:Gem::Dependency
175
154
  name: appraisal
176
155
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
156
  requirements:
179
- - - ! '>='
157
+ - - '>='
180
158
  - !ruby/object:Gem::Version
181
159
  version: '0'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
163
  requirements:
187
- - - ! '>='
164
+ - - '>='
188
165
  - !ruby/object:Gem::Version
189
166
  version: '0'
190
167
  - !ruby/object:Gem::Dependency
191
168
  name: guard
192
169
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
170
  requirements:
195
- - - ! '>='
171
+ - - '>='
196
172
  - !ruby/object:Gem::Version
197
173
  version: '0'
198
174
  type: :development
199
175
  prerelease: false
200
176
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
177
  requirements:
203
- - - ! '>='
178
+ - - '>='
204
179
  - !ruby/object:Gem::Version
205
180
  version: '0'
206
181
  - !ruby/object:Gem::Dependency
207
182
  name: guard-rspec
208
183
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
184
  requirements:
211
- - - ! '>='
185
+ - - '>='
212
186
  - !ruby/object:Gem::Version
213
187
  version: '0'
214
188
  type: :development
215
189
  prerelease: false
216
190
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
191
  requirements:
219
- - - ! '>='
192
+ - - '>='
220
193
  - !ruby/object:Gem::Version
221
194
  version: '0'
222
195
  - !ruby/object:Gem::Dependency
223
196
  name: fuubar
224
197
  requirement: !ruby/object:Gem::Requirement
225
- none: false
226
198
  requirements:
227
- - - ! '>='
199
+ - - '>='
228
200
  - !ruby/object:Gem::Version
229
201
  version: '0'
230
202
  type: :development
231
203
  prerelease: false
232
204
  version_requirements: !ruby/object:Gem::Requirement
233
- none: false
234
205
  requirements:
235
- - - ! '>='
206
+ - - '>='
236
207
  - !ruby/object:Gem::Version
237
208
  version: '0'
238
209
  - !ruby/object:Gem::Dependency
239
210
  name: growl
240
211
  requirement: !ruby/object:Gem::Requirement
241
- none: false
242
212
  requirements:
243
- - - ! '>='
213
+ - - '>='
244
214
  - !ruby/object:Gem::Version
245
215
  version: '0'
246
216
  type: :development
247
217
  prerelease: false
248
218
  version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
219
  requirements:
251
- - - ! '>='
220
+ - - '>='
252
221
  - !ruby/object:Gem::Version
253
222
  version: '0'
254
223
  description: Make managing application errors a more pleasant experience.
@@ -293,6 +262,8 @@ files:
293
262
  - gemfiles/rails3.2.gemfile.lock
294
263
  - gemfiles/rails4.gemfile
295
264
  - gemfiles/rails4.gemfile.lock
265
+ - gemfiles/rails_edge.gemfile
266
+ - gemfiles/rails_edge.gemfile.lock
296
267
  - gemfiles/rake.gemfile
297
268
  - gemfiles/rake.gemfile.lock
298
269
  - gemfiles/sinatra.gemfile
@@ -352,6 +323,7 @@ files:
352
323
  - spec/support/helpers.rb
353
324
  homepage: http://www.honeybadger.io
354
325
  licenses: []
326
+ metadata: {}
355
327
  post_install_message:
356
328
  rdoc_options:
357
329
  - --charset=UTF-8
@@ -359,23 +331,18 @@ rdoc_options:
359
331
  require_paths:
360
332
  - lib
361
333
  required_ruby_version: !ruby/object:Gem::Requirement
362
- none: false
363
334
  requirements:
364
- - - ! '>='
335
+ - - '>='
365
336
  - !ruby/object:Gem::Version
366
337
  version: '0'
367
- segments:
368
- - 0
369
- hash: -1432829727770408082
370
338
  required_rubygems_version: !ruby/object:Gem::Requirement
371
- none: false
372
339
  requirements:
373
- - - ! '>='
340
+ - - '>='
374
341
  - !ruby/object:Gem::Version
375
342
  version: '0'
376
343
  requirements: []
377
344
  rubyforge_project:
378
- rubygems_version: 1.8.23
345
+ rubygems_version: 2.0.3
379
346
  signing_key:
380
347
  specification_version: 2
381
348
  summary: Error reports you can be happy about.