crashlog 1.0.7 → 1.1.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +19 -8
- data/Appraisals +25 -0
- data/Gemfile +4 -4
- data/Gemfile.lock +54 -13
- data/README.md +1 -1
- data/Rakefile +4 -0
- data/gemfiles/rails_2_3.gemfile +17 -0
- data/gemfiles/rails_2_3.gemfile.lock +111 -0
- data/gemfiles/rails_3_0.gemfile +17 -0
- data/gemfiles/rails_3_0.gemfile.lock +159 -0
- data/gemfiles/rails_3_1.gemfile +17 -0
- data/gemfiles/rails_3_1.gemfile.lock +169 -0
- data/gemfiles/rails_3_2.gemfile +17 -0
- data/gemfiles/rails_3_2.gemfile.lock +168 -0
- data/lib/crash_log.rb +2 -0
- data/lib/crash_log/payload.rb +2 -1
- data/lib/crash_log/rails/controller_methods.rb +98 -18
- data/lib/crash_log/rails/middleware/debug_exception_catcher.rb +6 -4
- data/lib/crash_log/railtie.rb +5 -4
- data/lib/crash_log/reporter.rb +4 -4
- data/lib/crash_log/sidekiq.rb +18 -0
- data/lib/crash_log/version.rb +1 -1
- data/spec/crash_log/initializer_spec.rb +39 -39
- data/spec/crash_log/payload_spec.rb +2 -0
- data/spec/dummy_rails_2/README +243 -0
- data/spec/dummy_rails_2/Rakefile +10 -0
- data/spec/dummy_rails_2/app/controllers/application_controller.rb +14 -0
- data/spec/dummy_rails_2/app/controllers/welcome_controller.rb +13 -0
- data/spec/dummy_rails_2/app/helpers/application_helper.rb +3 -0
- data/spec/dummy_rails_2/app/helpers/welcome_helper.rb +3 -0
- data/spec/dummy_rails_2/app/models/user.rb +2 -0
- data/spec/dummy_rails_2/config/boot.rb +114 -0
- data/spec/dummy_rails_2/config/environment.rb +41 -0
- data/spec/dummy_rails_2/config/environments/test.rb +28 -0
- data/spec/dummy_rails_2/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy_rails_2/config/initializers/cookie_verification_secret.rb +7 -0
- data/spec/{dummy → dummy_rails_2}/config/initializers/crashlog.rb +0 -0
- data/spec/dummy_rails_2/config/initializers/inflections.rb +10 -0
- data/spec/{dummy → dummy_rails_2}/config/initializers/mime_types.rb +0 -0
- data/spec/dummy_rails_2/config/initializers/new_rails_defaults.rb +13 -0
- data/spec/dummy_rails_2/config/initializers/session_store.rb +15 -0
- data/spec/dummy_rails_2/config/locales/en.yml +5 -0
- data/spec/dummy_rails_2/config/routes.rb +38 -0
- data/spec/dummy_rails_2/db/seeds.rb +7 -0
- data/spec/{dummy/app/mailers/.gitkeep → dummy_rails_2/log/development.log} +0 -0
- data/spec/{dummy/app/models/.gitkeep → dummy_rails_2/log/production.log} +0 -0
- data/spec/{dummy/lib/assets/.gitkeep → dummy_rails_2/log/server.log} +0 -0
- data/spec/dummy_rails_3/.gitignore +4 -0
- data/spec/dummy_rails_3/Gemfile +31 -0
- data/spec/dummy_rails_3/README +256 -0
- data/spec/dummy_rails_3/Rakefile +7 -0
- data/spec/dummy_rails_3/app/controllers/application_controller.rb +7 -0
- data/spec/dummy_rails_3/app/controllers/welcome_controller.rb +14 -0
- data/spec/{dummy → dummy_rails_3}/app/helpers/application_helper.rb +0 -0
- data/spec/dummy_rails_3/app/models/user.rb +3 -0
- data/spec/dummy_rails_3/app/views/layouts/application.html.erb +14 -0
- data/spec/{dummy → dummy_rails_3}/config.ru +0 -0
- data/spec/dummy_rails_3/config/application.rb +52 -0
- data/spec/dummy_rails_3/config/boot.rb +6 -0
- data/spec/{dummy → dummy_rails_3}/config/environment.rb +0 -0
- data/spec/dummy_rails_3/config/environments/development.rb +26 -0
- data/spec/dummy_rails_3/config/environments/production.rb +49 -0
- data/spec/dummy_rails_3/config/environments/test.rb +35 -0
- data/spec/{dummy → dummy_rails_3}/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/dummy_rails_3/config/initializers/crashlog.rb +8 -0
- data/spec/dummy_rails_3/config/initializers/inflections.rb +10 -0
- data/spec/dummy_rails_3/config/initializers/mime_types.rb +5 -0
- data/spec/dummy_rails_3/config/initializers/secret_token.rb +7 -0
- data/spec/{dummy → dummy_rails_3}/config/initializers/session_store.rb +0 -0
- data/spec/dummy_rails_3/config/locales/en.yml +5 -0
- data/spec/dummy_rails_3/config/routes.rb +5 -0
- data/spec/dummy_rails_3/db/seeds.rb +7 -0
- data/spec/{dummy → dummy_rails_3_plus}/README.rdoc +0 -0
- data/spec/{dummy → dummy_rails_3_plus}/Rakefile +0 -0
- data/spec/{dummy → dummy_rails_3_plus}/app/assets/javascripts/application.js +0 -0
- data/spec/{dummy → dummy_rails_3_plus}/app/assets/stylesheets/application.css +0 -0
- data/spec/dummy_rails_3_plus/app/controllers/application_controller.rb +7 -0
- data/spec/{dummy → dummy_rails_3_plus}/app/controllers/break_controller.rb +0 -0
- data/spec/dummy_rails_3_plus/app/controllers/welcome_controller.rb +13 -0
- data/spec/dummy_rails_3_plus/app/helpers/application_helper.rb +2 -0
- data/spec/{dummy/log → dummy_rails_3_plus/app/mailers}/.gitkeep +0 -0
- data/spec/{dummy/public/favicon.ico → dummy_rails_3_plus/app/models/.gitkeep} +0 -0
- data/spec/{dummy → dummy_rails_3_plus}/app/models/current_user.rb +0 -0
- data/spec/{dummy → dummy_rails_3_plus}/app/views/layouts/application.html.erb +0 -0
- data/spec/dummy_rails_3_plus/config.ru +4 -0
- data/spec/{dummy → dummy_rails_3_plus}/config/application.rb +3 -3
- data/spec/{dummy → dummy_rails_3_plus}/config/boot.rb +0 -0
- data/spec/dummy_rails_3_plus/config/environment.rb +5 -0
- data/spec/{dummy → dummy_rails_3_plus}/config/environments/development.rb +0 -0
- data/spec/{dummy → dummy_rails_3_plus}/config/environments/production.rb +0 -0
- data/spec/{dummy → dummy_rails_3_plus}/config/environments/test.rb +2 -2
- data/spec/dummy_rails_3_plus/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy_rails_3_plus/config/initializers/crashlog.rb +7 -0
- data/spec/{dummy → dummy_rails_3_plus}/config/initializers/inflections.rb +0 -0
- data/spec/dummy_rails_3_plus/config/initializers/mime_types.rb +5 -0
- data/spec/{dummy → dummy_rails_3_plus}/config/initializers/secret_token.rb +0 -0
- data/spec/dummy_rails_3_plus/config/initializers/session_store.rb +8 -0
- data/spec/{dummy → dummy_rails_3_plus}/config/initializers/wrap_parameters.rb +0 -0
- data/spec/dummy_rails_3_plus/config/routes.rb +5 -0
- data/spec/dummy_rails_3_plus/lib/assets/.gitkeep +0 -0
- data/spec/dummy_rails_3_plus/log/.gitkeep +0 -0
- data/spec/dummy_rails_3_plus/log/development.log +13209 -0
- data/spec/{dummy → dummy_rails_3_plus}/public/404.html +0 -0
- data/spec/{dummy → dummy_rails_3_plus}/public/422.html +0 -0
- data/spec/{dummy → dummy_rails_3_plus}/public/500.html +0 -0
- data/spec/dummy_rails_3_plus/public/favicon.ico +0 -0
- data/spec/{dummy → dummy_rails_3_plus}/script/rails +0 -0
- data/spec/rails/action_controller_spec.rb +85 -0
- data/spec/rails/rails_2_controller_spec.rb +87 -0
- data/spec/rails_spec_helper.rb +42 -0
- data/spec/requests/rails_controller_rescue_spec.rb +6 -6
- data/spec/spec_helper.rb +0 -4
- metadata +204 -87
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/config/database.yml +0 -44
- data/spec/dummy/config/routes.rb +0 -7
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,85 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'rack/test'
|
3
|
+
require "uuid"
|
4
|
+
require "crash_log/rails/action_controller_rescue"
|
5
|
+
|
6
|
+
describe 'Rescue from within a Rails 2.x controller' do
|
7
|
+
# class CollectingReporter
|
8
|
+
# attr_reader :collected
|
9
|
+
|
10
|
+
# def initialize
|
11
|
+
# @collected = []
|
12
|
+
# end
|
13
|
+
|
14
|
+
# def notify(payload)
|
15
|
+
# @collected << payload
|
16
|
+
# {:location_id => UUID.generate }
|
17
|
+
# end
|
18
|
+
# end
|
19
|
+
|
20
|
+
# def assert_caught_and_sent
|
21
|
+
# expect { CrashLog.sender.collected.empty? }.to be_false
|
22
|
+
# end
|
23
|
+
|
24
|
+
# def assert_caught_and_not_sent
|
25
|
+
# expect { CrashLog.sender.collected.empty? }.to be_true
|
26
|
+
# end
|
27
|
+
|
28
|
+
# before do
|
29
|
+
# CrashLog::Payload.any_instance.stub(:reporter).and_return(CollectingReporter.new)
|
30
|
+
# end
|
31
|
+
|
32
|
+
# def build_controller_class(&definition)
|
33
|
+
# ActionController::Base.any_instance.stub(:rescue_action_in_public)
|
34
|
+
# ActionController::Base.any_instance.stub(:rescue_action_locally)
|
35
|
+
|
36
|
+
# Class.new(ActionController::Base).tap do |klass|
|
37
|
+
# klass.__send__(:include, CrashLog::Rails::ActionControllerRescue)
|
38
|
+
# klass.class_eval(&definition) if definition
|
39
|
+
# define_constant('CrashLogTestController', klass)
|
40
|
+
# end
|
41
|
+
# end
|
42
|
+
|
43
|
+
# def process_action(opts = {}, &action)
|
44
|
+
# opts[:request] ||= ActionController::TestRequest.new
|
45
|
+
# opts[:response] ||= ActionController::TestResponse.new
|
46
|
+
# klass = build_controller_class do
|
47
|
+
# cattr_accessor :local
|
48
|
+
# define_method(:index, &action)
|
49
|
+
# def local_request?
|
50
|
+
# local
|
51
|
+
# end
|
52
|
+
# end
|
53
|
+
# if opts[:filters]
|
54
|
+
# klass.filter_parameter_logging *opts[:filters]
|
55
|
+
# end
|
56
|
+
# if opts[:user_agent]
|
57
|
+
# if opts[:request].respond_to?(:user_agent=)
|
58
|
+
# opts[:request].user_agent = opts[:user_agent]
|
59
|
+
# else
|
60
|
+
# opts[:request].env["HTTP_USER_AGENT"] = opts[:user_agent]
|
61
|
+
# end
|
62
|
+
# end
|
63
|
+
# if opts[:port]
|
64
|
+
# opts[:request].port = opts[:port]
|
65
|
+
# end
|
66
|
+
# klass.local = opts[:local]
|
67
|
+
# controller = klass.new
|
68
|
+
# controller.stub(:rescue_action_in_public_without_crash_log)
|
69
|
+
# opts[:request].session = ActionController::TestSession.new(opts[:session] || {})
|
70
|
+
# # Prevents request.fullpath from crashing Rails in tests
|
71
|
+
# # opts[:request].env['REQUEST_URI'] = opts[:request].request_uri
|
72
|
+
# controller.process(:index) #, opts[:request], opts[:response])
|
73
|
+
# controller
|
74
|
+
# end
|
75
|
+
|
76
|
+
# def process_action_with_automatic_notification(args = {})
|
77
|
+
# process_action(args) { raise "Hello" }
|
78
|
+
# end
|
79
|
+
|
80
|
+
# it "delivers notices from exceptions raised in public requests" do
|
81
|
+
# process_action_with_automatic_notification
|
82
|
+
# assert_caught_and_sent
|
83
|
+
# end
|
84
|
+
|
85
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
require "rails_spec_helper"
|
2
|
+
|
3
|
+
describe 'Rails controller integration' do
|
4
|
+
class CollectingReporter
|
5
|
+
attr_reader :collected
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
@collected = []
|
9
|
+
end
|
10
|
+
|
11
|
+
def notify(payload)
|
12
|
+
@collected << payload
|
13
|
+
{:location_id => "LOLID" }
|
14
|
+
end
|
15
|
+
|
16
|
+
def result
|
17
|
+
{:location_id => "LOLID" }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def assert_caught_and_sent
|
22
|
+
CrashLog.reporter.collected.should_not be_empty
|
23
|
+
end
|
24
|
+
|
25
|
+
def assert_caught_and_not_sent
|
26
|
+
expect(CrashLog.reporter.collected).to_not be_empty
|
27
|
+
end
|
28
|
+
|
29
|
+
def last_notice
|
30
|
+
CrashLog.reporter.collected.last
|
31
|
+
end
|
32
|
+
|
33
|
+
before do
|
34
|
+
CrashLog.reporter = CollectingReporter.new
|
35
|
+
end
|
36
|
+
|
37
|
+
describe 'initialization' do
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'controller actions' do
|
42
|
+
include Rack::Test::Methods
|
43
|
+
|
44
|
+
def app
|
45
|
+
if defined?(ActionController::Dispatcher)
|
46
|
+
# Rails 2
|
47
|
+
ActionController::Dispatcher.new
|
48
|
+
elsif defined?(Rails) && Rails.respond_to?(:application)
|
49
|
+
# Rails 3
|
50
|
+
::Rails.application
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
before do
|
55
|
+
get '/broken'
|
56
|
+
assert_caught_and_sent
|
57
|
+
end
|
58
|
+
|
59
|
+
it 'captures request headers' do
|
60
|
+
# "Host"=>"example.org", "Cookie"=>""
|
61
|
+
last_notice[:data][:request].should have_key(:headers)
|
62
|
+
last_notice[:data][:request][:headers].should have_keys("Host", "Cookie")
|
63
|
+
end
|
64
|
+
|
65
|
+
it 'captures response headers' do
|
66
|
+
# Rails 2: "Cache-Control"=>"no-cache", "Content-Type"=>"text/html; charset=utf-8", "Content-Length"=>"17534"
|
67
|
+
last_notice[:data][:response].should have_key(:headers)
|
68
|
+
# last_notice[:data][:response][:headers].should == {}
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'context' do
|
72
|
+
let(:context) { last_notice[:context] }
|
73
|
+
|
74
|
+
it 'captures controller' do
|
75
|
+
expect(context[:controller]).to eq 'welcome'
|
76
|
+
end
|
77
|
+
|
78
|
+
it 'captures action' do
|
79
|
+
expect(context[:action]).to eq 'broken'
|
80
|
+
end
|
81
|
+
|
82
|
+
it 'captures current user' do
|
83
|
+
expect(context[:current_user]).to eq(:id=>1, :full_name=>"Johnny Quid", :email=>"user@example.com")
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
begin
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start do
|
4
|
+
add_filter "spec/"
|
5
|
+
end
|
6
|
+
rescue LoadError
|
7
|
+
puts "Skipping SimpleCov"
|
8
|
+
end
|
9
|
+
|
10
|
+
# require 'rspec/rails'
|
11
|
+
require 'delorean'
|
12
|
+
require 'json_spec'
|
13
|
+
require 'uuid'
|
14
|
+
require "crash_log"
|
15
|
+
|
16
|
+
Dir[File.expand_path("../support/*.rb", __FILE__)].each { |file| require file }
|
17
|
+
|
18
|
+
# Super Hax
|
19
|
+
gemfile = ENV['BUNDLE_GEMFILE'] + '.lock'
|
20
|
+
rails_version = Bundler::LockfileParser.new(File.read(gemfile)).specs.find { |s| s.name == 'rails' }.version.to_s
|
21
|
+
|
22
|
+
case rails_version
|
23
|
+
when /^3\.(2|1)/
|
24
|
+
require File.expand_path("../dummy_rails_3/config/environment.rb", __FILE__)
|
25
|
+
when /^3\.0\./
|
26
|
+
# Rails 3.0.x
|
27
|
+
require File.expand_path("../dummy_rails_3/config/environment.rb", __FILE__)
|
28
|
+
when /^2/
|
29
|
+
require File.expand_path("../dummy_rails_2/config/environment.rb", __FILE__)
|
30
|
+
end
|
31
|
+
|
32
|
+
RSpec.configure do |config|
|
33
|
+
config.mock_with :rspec
|
34
|
+
config.include Delorean
|
35
|
+
|
36
|
+
config.before(:each) do
|
37
|
+
end
|
38
|
+
|
39
|
+
config.after(:each) do
|
40
|
+
CrashLog.reset_configuration!
|
41
|
+
end
|
42
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
if defined?(Rails)
|
1
|
+
if defined?(Rails) && Rails.respond_to?(:application)
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
require 'rack/test'
|
@@ -8,6 +8,10 @@ if defined?(Rails)
|
|
8
8
|
# include RSpec::Rails::RequestExampleGroup
|
9
9
|
include Rack::Test::Methods
|
10
10
|
|
11
|
+
def app
|
12
|
+
Rails.application
|
13
|
+
end
|
14
|
+
|
11
15
|
class CollectingReporter
|
12
16
|
attr_reader :collected
|
13
17
|
|
@@ -42,15 +46,11 @@ if defined?(Rails)
|
|
42
46
|
CrashLog.configuration.root = File.expand_path("../..", __FILE__)
|
43
47
|
end
|
44
48
|
|
45
|
-
it 'is testing tails 3.x' do
|
46
|
-
Rails.version.should =~ /^3\.2\./
|
47
|
-
end
|
48
|
-
|
49
49
|
describe 'dummy app' do
|
50
50
|
it 'should response nicely to index' do
|
51
51
|
get '/'
|
52
52
|
last_response.should be_ok
|
53
|
-
last_response.body.should == '
|
53
|
+
last_response.body.should == 'Welcome'
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
data/spec/spec_helper.rb
CHANGED
@@ -7,16 +7,12 @@ rescue LoadError
|
|
7
7
|
puts "Skipping SimpleCov"
|
8
8
|
end
|
9
9
|
|
10
|
-
# require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
11
|
-
|
12
10
|
# require 'rspec/rails'
|
13
11
|
require 'delorean'
|
14
12
|
require 'json_spec'
|
15
13
|
require 'uuid'
|
16
14
|
require "crash_log"
|
17
15
|
|
18
|
-
# require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
19
|
-
|
20
16
|
Dir[File.expand_path("../support/*.rb", __FILE__)].each { |file| require file }
|
21
17
|
|
22
18
|
RSpec.configure do |config|
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crashlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.0.pre1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ivan Vanderbyl
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
16
|
-
requirement: &
|
16
|
+
requirement: &70174550295980 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.8.4
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70174550295980
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: multi_json
|
27
|
-
requirement: &
|
27
|
+
requirement: &70174550295480 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.1.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70174550295480
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: crashlog-auth-hmac
|
38
|
-
requirement: &
|
38
|
+
requirement: &70174550295020 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.1.7
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70174550295020
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rabl
|
49
|
-
requirement: &
|
49
|
+
requirement: &70174550294560 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.6.13
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70174550294560
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: uuid
|
60
|
-
requirement: &
|
60
|
+
requirement: &70174550294180 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70174550294180
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: hashr
|
71
|
-
requirement: &
|
71
|
+
requirement: &70174550293720 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70174550293720
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: json
|
82
|
-
requirement: &
|
82
|
+
requirement: &70174550293300 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70174550293300
|
91
91
|
description: CrashLog Exception reporter
|
92
92
|
email:
|
93
93
|
- support@crashlog.io
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- .gitignore
|
99
99
|
- .rspec
|
100
100
|
- .travis.yml
|
101
|
+
- Appraisals
|
101
102
|
- Gemfile
|
102
103
|
- Gemfile.lock
|
103
104
|
- INSTALL
|
@@ -105,6 +106,14 @@ files:
|
|
105
106
|
- README.md
|
106
107
|
- Rakefile
|
107
108
|
- crashlog.gemspec
|
109
|
+
- gemfiles/rails_2_3.gemfile
|
110
|
+
- gemfiles/rails_2_3.gemfile.lock
|
111
|
+
- gemfiles/rails_3_0.gemfile
|
112
|
+
- gemfiles/rails_3_0.gemfile.lock
|
113
|
+
- gemfiles/rails_3_1.gemfile
|
114
|
+
- gemfiles/rails_3_1.gemfile.lock
|
115
|
+
- gemfiles/rails_3_2.gemfile
|
116
|
+
- gemfiles/rails_3_2.gemfile.lock
|
108
117
|
- generators/crashlog/USAGE
|
109
118
|
- generators/crashlog/templates/initializer.rb
|
110
119
|
- install.rb
|
@@ -125,6 +134,7 @@ files:
|
|
125
134
|
- lib/crash_log/rails/middleware/debug_exception_catcher.rb
|
126
135
|
- lib/crash_log/railtie.rb
|
127
136
|
- lib/crash_log/reporter.rb
|
137
|
+
- lib/crash_log/sidekiq.rb
|
128
138
|
- lib/crash_log/system_information.rb
|
129
139
|
- lib/crash_log/tasks/crash_log.rake
|
130
140
|
- lib/crash_log/templates/payload.rabl
|
@@ -143,40 +153,92 @@ files:
|
|
143
153
|
- spec/crash_log/rack_spec.rb
|
144
154
|
- spec/crash_log/reporter_spec.rb
|
145
155
|
- spec/crash_log_spec.rb
|
146
|
-
- spec/
|
147
|
-
- spec/
|
148
|
-
- spec/
|
149
|
-
- spec/
|
150
|
-
- spec/
|
151
|
-
- spec/
|
152
|
-
- spec/
|
153
|
-
- spec/
|
154
|
-
- spec/
|
155
|
-
- spec/
|
156
|
-
- spec/
|
157
|
-
- spec/
|
158
|
-
- spec/
|
159
|
-
- spec/
|
160
|
-
- spec/
|
161
|
-
- spec/
|
162
|
-
- spec/
|
163
|
-
- spec/
|
164
|
-
- spec/
|
165
|
-
- spec/
|
166
|
-
- spec/
|
167
|
-
- spec/
|
168
|
-
- spec/
|
169
|
-
- spec/
|
170
|
-
- spec/
|
171
|
-
- spec/
|
172
|
-
- spec/
|
173
|
-
- spec/
|
174
|
-
- spec/
|
175
|
-
- spec/
|
176
|
-
- spec/
|
177
|
-
- spec/
|
178
|
-
- spec/
|
179
|
-
- spec/
|
156
|
+
- spec/dummy_rails_2/README
|
157
|
+
- spec/dummy_rails_2/Rakefile
|
158
|
+
- spec/dummy_rails_2/app/controllers/application_controller.rb
|
159
|
+
- spec/dummy_rails_2/app/controllers/welcome_controller.rb
|
160
|
+
- spec/dummy_rails_2/app/helpers/application_helper.rb
|
161
|
+
- spec/dummy_rails_2/app/helpers/welcome_helper.rb
|
162
|
+
- spec/dummy_rails_2/app/models/user.rb
|
163
|
+
- spec/dummy_rails_2/config/boot.rb
|
164
|
+
- spec/dummy_rails_2/config/environment.rb
|
165
|
+
- spec/dummy_rails_2/config/environments/test.rb
|
166
|
+
- spec/dummy_rails_2/config/initializers/backtrace_silencers.rb
|
167
|
+
- spec/dummy_rails_2/config/initializers/cookie_verification_secret.rb
|
168
|
+
- spec/dummy_rails_2/config/initializers/crashlog.rb
|
169
|
+
- spec/dummy_rails_2/config/initializers/inflections.rb
|
170
|
+
- spec/dummy_rails_2/config/initializers/mime_types.rb
|
171
|
+
- spec/dummy_rails_2/config/initializers/new_rails_defaults.rb
|
172
|
+
- spec/dummy_rails_2/config/initializers/session_store.rb
|
173
|
+
- spec/dummy_rails_2/config/locales/en.yml
|
174
|
+
- spec/dummy_rails_2/config/routes.rb
|
175
|
+
- spec/dummy_rails_2/db/seeds.rb
|
176
|
+
- spec/dummy_rails_2/log/development.log
|
177
|
+
- spec/dummy_rails_2/log/production.log
|
178
|
+
- spec/dummy_rails_2/log/server.log
|
179
|
+
- spec/dummy_rails_3/.gitignore
|
180
|
+
- spec/dummy_rails_3/Gemfile
|
181
|
+
- spec/dummy_rails_3/README
|
182
|
+
- spec/dummy_rails_3/Rakefile
|
183
|
+
- spec/dummy_rails_3/app/controllers/application_controller.rb
|
184
|
+
- spec/dummy_rails_3/app/controllers/welcome_controller.rb
|
185
|
+
- spec/dummy_rails_3/app/helpers/application_helper.rb
|
186
|
+
- spec/dummy_rails_3/app/models/user.rb
|
187
|
+
- spec/dummy_rails_3/app/views/layouts/application.html.erb
|
188
|
+
- spec/dummy_rails_3/config.ru
|
189
|
+
- spec/dummy_rails_3/config/application.rb
|
190
|
+
- spec/dummy_rails_3/config/boot.rb
|
191
|
+
- spec/dummy_rails_3/config/environment.rb
|
192
|
+
- spec/dummy_rails_3/config/environments/development.rb
|
193
|
+
- spec/dummy_rails_3/config/environments/production.rb
|
194
|
+
- spec/dummy_rails_3/config/environments/test.rb
|
195
|
+
- spec/dummy_rails_3/config/initializers/backtrace_silencers.rb
|
196
|
+
- spec/dummy_rails_3/config/initializers/crashlog.rb
|
197
|
+
- spec/dummy_rails_3/config/initializers/inflections.rb
|
198
|
+
- spec/dummy_rails_3/config/initializers/mime_types.rb
|
199
|
+
- spec/dummy_rails_3/config/initializers/secret_token.rb
|
200
|
+
- spec/dummy_rails_3/config/initializers/session_store.rb
|
201
|
+
- spec/dummy_rails_3/config/locales/en.yml
|
202
|
+
- spec/dummy_rails_3/config/routes.rb
|
203
|
+
- spec/dummy_rails_3/db/seeds.rb
|
204
|
+
- spec/dummy_rails_3_plus/README.rdoc
|
205
|
+
- spec/dummy_rails_3_plus/Rakefile
|
206
|
+
- spec/dummy_rails_3_plus/app/assets/javascripts/application.js
|
207
|
+
- spec/dummy_rails_3_plus/app/assets/stylesheets/application.css
|
208
|
+
- spec/dummy_rails_3_plus/app/controllers/application_controller.rb
|
209
|
+
- spec/dummy_rails_3_plus/app/controllers/break_controller.rb
|
210
|
+
- spec/dummy_rails_3_plus/app/controllers/welcome_controller.rb
|
211
|
+
- spec/dummy_rails_3_plus/app/helpers/application_helper.rb
|
212
|
+
- spec/dummy_rails_3_plus/app/mailers/.gitkeep
|
213
|
+
- spec/dummy_rails_3_plus/app/models/.gitkeep
|
214
|
+
- spec/dummy_rails_3_plus/app/models/current_user.rb
|
215
|
+
- spec/dummy_rails_3_plus/app/views/layouts/application.html.erb
|
216
|
+
- spec/dummy_rails_3_plus/config.ru
|
217
|
+
- spec/dummy_rails_3_plus/config/application.rb
|
218
|
+
- spec/dummy_rails_3_plus/config/boot.rb
|
219
|
+
- spec/dummy_rails_3_plus/config/environment.rb
|
220
|
+
- spec/dummy_rails_3_plus/config/environments/development.rb
|
221
|
+
- spec/dummy_rails_3_plus/config/environments/production.rb
|
222
|
+
- spec/dummy_rails_3_plus/config/environments/test.rb
|
223
|
+
- spec/dummy_rails_3_plus/config/initializers/backtrace_silencers.rb
|
224
|
+
- spec/dummy_rails_3_plus/config/initializers/crashlog.rb
|
225
|
+
- spec/dummy_rails_3_plus/config/initializers/inflections.rb
|
226
|
+
- spec/dummy_rails_3_plus/config/initializers/mime_types.rb
|
227
|
+
- spec/dummy_rails_3_plus/config/initializers/secret_token.rb
|
228
|
+
- spec/dummy_rails_3_plus/config/initializers/session_store.rb
|
229
|
+
- spec/dummy_rails_3_plus/config/initializers/wrap_parameters.rb
|
230
|
+
- spec/dummy_rails_3_plus/config/routes.rb
|
231
|
+
- spec/dummy_rails_3_plus/lib/assets/.gitkeep
|
232
|
+
- spec/dummy_rails_3_plus/log/.gitkeep
|
233
|
+
- spec/dummy_rails_3_plus/log/development.log
|
234
|
+
- spec/dummy_rails_3_plus/public/404.html
|
235
|
+
- spec/dummy_rails_3_plus/public/422.html
|
236
|
+
- spec/dummy_rails_3_plus/public/500.html
|
237
|
+
- spec/dummy_rails_3_plus/public/favicon.ico
|
238
|
+
- spec/dummy_rails_3_plus/script/rails
|
239
|
+
- spec/rails/action_controller_spec.rb
|
240
|
+
- spec/rails/rails_2_controller_spec.rb
|
241
|
+
- spec/rails_spec_helper.rb
|
180
242
|
- spec/requests/rack_spec.rb
|
181
243
|
- spec/requests/rails_controller_rescue_spec.rb
|
182
244
|
- spec/spec_helper.rb
|
@@ -196,12 +258,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
196
258
|
- - ! '>='
|
197
259
|
- !ruby/object:Gem::Version
|
198
260
|
version: '0'
|
261
|
+
segments:
|
262
|
+
- 0
|
263
|
+
hash: 1750200909580696804
|
199
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
265
|
none: false
|
201
266
|
requirements:
|
202
|
-
- - ! '
|
267
|
+
- - ! '>'
|
203
268
|
- !ruby/object:Gem::Version
|
204
|
-
version:
|
269
|
+
version: 1.3.1
|
205
270
|
requirements: []
|
206
271
|
rubyforge_project:
|
207
272
|
rubygems_version: 1.8.15
|
@@ -216,40 +281,92 @@ test_files:
|
|
216
281
|
- spec/crash_log/rack_spec.rb
|
217
282
|
- spec/crash_log/reporter_spec.rb
|
218
283
|
- spec/crash_log_spec.rb
|
219
|
-
- spec/
|
220
|
-
- spec/
|
221
|
-
- spec/
|
222
|
-
- spec/
|
223
|
-
- spec/
|
224
|
-
- spec/
|
225
|
-
- spec/
|
226
|
-
- spec/
|
227
|
-
- spec/
|
228
|
-
- spec/
|
229
|
-
- spec/
|
230
|
-
- spec/
|
231
|
-
- spec/
|
232
|
-
- spec/
|
233
|
-
- spec/
|
234
|
-
- spec/
|
235
|
-
- spec/
|
236
|
-
- spec/
|
237
|
-
- spec/
|
238
|
-
- spec/
|
239
|
-
- spec/
|
240
|
-
- spec/
|
241
|
-
- spec/
|
242
|
-
- spec/
|
243
|
-
- spec/
|
244
|
-
- spec/
|
245
|
-
- spec/
|
246
|
-
- spec/
|
247
|
-
- spec/
|
248
|
-
- spec/
|
249
|
-
- spec/
|
250
|
-
- spec/
|
251
|
-
- spec/
|
252
|
-
- spec/
|
284
|
+
- spec/dummy_rails_2/README
|
285
|
+
- spec/dummy_rails_2/Rakefile
|
286
|
+
- spec/dummy_rails_2/app/controllers/application_controller.rb
|
287
|
+
- spec/dummy_rails_2/app/controllers/welcome_controller.rb
|
288
|
+
- spec/dummy_rails_2/app/helpers/application_helper.rb
|
289
|
+
- spec/dummy_rails_2/app/helpers/welcome_helper.rb
|
290
|
+
- spec/dummy_rails_2/app/models/user.rb
|
291
|
+
- spec/dummy_rails_2/config/boot.rb
|
292
|
+
- spec/dummy_rails_2/config/environment.rb
|
293
|
+
- spec/dummy_rails_2/config/environments/test.rb
|
294
|
+
- spec/dummy_rails_2/config/initializers/backtrace_silencers.rb
|
295
|
+
- spec/dummy_rails_2/config/initializers/cookie_verification_secret.rb
|
296
|
+
- spec/dummy_rails_2/config/initializers/crashlog.rb
|
297
|
+
- spec/dummy_rails_2/config/initializers/inflections.rb
|
298
|
+
- spec/dummy_rails_2/config/initializers/mime_types.rb
|
299
|
+
- spec/dummy_rails_2/config/initializers/new_rails_defaults.rb
|
300
|
+
- spec/dummy_rails_2/config/initializers/session_store.rb
|
301
|
+
- spec/dummy_rails_2/config/locales/en.yml
|
302
|
+
- spec/dummy_rails_2/config/routes.rb
|
303
|
+
- spec/dummy_rails_2/db/seeds.rb
|
304
|
+
- spec/dummy_rails_2/log/development.log
|
305
|
+
- spec/dummy_rails_2/log/production.log
|
306
|
+
- spec/dummy_rails_2/log/server.log
|
307
|
+
- spec/dummy_rails_3/.gitignore
|
308
|
+
- spec/dummy_rails_3/Gemfile
|
309
|
+
- spec/dummy_rails_3/README
|
310
|
+
- spec/dummy_rails_3/Rakefile
|
311
|
+
- spec/dummy_rails_3/app/controllers/application_controller.rb
|
312
|
+
- spec/dummy_rails_3/app/controllers/welcome_controller.rb
|
313
|
+
- spec/dummy_rails_3/app/helpers/application_helper.rb
|
314
|
+
- spec/dummy_rails_3/app/models/user.rb
|
315
|
+
- spec/dummy_rails_3/app/views/layouts/application.html.erb
|
316
|
+
- spec/dummy_rails_3/config.ru
|
317
|
+
- spec/dummy_rails_3/config/application.rb
|
318
|
+
- spec/dummy_rails_3/config/boot.rb
|
319
|
+
- spec/dummy_rails_3/config/environment.rb
|
320
|
+
- spec/dummy_rails_3/config/environments/development.rb
|
321
|
+
- spec/dummy_rails_3/config/environments/production.rb
|
322
|
+
- spec/dummy_rails_3/config/environments/test.rb
|
323
|
+
- spec/dummy_rails_3/config/initializers/backtrace_silencers.rb
|
324
|
+
- spec/dummy_rails_3/config/initializers/crashlog.rb
|
325
|
+
- spec/dummy_rails_3/config/initializers/inflections.rb
|
326
|
+
- spec/dummy_rails_3/config/initializers/mime_types.rb
|
327
|
+
- spec/dummy_rails_3/config/initializers/secret_token.rb
|
328
|
+
- spec/dummy_rails_3/config/initializers/session_store.rb
|
329
|
+
- spec/dummy_rails_3/config/locales/en.yml
|
330
|
+
- spec/dummy_rails_3/config/routes.rb
|
331
|
+
- spec/dummy_rails_3/db/seeds.rb
|
332
|
+
- spec/dummy_rails_3_plus/README.rdoc
|
333
|
+
- spec/dummy_rails_3_plus/Rakefile
|
334
|
+
- spec/dummy_rails_3_plus/app/assets/javascripts/application.js
|
335
|
+
- spec/dummy_rails_3_plus/app/assets/stylesheets/application.css
|
336
|
+
- spec/dummy_rails_3_plus/app/controllers/application_controller.rb
|
337
|
+
- spec/dummy_rails_3_plus/app/controllers/break_controller.rb
|
338
|
+
- spec/dummy_rails_3_plus/app/controllers/welcome_controller.rb
|
339
|
+
- spec/dummy_rails_3_plus/app/helpers/application_helper.rb
|
340
|
+
- spec/dummy_rails_3_plus/app/mailers/.gitkeep
|
341
|
+
- spec/dummy_rails_3_plus/app/models/.gitkeep
|
342
|
+
- spec/dummy_rails_3_plus/app/models/current_user.rb
|
343
|
+
- spec/dummy_rails_3_plus/app/views/layouts/application.html.erb
|
344
|
+
- spec/dummy_rails_3_plus/config.ru
|
345
|
+
- spec/dummy_rails_3_plus/config/application.rb
|
346
|
+
- spec/dummy_rails_3_plus/config/boot.rb
|
347
|
+
- spec/dummy_rails_3_plus/config/environment.rb
|
348
|
+
- spec/dummy_rails_3_plus/config/environments/development.rb
|
349
|
+
- spec/dummy_rails_3_plus/config/environments/production.rb
|
350
|
+
- spec/dummy_rails_3_plus/config/environments/test.rb
|
351
|
+
- spec/dummy_rails_3_plus/config/initializers/backtrace_silencers.rb
|
352
|
+
- spec/dummy_rails_3_plus/config/initializers/crashlog.rb
|
353
|
+
- spec/dummy_rails_3_plus/config/initializers/inflections.rb
|
354
|
+
- spec/dummy_rails_3_plus/config/initializers/mime_types.rb
|
355
|
+
- spec/dummy_rails_3_plus/config/initializers/secret_token.rb
|
356
|
+
- spec/dummy_rails_3_plus/config/initializers/session_store.rb
|
357
|
+
- spec/dummy_rails_3_plus/config/initializers/wrap_parameters.rb
|
358
|
+
- spec/dummy_rails_3_plus/config/routes.rb
|
359
|
+
- spec/dummy_rails_3_plus/lib/assets/.gitkeep
|
360
|
+
- spec/dummy_rails_3_plus/log/.gitkeep
|
361
|
+
- spec/dummy_rails_3_plus/log/development.log
|
362
|
+
- spec/dummy_rails_3_plus/public/404.html
|
363
|
+
- spec/dummy_rails_3_plus/public/422.html
|
364
|
+
- spec/dummy_rails_3_plus/public/500.html
|
365
|
+
- spec/dummy_rails_3_plus/public/favicon.ico
|
366
|
+
- spec/dummy_rails_3_plus/script/rails
|
367
|
+
- spec/rails/action_controller_spec.rb
|
368
|
+
- spec/rails/rails_2_controller_spec.rb
|
369
|
+
- spec/rails_spec_helper.rb
|
253
370
|
- spec/requests/rack_spec.rb
|
254
371
|
- spec/requests/rails_controller_rescue_spec.rb
|
255
372
|
- spec/spec_helper.rb
|