wat_catcher 0.10.5 → 0.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +88 -62
- data/lib/wat_catcher.rb +1 -2
- data/lib/wat_catcher/{sidekiq_poster.rb → poster.rb} +1 -3
- data/lib/wat_catcher/report.rb +1 -1
- data/lib/wat_catcher/version.rb +1 -1
- data/spec/controllers/bugsnag_controller_spec.rb +7 -2
- data/spec/dummy/config/environments/test.rb +1 -1
- data/spec/spec_helper.rb +0 -5
- data/wat_catcher.gemspec +1 -2
- metadata +6 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad0074aeae97415f2a3354685377165c05e1cd07
|
4
|
+
data.tar.gz: 34d75eb6117f5ed6f1a4c45ac43fe3a6293bec26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13330049c47a1275c6c0831194cba3e3b410b17cb43cf4ce603e305fd59db9c5b7aa4fdd04c63f334fc1586adebbc25d7af8512452d6f9f47279852d56267bca
|
7
|
+
data.tar.gz: bfd892ac4383e5a1e2163ce0f600947fceabf007cb4983b10db4f36a8cd29ad5f065d048f46a09585422cb2ded43881158314e1931c91eb826d022096bee0545
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,55 +1,67 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
wat_catcher (0.10.
|
4
|
+
wat_catcher (0.10.6)
|
5
5
|
coffee-rails
|
6
6
|
httpclient
|
7
|
-
|
7
|
+
rails (>= 4.2.0)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actionmailer (4.
|
13
|
-
actionpack (= 4.
|
12
|
+
actionmailer (4.2.7.1)
|
13
|
+
actionpack (= 4.2.7.1)
|
14
|
+
actionview (= 4.2.7.1)
|
15
|
+
activejob (= 4.2.7.1)
|
14
16
|
mail (~> 2.5, >= 2.5.4)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
rack (~> 1.
|
17
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
18
|
+
actionpack (4.2.7.1)
|
19
|
+
actionview (= 4.2.7.1)
|
20
|
+
activesupport (= 4.2.7.1)
|
21
|
+
rack (~> 1.6)
|
20
22
|
rack-test (~> 0.6.2)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
23
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
24
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
25
|
+
actionview (4.2.7.1)
|
26
|
+
activesupport (= 4.2.7.1)
|
27
|
+
builder (~> 3.1)
|
28
|
+
erubis (~> 2.7.0)
|
29
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
30
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
31
|
+
activejob (4.2.7.1)
|
32
|
+
activesupport (= 4.2.7.1)
|
33
|
+
globalid (>= 0.3.0)
|
34
|
+
activemodel (4.2.7.1)
|
35
|
+
activesupport (= 4.2.7.1)
|
36
|
+
builder (~> 3.1)
|
37
|
+
activerecord (4.2.7.1)
|
38
|
+
activemodel (= 4.2.7.1)
|
39
|
+
activesupport (= 4.2.7.1)
|
40
|
+
arel (~> 6.0)
|
41
|
+
activesupport (4.2.7.1)
|
42
|
+
i18n (~> 0.7)
|
43
|
+
json (~> 1.7, >= 1.7.7)
|
44
|
+
minitest (~> 5.1)
|
45
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
46
|
+
tzinfo (~> 1.1)
|
47
|
+
arel (6.0.3)
|
48
|
+
builder (3.2.2)
|
38
49
|
coderay (1.1.1)
|
39
|
-
coffee-rails (4.
|
50
|
+
coffee-rails (4.2.1)
|
40
51
|
coffee-script (>= 2.2.0)
|
41
|
-
railties (>= 4.0.0, < 5.
|
52
|
+
railties (>= 4.0.0, < 5.2.x)
|
42
53
|
coffee-script (2.4.1)
|
43
54
|
coffee-script-source
|
44
55
|
execjs
|
45
56
|
coffee-script-source (1.10.0)
|
46
|
-
concurrent-ruby (1.0.
|
47
|
-
connection_pool (2.2.0)
|
57
|
+
concurrent-ruby (1.0.2)
|
48
58
|
diff-lcs (1.2.5)
|
49
59
|
erubis (2.7.0)
|
50
60
|
execjs (2.6.0)
|
51
61
|
ffi (1.9.10)
|
52
62
|
formatador (0.2.5)
|
63
|
+
globalid (0.3.7)
|
64
|
+
activesupport (>= 4.1.0)
|
53
65
|
guard (2.13.0)
|
54
66
|
formatador (>= 0.2.4)
|
55
67
|
listen (>= 2.7, <= 4.0)
|
@@ -64,7 +76,7 @@ GEM
|
|
64
76
|
guard (>= 2.1.0)
|
65
77
|
guard-compat (~> 1.1)
|
66
78
|
guard-compat (1.2.1)
|
67
|
-
httpclient (2.
|
79
|
+
httpclient (2.8.2.4)
|
68
80
|
i18n (0.7.0)
|
69
81
|
jasmine (2.4.0)
|
70
82
|
jasmine-core (~> 2.4)
|
@@ -72,17 +84,24 @@ GEM
|
|
72
84
|
rack (>= 1.2.1)
|
73
85
|
rake
|
74
86
|
jasmine-core (2.4.1)
|
87
|
+
json (1.8.3)
|
75
88
|
listen (3.0.6)
|
76
89
|
rb-fsevent (>= 0.9.3)
|
77
90
|
rb-inotify (>= 0.9.7)
|
91
|
+
loofah (2.0.3)
|
92
|
+
nokogiri (>= 1.5.9)
|
78
93
|
lumberjack (1.0.10)
|
79
|
-
mail (2.6.
|
80
|
-
mime-types (>= 1.16, <
|
94
|
+
mail (2.6.4)
|
95
|
+
mime-types (>= 1.16, < 4)
|
81
96
|
method_source (0.8.2)
|
82
|
-
mime-types (
|
83
|
-
|
84
|
-
|
97
|
+
mime-types (3.1)
|
98
|
+
mime-types-data (~> 3.2015)
|
99
|
+
mime-types-data (3.2016.0521)
|
100
|
+
mini_portile2 (2.1.0)
|
101
|
+
minitest (5.10.1)
|
85
102
|
nenv (0.3.0)
|
103
|
+
nokogiri (1.6.8.1)
|
104
|
+
mini_portile2 (~> 2.1.0)
|
86
105
|
notiffany (0.0.8)
|
87
106
|
nenv (~> 0.1)
|
88
107
|
shellany (~> 0.0)
|
@@ -91,28 +110,38 @@ GEM
|
|
91
110
|
coderay (~> 1.1.0)
|
92
111
|
method_source (~> 0.8.1)
|
93
112
|
slop (~> 3.4)
|
94
|
-
rack (1.
|
113
|
+
rack (1.6.5)
|
95
114
|
rack-test (0.6.3)
|
96
115
|
rack (>= 1.0)
|
97
|
-
rails (4.
|
98
|
-
actionmailer (= 4.
|
99
|
-
actionpack (= 4.
|
100
|
-
|
101
|
-
|
116
|
+
rails (4.2.7.1)
|
117
|
+
actionmailer (= 4.2.7.1)
|
118
|
+
actionpack (= 4.2.7.1)
|
119
|
+
actionview (= 4.2.7.1)
|
120
|
+
activejob (= 4.2.7.1)
|
121
|
+
activemodel (= 4.2.7.1)
|
122
|
+
activerecord (= 4.2.7.1)
|
123
|
+
activesupport (= 4.2.7.1)
|
102
124
|
bundler (>= 1.3.0, < 2.0)
|
103
|
-
railties (= 4.
|
104
|
-
sprockets-rails
|
105
|
-
|
106
|
-
|
107
|
-
|
125
|
+
railties (= 4.2.7.1)
|
126
|
+
sprockets-rails
|
127
|
+
rails-deprecated_sanitizer (1.0.3)
|
128
|
+
activesupport (>= 4.2.0.alpha)
|
129
|
+
rails-dom-testing (1.0.7)
|
130
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
131
|
+
nokogiri (~> 1.6.0)
|
132
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
133
|
+
rails-html-sanitizer (1.0.3)
|
134
|
+
loofah (~> 2.0)
|
135
|
+
railties (4.2.7.1)
|
136
|
+
actionpack (= 4.2.7.1)
|
137
|
+
activesupport (= 4.2.7.1)
|
108
138
|
rake (>= 0.8.7)
|
109
139
|
thor (>= 0.18.1, < 2.0)
|
110
|
-
rake (11.
|
140
|
+
rake (11.3.0)
|
111
141
|
rb-fsevent (0.9.7)
|
112
142
|
rb-inotify (0.9.7)
|
113
143
|
ffi (>= 0.5.0)
|
114
144
|
rb-readline (0.5.3)
|
115
|
-
redis (3.2.2)
|
116
145
|
rspec (3.4.0)
|
117
146
|
rspec-core (~> 3.4.0)
|
118
147
|
rspec-expectations (~> 3.4.0)
|
@@ -135,22 +164,19 @@ GEM
|
|
135
164
|
rspec-support (~> 3.4.0)
|
136
165
|
rspec-support (3.4.1)
|
137
166
|
shellany (0.0.1)
|
138
|
-
sidekiq (4.1.1)
|
139
|
-
concurrent-ruby (~> 1.0)
|
140
|
-
connection_pool (~> 2.2, >= 2.2.0)
|
141
|
-
redis (~> 3.2, >= 3.2.1)
|
142
167
|
slop (3.6.0)
|
143
|
-
sprockets (3.
|
168
|
+
sprockets (3.7.0)
|
144
169
|
concurrent-ruby (~> 1.0)
|
145
170
|
rack (> 1, < 3)
|
146
|
-
sprockets-rails (2.
|
147
|
-
actionpack (>=
|
148
|
-
activesupport (>=
|
149
|
-
sprockets (>=
|
171
|
+
sprockets-rails (3.2.0)
|
172
|
+
actionpack (>= 4.0)
|
173
|
+
activesupport (>= 4.0)
|
174
|
+
sprockets (>= 3.0.0)
|
150
175
|
sqlite3 (1.3.11)
|
151
|
-
thor (0.19.
|
176
|
+
thor (0.19.4)
|
152
177
|
thread_safe (0.3.5)
|
153
|
-
tzinfo (
|
178
|
+
tzinfo (1.2.2)
|
179
|
+
thread_safe (~> 0.1)
|
154
180
|
|
155
181
|
PLATFORMS
|
156
182
|
ruby
|
@@ -159,7 +185,7 @@ DEPENDENCIES
|
|
159
185
|
bundler (~> 1.3)
|
160
186
|
guard-coffeescript
|
161
187
|
jasmine
|
162
|
-
rails (
|
188
|
+
rails (< 5.0)
|
163
189
|
rake
|
164
190
|
rb-readline
|
165
191
|
rspec
|
@@ -168,4 +194,4 @@ DEPENDENCIES
|
|
168
194
|
wat_catcher!
|
169
195
|
|
170
196
|
BUNDLED WITH
|
171
|
-
1.
|
197
|
+
1.13.6
|
data/lib/wat_catcher.rb
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
require "wat_catcher/version"
|
2
2
|
|
3
3
|
require "wat_catcher/report"
|
4
|
-
require
|
4
|
+
require "wat_catcher/poster"
|
5
5
|
require "wat_catcher/wattle_helper"
|
6
6
|
require "wat_catcher/sidekiq_middleware"
|
7
7
|
require "wat_catcher/rack_middleware"
|
8
|
-
require "wat_catcher/sidekiq_poster"
|
9
8
|
|
10
9
|
require "wat_catcher/railtie" if defined?(Rails::Railtie)
|
11
10
|
|
data/lib/wat_catcher/report.rb
CHANGED
@@ -13,7 +13,7 @@ module WatCatcher
|
|
13
13
|
|
14
14
|
def send_report
|
15
15
|
return if WatCatcher.configuration.disabled
|
16
|
-
::WatCatcher::
|
16
|
+
::WatCatcher::Poster.perform_later("#{WatCatcher.configuration.host}/wats", params.to_json)
|
17
17
|
end
|
18
18
|
|
19
19
|
def log_report
|
data/lib/wat_catcher/version.rb
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe WatCatcher::BugsnagController, type: :controller do
|
4
|
+
routes { WatCatcher::Engine.routes }
|
5
|
+
|
4
6
|
describe "GET #show" do
|
5
|
-
|
7
|
+
before do
|
8
|
+
expect_any_instance_of(WatCatcher::Poster).to receive(:perform) { true }
|
9
|
+
end
|
10
|
+
let(:req) { get :show, { "notifierVersion" => "2.3.2", "apiKey" => "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "projectRoot" => "http://localhost:3001", "context" => "/exceptionals", "user" => "{\"id\":16,\"first_name\":null,\"name\":\"asdfasd\",\"email\":\"asdfasdf\",\"created_at\":\"2014-04-07T22:21:57.041Z\",\"updated_at\":\"2014-04-07T22:21:57.041Z\"}", "metaData" => { "script" => { "src" => "http://localhost:3001/assets/exceptionals/thrower.js?body=1", "content" => "" }, "Last Event" => { "millisecondsAgo" => "742", "type" => "load", "target" => "#document" } }, "url" => "http://localhost:3001/exceptionals", "userAgent" => "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36", "language" => "en-US", "severity" => "fatal", "name" => "Error", "message" => "Uncaught Error: foo", "stacktrace" => "Error: foo\n at thrower (http://localhost:3001/assets/exceptionals/thrower.js?body=1:3:11)\n at http://localhost:3001/assets/exceptionals/thrower.js?body=1:7:12\n at _super.bugsnag (http://localhost:3001/assets/bugsnag.js?body=1:128:30)\n at http://localhost:3001/assets/bugsnag.js?body=1:583:15", "file" => "http://localhost:3001/assets/exceptionals/thrower.js?body=1", "lineNumber" => "3", "columnNumber" => "11", "ct" => "img", "cb" => "1397595292609", "id" => "Wattle" } }
|
6
11
|
subject { req; OpenStruct.new assigns[:report].params[:wat] }
|
7
12
|
it "should be success" do
|
8
13
|
req
|
@@ -15,7 +20,7 @@ describe WatCatcher::BugsnagController, type: :controller do
|
|
15
20
|
it { expect(subject.app_user).to include({ 'id' => 16, 'first_name' => nil, 'name' => 'asdfasd', 'email' => 'asdfasdf' }) }
|
16
21
|
|
17
22
|
context "with a bogus user" do
|
18
|
-
let(:req) { get :show, {
|
23
|
+
let(:req) { get :show, {"notifierVersion" => "2.3.2", "apiKey" => "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "projectRoot" => "http://localhost:3001", "context" => "/exceptionals", "user" => "{\"id\":16,", "metaData" => { "script" => { "src" => "http://localhost:3001/assets/exceptionals/thrower.js?body=1", "content" => "" }, "Last Event" => { "millisecondsAgo" => "742", "type" => "load", "target" => "#document" } }, "url" => "http://localhost:3001/exceptionals", "userAgent" => "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36", "language" => "en-US", "severity" => "fatal", "name" => "Error", "message" => "Uncaught Error: foo", "stacktrace" => "Error: foo\n at thrower (http://localhost:3001/assets/exceptionals/thrower.js?body=1:3:11)\n at http://localhost:3001/assets/exceptionals/thrower.js?body=1:7:12\n at _super.bugsnag (http://localhost:3001/assets/bugsnag.js?body=1:128:30)\n at http://localhost:3001/assets/bugsnag.js?body=1:583:15", "file" => "http://localhost:3001/assets/exceptionals/thrower.js?body=1", "lineNumber" => "3", "columnNumber" => "11", "ct" => "img", "cb" => "1397595292609", "id" => "Wattle" } }
|
19
24
|
it "should be success" do
|
20
25
|
req
|
21
26
|
expect(response).to be_success
|
@@ -13,7 +13,7 @@ Dummy::Application.configure do
|
|
13
13
|
config.eager_load = false
|
14
14
|
|
15
15
|
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
-
config.
|
16
|
+
config.serve_static_files = true
|
17
17
|
config.static_cache_control = "public, max-age=3600"
|
18
18
|
|
19
19
|
# Show full error reports and disable caching.
|
data/spec/spec_helper.rb
CHANGED
@@ -1,18 +1,13 @@
|
|
1
1
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
2
|
ENV["RAILS_ENV"] ||= 'test'
|
3
|
-
|
4
3
|
require File.expand_path("../dummy/config/environment", __FILE__)
|
5
4
|
|
6
5
|
require 'rspec/rails'
|
7
|
-
#require 'rr'
|
8
|
-
require 'sidekiq/testing/inline'
|
9
6
|
|
10
7
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
11
8
|
# in spec/support/ and its subdirectories.
|
12
9
|
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
13
10
|
|
14
|
-
Sidekiq::Testing.fake!
|
15
|
-
|
16
11
|
RSpec.configure do |config|
|
17
12
|
|
18
13
|
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
data/wat_catcher.gemspec
CHANGED
@@ -25,10 +25,9 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_development_dependency "rb-readline"
|
26
26
|
spec.add_development_dependency "rspec"
|
27
27
|
spec.add_development_dependency "rspec-rails"
|
28
|
-
spec.add_development_dependency "rails", "~> 4.0.2"
|
29
28
|
spec.add_development_dependency "sqlite3"
|
30
29
|
|
31
30
|
spec.add_runtime_dependency 'coffee-rails'
|
32
|
-
spec.add_runtime_dependency '
|
31
|
+
spec.add_runtime_dependency 'rails', '>= 4.2.0'
|
33
32
|
spec.add_runtime_dependency 'httpclient'
|
34
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wat_catcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Constantine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,20 +108,6 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rails
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 4.0.2
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 4.0.2
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: sqlite3
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,19 +137,19 @@ dependencies:
|
|
151
137
|
- !ruby/object:Gem::Version
|
152
138
|
version: '0'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
140
|
+
name: rails
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - ">="
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
145
|
+
version: 4.2.0
|
160
146
|
type: :runtime
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - ">="
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
152
|
+
version: 4.2.0
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: httpclient
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,11 +186,11 @@ files:
|
|
200
186
|
- config/routes.rb
|
201
187
|
- lib/wat_catcher.rb
|
202
188
|
- lib/wat_catcher/engine.rb
|
189
|
+
- lib/wat_catcher/poster.rb
|
203
190
|
- lib/wat_catcher/rack_middleware.rb
|
204
191
|
- lib/wat_catcher/railtie.rb
|
205
192
|
- lib/wat_catcher/report.rb
|
206
193
|
- lib/wat_catcher/sidekiq_middleware.rb
|
207
|
-
- lib/wat_catcher/sidekiq_poster.rb
|
208
194
|
- lib/wat_catcher/version.rb
|
209
195
|
- lib/wat_catcher/wattle_helper.rb
|
210
196
|
- spec/ci.sh
|