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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36c99a8cf1331b11eb0e3127e1fb4314292fb3e3
4
- data.tar.gz: 20e2b105da308b2f43a2d1d6a8b0e29128aa61b8
3
+ metadata.gz: 79bc1a55a2f512f8b236510c50868a5ca0076320
4
+ data.tar.gz: 46547d86c770d4d1bce3f5db20cee478fd7ec5cd
5
5
  SHA512:
6
- metadata.gz: 076ca09ee589c89c564863a70a192ed8fb1d083bdafefa8bd8bf538fa2e63acc426f80de2dbf995af3f3a79638f582371f13fbada9c9c1ecd2d5021116efde99
7
- data.tar.gz: 1390fad96e23ffde77f0e0fa24f4d60279dd6942df6b586129f34784160949b8b5ee3696cf2b72793ba7e79ed5c64db8a13e387b3aab93a883b5b46892f01d9f
6
+ metadata.gz: 2ca565139cbba52b2a2f4c5f78354e92e0aa17a47e7b8358b1906880b69f9d9695d701b9b4646271d6bdb3a98cc13385ecbb34fa23e501b43dcd698ca6531e3b
7
+ data.tar.gz: d3d067a315b7f1892b6db5d12f37838d19ef6c766311772f9f860205589918ebebfede1add03dee2fc9a2e6ae69de384de3605ca3021329ebf532382981c6c42
data/.rubocop.yml CHANGED
@@ -2,6 +2,7 @@ AllCops:
2
2
  TargetRubyVersion: 2.3
3
3
  Exclude:
4
4
  - tmp/**/*
5
+ - vendor/bundle/**/*
5
6
 
6
7
  inherit_gem:
7
8
  spbtv_code_style: .rubocop.yml
data/.travis.yml ADDED
@@ -0,0 +1,13 @@
1
+ sudo: false
2
+ language: ruby
3
+ cache: bundler
4
+
5
+ rvm:
6
+ - 2.5.0
7
+
8
+ before_install:
9
+ - gem install bundler -v 1.16.1
10
+
11
+ script:
12
+ - bundle exec rubocop
13
+ - bundle exec rspec
data/Gemfile.lock CHANGED
@@ -1,92 +1,90 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- white_noise (1.0.0)
5
- actionpack (~> 4.2)
6
- active_model_serializers (= 0.10.0.rc4)
7
- activesupport (~> 4.2)
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 (4.2.10)
15
- actionview (= 4.2.10)
16
- activesupport (= 4.2.10)
17
- rack (~> 1.6)
18
- rack-test (~> 0.6.2)
19
- rails-dom-testing (~> 1.0, >= 1.0.5)
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 (4.2.10)
22
- activesupport (= 4.2.10)
21
+ actionview (5.1.6)
22
+ activesupport (= 5.1.6)
23
23
  builder (~> 3.1)
24
- erubis (~> 2.7.0)
25
- rails-dom-testing (~> 1.0, >= 1.0.5)
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.0.rc4)
28
- actionpack (>= 4.0)
29
- activemodel (>= 4.0)
30
- railties (>= 4.0)
31
- activemodel (4.2.10)
32
- activesupport (= 4.2.10)
33
- builder (~> 3.1)
34
- activesupport (4.2.10)
35
- i18n (~> 0.7)
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.3.8)
40
- ast (2.3.0)
41
- bugsnag (6.6.3)
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.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.2.5)
47
- erubis (2.7.0)
49
+ diff-lcs (1.3)
50
+ erubi (1.7.1)
48
51
  i18n (0.7.0)
49
- loofah (2.2.0)
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.3.1.2)
57
- ast (~> 2.2)
60
+ parser (2.5.0.5)
61
+ ast (~> 2.4.0)
58
62
  powerpack (0.1.1)
59
- rack (1.6.8)
60
- rack-test (0.6.3)
61
- rack (>= 1.0)
62
- rails-deprecated_sanitizer (1.0.3)
63
- activesupport (>= 4.2.0.alpha)
64
- rails-dom-testing (1.0.9)
65
- activesupport (>= 4.2.0, < 5.0)
66
- nokogiri (~> 1.6)
67
- rails-deprecated_sanitizer (>= 1.0.1)
68
- rails-html-sanitizer (1.0.3)
69
- loofah (~> 2.0)
70
- railties (4.2.10)
71
- actionpack (= 4.2.10)
72
- activesupport (= 4.2.10)
73
- rake (>= 0.8.7)
74
- thor (>= 0.18.1, < 2.0)
75
- rainbow (2.1.0)
76
- rake (10.4.2)
77
- rspec (3.4.0)
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.4.0)
86
- rspec-mocks (3.4.0)
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.4.0)
89
- rspec-support (3.4.1)
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.2.0)
100
- rubocop (>= 0.20.1)
101
- ruby-progressbar (1.8.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.1.0)
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::JSON}; charset=#{ActionDispatch::Response.default_charset}",
40
+ 'Content-Type' => "#{::Mime[:json]}; charset=#{ActionDispatch::Response.default_charset}",
41
41
  'Content-Length' => body.bytesize.to_s,
42
42
  }
43
43
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  #
3
3
  module Noise
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
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', '~> 4.2'
23
- spec.add_runtime_dependency 'actionpack', '~> 4.2'
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.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: '4.2'
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: '4.2'
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: '4.2'
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: '4.2'
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