honeybadger 1.10.3 → 1.11.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +10 -0
- data/CHANGELOG.md +17 -10
- data/Gemfile.lock +1 -1
- data/features/rails.feature +6 -4
- data/features/step_definitions/rails_steps.rb +8 -0
- data/features/support/rails.rb +5 -0
- data/gemfiles/rack.gemfile.lock +1 -1
- data/gemfiles/rails2.3.gemfile.lock +1 -1
- data/gemfiles/rails3.0.gemfile.lock +1 -1
- data/gemfiles/rails3.1.gemfile.lock +1 -1
- data/gemfiles/rails3.2.gemfile.lock +1 -1
- data/gemfiles/rails4.gemfile.lock +1 -1
- data/gemfiles/rails4_cap3.gemfile +13 -0
- data/gemfiles/rails4_cap3.gemfile.lock +204 -0
- data/gemfiles/rake.gemfile.lock +1 -1
- data/gemfiles/sinatra.gemfile.lock +1 -1
- data/honeybadger.gemspec +7 -4
- data/lib/honeybadger.rb +14 -1
- data/lib/honeybadger/capistrano.rb +4 -45
- data/lib/honeybadger/capistrano/legacy.rb +45 -0
- data/lib/honeybadger/capistrano/tasks.rake +67 -0
- data/lib/honeybadger/configuration.rb +2 -2
- data/lib/honeybadger/monitor/worker.rb +1 -1
- data/lib/honeybadger/notice.rb +10 -1
- data/lib/honeybadger/rack.rb +1 -0
- data/lib/honeybadger/rails.rb +8 -0
- data/lib/honeybadger/railtie.rb +1 -7
- data/lib/honeybadger/stats.rb +1 -1
- data/lib/honeybadger/templates/{feedback_form.html.erb → feedback_form.erb} +12 -9
- data/lib/honeybadger/user_feedback.rb +47 -17
- data/lib/honeybadger_tasks.rb +3 -3
- data/lib/rails/generators/honeybadger/honeybadger_generator.rb +1 -2
- data/spec/honeybadger/capistrano_spec.rb +26 -23
- data/spec/honeybadger/configuration_spec.rb +25 -21
- data/spec/honeybadger/notice_spec.rb +30 -37
- data/spec/honeybadger/notifier_spec.rb +60 -4
- data/spec/honeybadger/rack_spec.rb +1 -0
- data/spec/honeybadger/user_feedback_spec.rb +29 -4
- data/spec/honeybadger_tasks_spec.rb +13 -4
- metadata +9 -6
- data/spec/honeybadger/stats_spec.rb +0 -57
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeybadger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Wood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -248,6 +248,8 @@ files:
|
|
248
248
|
- gemfiles/rails3.2.gemfile.lock
|
249
249
|
- gemfiles/rails4.gemfile
|
250
250
|
- gemfiles/rails4.gemfile.lock
|
251
|
+
- gemfiles/rails4_cap3.gemfile
|
252
|
+
- gemfiles/rails4_cap3.gemfile.lock
|
251
253
|
- gemfiles/rake.gemfile
|
252
254
|
- gemfiles/rake.gemfile.lock
|
253
255
|
- gemfiles/sinatra.gemfile
|
@@ -263,6 +265,8 @@ files:
|
|
263
265
|
- lib/honeybadger/array.rb
|
264
266
|
- lib/honeybadger/backtrace.rb
|
265
267
|
- lib/honeybadger/capistrano.rb
|
268
|
+
- lib/honeybadger/capistrano/legacy.rb
|
269
|
+
- lib/honeybadger/capistrano/tasks.rake
|
266
270
|
- lib/honeybadger/configuration.rb
|
267
271
|
- lib/honeybadger/monitor.rb
|
268
272
|
- lib/honeybadger/monitor/railtie.rb
|
@@ -281,7 +285,7 @@ files:
|
|
281
285
|
- lib/honeybadger/shared_tasks.rb
|
282
286
|
- lib/honeybadger/stats.rb
|
283
287
|
- lib/honeybadger/tasks.rb
|
284
|
-
- lib/honeybadger/templates/feedback_form.
|
288
|
+
- lib/honeybadger/templates/feedback_form.erb
|
285
289
|
- lib/honeybadger/user_feedback.rb
|
286
290
|
- lib/honeybadger/user_informer.rb
|
287
291
|
- lib/honeybadger_tasks.rb
|
@@ -301,7 +305,6 @@ files:
|
|
301
305
|
- spec/honeybadger/rails/action_controller_spec.rb
|
302
306
|
- spec/honeybadger/rails_spec.rb
|
303
307
|
- spec/honeybadger/sender_spec.rb
|
304
|
-
- spec/honeybadger/stats_spec.rb
|
305
308
|
- spec/honeybadger/user_feedback_spec.rb
|
306
309
|
- spec/honeybadger/user_informer_spec.rb
|
307
310
|
- spec/honeybadger_tasks_spec.rb
|
@@ -327,9 +330,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
327
330
|
version: '0'
|
328
331
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
332
|
requirements:
|
330
|
-
- - '
|
333
|
+
- - '>'
|
331
334
|
- !ruby/object:Gem::Version
|
332
|
-
version:
|
335
|
+
version: 1.3.1
|
333
336
|
requirements: []
|
334
337
|
rubyforge_project:
|
335
338
|
rubygems_version: 2.1.5
|
@@ -1,57 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Honeybadger::Stats do
|
4
|
-
describe '.memory' do
|
5
|
-
subject { Honeybadger::Stats.memory }
|
6
|
-
|
7
|
-
before do
|
8
|
-
stub_const('Honeybadger::Stats::HAS_MEM', true)
|
9
|
-
IO.stub(:readlines).with('/proc/meminfo').and_return(["MemTotal: 35125476 kB\n", "MemFree: 1671436 kB\n", "Buffers: 2242812 kB\n", "Cached: 11791596 kB\n", "SwapCached: 164256 kB\n", "Active: 15891800 kB\n", "Inactive: 13593872 kB\n"])
|
10
|
-
end
|
11
|
-
|
12
|
-
describe '.keys' do
|
13
|
-
subject { Honeybadger::Stats.memory.keys }
|
14
|
-
its(:length) { should eq 5 }
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'converts KB to MB' do
|
18
|
-
expect(Honeybadger::Stats.memory[:total]).to eq 34302.22265625
|
19
|
-
expect(Honeybadger::Stats.memory[:free]).to eq 1632.26171875
|
20
|
-
expect(Honeybadger::Stats.memory[:buffers]).to eq 2190.24609375
|
21
|
-
expect(Honeybadger::Stats.memory[:cached]).to eq 11515.23046875
|
22
|
-
end
|
23
|
-
|
24
|
-
it 'sums non-totals for free_total' do
|
25
|
-
expect(Honeybadger::Stats.memory[:free_total]).to eq 15337.73828125
|
26
|
-
end
|
27
|
-
|
28
|
-
context 'when mathn is required' do
|
29
|
-
before(:all) { require 'mathn' }
|
30
|
-
|
31
|
-
it 'converts Rational to Float' do
|
32
|
-
expect(Honeybadger::Stats.memory[:total]).to be_a Float
|
33
|
-
expect(Honeybadger::Stats.memory[:free]).to be_a Float
|
34
|
-
expect(Honeybadger::Stats.memory[:buffers]).to be_a Float
|
35
|
-
expect(Honeybadger::Stats.memory[:cached]).to be_a Float
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
describe '.load' do
|
41
|
-
subject { Honeybadger::Stats.load }
|
42
|
-
|
43
|
-
before do
|
44
|
-
stub_const('Honeybadger::Stats::HAS_LOAD', true)
|
45
|
-
IO.stub(:read).with('/proc/loadavg').and_return('22.58 19.66 15.96 20/2019 2')
|
46
|
-
end
|
47
|
-
|
48
|
-
describe '.keys' do
|
49
|
-
subject { Honeybadger::Stats.load.keys }
|
50
|
-
its(:length) { should eq 3 }
|
51
|
-
end
|
52
|
-
|
53
|
-
specify { expect(subject[:one]).to eq 22.58 }
|
54
|
-
specify { expect(subject[:five]).to eq 19.66 }
|
55
|
-
specify { expect(subject[:fifteen]).to eq 15.96 }
|
56
|
-
end
|
57
|
-
end
|