white_noise 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/.travis.yml +13 -0
- data/Gemfile.lock +64 -67
- data/README.md +3 -0
- data/lib/noise/exception_responder.rb +1 -1
- data/lib/noise/notification.rb +0 -1
- data/lib/noise/version.rb +1 -1
- data/white_noise.gemspec +3 -3
- metadata +18 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79bc1a55a2f512f8b236510c50868a5ca0076320
|
4
|
+
data.tar.gz: 46547d86c770d4d1bce3f5db20cee478fd7ec5cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ca565139cbba52b2a2f4c5f78354e92e0aa17a47e7b8358b1906880b69f9d9695d701b9b4646271d6bdb3a98cc13385ecbb34fa23e501b43dcd698ca6531e3b
|
7
|
+
data.tar.gz: d3d067a315b7f1892b6db5d12f37838d19ef6c766311772f9f860205589918ebebfede1add03dee2fc9a2e6ae69de384de3605ca3021329ebf532382981c6c42
|
data/.rubocop.yml
CHANGED
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
@@ -1,92 +1,90 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
white_noise (1.0.
|
5
|
-
actionpack
|
6
|
-
active_model_serializers (
|
7
|
-
activesupport
|
4
|
+
white_noise (1.0.1)
|
5
|
+
actionpack
|
6
|
+
active_model_serializers (>= 0.10.0.rc4, < 0.11.0)
|
7
|
+
activesupport
|
8
8
|
i18n (~> 0.7.0)
|
9
9
|
uber (~> 0.0.15)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
actionpack (
|
15
|
-
actionview (=
|
16
|
-
activesupport (=
|
17
|
-
rack (~>
|
18
|
-
rack-test (
|
19
|
-
rails-dom-testing (~>
|
14
|
+
actionpack (5.1.6)
|
15
|
+
actionview (= 5.1.6)
|
16
|
+
activesupport (= 5.1.6)
|
17
|
+
rack (~> 2.0)
|
18
|
+
rack-test (>= 0.6.3)
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
20
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
21
|
-
actionview (
|
22
|
-
activesupport (=
|
21
|
+
actionview (5.1.6)
|
22
|
+
activesupport (= 5.1.6)
|
23
23
|
builder (~> 3.1)
|
24
|
-
|
25
|
-
rails-dom-testing (~>
|
24
|
+
erubi (~> 1.4)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
26
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
27
|
-
active_model_serializers (0.10.
|
28
|
-
actionpack (>= 4.
|
29
|
-
activemodel (>= 4.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
activesupport (
|
35
|
-
|
27
|
+
active_model_serializers (0.10.7)
|
28
|
+
actionpack (>= 4.1, < 6)
|
29
|
+
activemodel (>= 4.1, < 6)
|
30
|
+
case_transform (>= 0.2)
|
31
|
+
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
|
32
|
+
activemodel (5.1.6)
|
33
|
+
activesupport (= 5.1.6)
|
34
|
+
activesupport (5.1.6)
|
35
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
36
|
+
i18n (>= 0.7, < 2)
|
36
37
|
minitest (~> 5.1)
|
37
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
38
38
|
tzinfo (~> 1.1)
|
39
|
-
addressable (2.
|
40
|
-
|
41
|
-
|
39
|
+
addressable (2.5.2)
|
40
|
+
public_suffix (>= 2.0.2, < 4.0)
|
41
|
+
ast (2.4.0)
|
42
|
+
bugsnag (6.6.4)
|
42
43
|
concurrent-ruby (~> 1.0)
|
43
|
-
builder (3.2.
|
44
|
+
builder (3.2.3)
|
45
|
+
case_transform (0.2)
|
46
|
+
activesupport
|
44
47
|
concurrent-ruby (1.0.5)
|
45
48
|
crass (1.0.3)
|
46
|
-
diff-lcs (1.
|
47
|
-
|
49
|
+
diff-lcs (1.3)
|
50
|
+
erubi (1.7.1)
|
48
51
|
i18n (0.7.0)
|
49
|
-
|
52
|
+
jsonapi-renderer (0.2.0)
|
53
|
+
loofah (2.2.2)
|
50
54
|
crass (~> 1.0.2)
|
51
55
|
nokogiri (>= 1.5.9)
|
52
56
|
mini_portile2 (2.3.0)
|
53
57
|
minitest (5.11.3)
|
54
58
|
nokogiri (1.8.2)
|
55
59
|
mini_portile2 (~> 2.3.0)
|
56
|
-
parser (2.
|
57
|
-
ast (~> 2.
|
60
|
+
parser (2.5.0.5)
|
61
|
+
ast (~> 2.4.0)
|
58
62
|
powerpack (0.1.1)
|
59
|
-
|
60
|
-
rack
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
rspec (3.
|
78
|
-
rspec-core (~> 3.4.0)
|
79
|
-
rspec-expectations (~> 3.4.0)
|
80
|
-
rspec-mocks (~> 3.4.0)
|
81
|
-
rspec-core (3.4.1)
|
82
|
-
rspec-support (~> 3.4.0)
|
83
|
-
rspec-expectations (3.4.0)
|
63
|
+
public_suffix (3.0.2)
|
64
|
+
rack (2.0.4)
|
65
|
+
rack-test (1.0.0)
|
66
|
+
rack (>= 1.0, < 3)
|
67
|
+
rails-dom-testing (2.0.3)
|
68
|
+
activesupport (>= 4.2.0)
|
69
|
+
nokogiri (>= 1.6)
|
70
|
+
rails-html-sanitizer (1.0.4)
|
71
|
+
loofah (~> 2.2, >= 2.2.2)
|
72
|
+
rainbow (2.2.2)
|
73
|
+
rake
|
74
|
+
rake (10.5.0)
|
75
|
+
rspec (3.7.0)
|
76
|
+
rspec-core (~> 3.7.0)
|
77
|
+
rspec-expectations (~> 3.7.0)
|
78
|
+
rspec-mocks (~> 3.7.0)
|
79
|
+
rspec-core (3.7.1)
|
80
|
+
rspec-support (~> 3.7.0)
|
81
|
+
rspec-expectations (3.7.0)
|
84
82
|
diff-lcs (>= 1.2.0, < 2.0)
|
85
|
-
rspec-support (~> 3.
|
86
|
-
rspec-mocks (3.
|
83
|
+
rspec-support (~> 3.7.0)
|
84
|
+
rspec-mocks (3.7.0)
|
87
85
|
diff-lcs (>= 1.2.0, < 2.0)
|
88
|
-
rspec-support (~> 3.
|
89
|
-
rspec-support (3.
|
86
|
+
rspec-support (~> 3.7.0)
|
87
|
+
rspec-support (3.7.1)
|
90
88
|
rspec_junit_formatter (0.2.3)
|
91
89
|
builder (< 4)
|
92
90
|
rspec-core (>= 2, < 4, != 2.12.0)
|
@@ -96,19 +94,18 @@ GEM
|
|
96
94
|
rainbow (>= 1.99.1, < 3.0)
|
97
95
|
ruby-progressbar (~> 1.7)
|
98
96
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
99
|
-
rubocop-checkstyle_formatter (0.
|
100
|
-
rubocop (>= 0.
|
101
|
-
ruby-progressbar (1.
|
97
|
+
rubocop-checkstyle_formatter (0.4.0)
|
98
|
+
rubocop (>= 0.35.1)
|
99
|
+
ruby-progressbar (1.9.0)
|
102
100
|
spbtv_code_style (1.4.1)
|
103
101
|
rspec_junit_formatter
|
104
102
|
rubocop (= 0.40.0)
|
105
103
|
rubocop-checkstyle_formatter
|
106
|
-
thor (0.20.0)
|
107
104
|
thread_safe (0.3.6)
|
108
105
|
tzinfo (1.2.5)
|
109
106
|
thread_safe (~> 0.1)
|
110
107
|
uber (0.0.15)
|
111
|
-
unicode-display_width (1.
|
108
|
+
unicode-display_width (1.3.0)
|
112
109
|
|
113
110
|
PLATFORMS
|
114
111
|
ruby
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# White Noise
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/SPBTV/white_noise.svg?branch=master)](https://travis-ci.org/SPBTV/white_noise)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/white_noise.svg)](https://badge.fury.io/rb/white_noise)
|
5
|
+
|
3
6
|
![TV Statics](https://habrastorage.org/files/6ca/008/f52/6ca008f5290043daa94f705da21b6c6a.jpg)
|
4
7
|
|
5
8
|
This gem defines middleware which renders exceptions in JSON format and notifies [Bugsnag](http://bugsnag.com).
|
@@ -37,7 +37,7 @@ module Noise
|
|
37
37
|
# @return [Hash] headers
|
38
38
|
def headers
|
39
39
|
{
|
40
|
-
'Content-Type' => "#{::Mime
|
40
|
+
'Content-Type' => "#{::Mime[:json]}; charset=#{ActionDispatch::Response.default_charset}",
|
41
41
|
'Content-Length' => body.bytesize.to_s,
|
42
42
|
}
|
43
43
|
end
|
data/lib/noise/notification.rb
CHANGED
@@ -4,7 +4,6 @@ require 'active_support/core_ext/module/attribute_accessors'
|
|
4
4
|
require 'active_support/core_ext/hash/except'
|
5
5
|
require 'active_support/hash_with_indifferent_access'
|
6
6
|
require 'active_support/concern'
|
7
|
-
require 'action_dispatch/http/request'
|
8
7
|
|
9
8
|
module Noise
|
10
9
|
# Provides detailed information about exception
|
data/lib/noise/version.rb
CHANGED
data/white_noise.gemspec
CHANGED
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_runtime_dependency 'i18n', '~> 0.7.0'
|
22
|
-
spec.add_runtime_dependency 'activesupport'
|
23
|
-
spec.add_runtime_dependency 'actionpack'
|
24
|
-
spec.add_runtime_dependency 'active_model_serializers', '0.10.0.rc4'
|
22
|
+
spec.add_runtime_dependency 'activesupport'
|
23
|
+
spec.add_runtime_dependency 'actionpack'
|
24
|
+
spec.add_runtime_dependency 'active_model_serializers', '>= 0.10.0.rc4', '< 0.11.0'
|
25
25
|
spec.add_runtime_dependency 'uber', '~> 0.0.15'
|
26
26
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
27
27
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: white_noise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tema Bolshakov
|
@@ -28,44 +28,50 @@ dependencies:
|
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: actionpack
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: active_model_serializers
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.10.0.rc4
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 0.11.0
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- -
|
69
|
+
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: 0.10.0.rc4
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.11.0
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: uber
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,6 +194,7 @@ files:
|
|
188
194
|
- ".gitignore"
|
189
195
|
- ".rspec"
|
190
196
|
- ".rubocop.yml"
|
197
|
+
- ".travis.yml"
|
191
198
|
- Gemfile
|
192
199
|
- Gemfile.lock
|
193
200
|
- LICENSE
|