bugsnag 6.12.1 → 6.12.2

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
  SHA256:
3
- metadata.gz: c3ce2f20307b3f7e0d7cd30f97014669b9a439badda047616f9026bac1481d2d
4
- data.tar.gz: 9b1ed81eec0448fc508b8680c2ee29a967bc3a0b25312c728f9ddaddefe93670
3
+ metadata.gz: c1da50fcf9b62e6d076d4f6aa1dd1870afb7f1e68fc535a9dadfae5bc1d5d845
4
+ data.tar.gz: 3cf9d8afaa0289bdd0e0115e4b3622f53da47c34d54d88b9a23b2e3824f29e48
5
5
  SHA512:
6
- metadata.gz: c5c6e00f784130d7cabc88425ec10093e6bc76cede790b8d7dc4b0fcc29f7abb173ec77abee3f5a4e142b43f341f2369e587162f57af18e7f6c2d8f128477284
7
- data.tar.gz: 66f6a5605ae938b90a3fbee1ec828810af3b5d119c1f0a8a4ffd25b602c108fccbb168c5b30deeab2200068042fec7a49cf23e7f6ce9bd7d2ddd1f5ad48ebf4c
6
+ metadata.gz: d2a9a6b5d1175288a74e7763badabcc40565f7f3a5ed445afb440f9576b82b80e1005fd67b87af8727e866c50860627120a6bbd49ef59cb6d30839c48210f56d
7
+ data.tar.gz: b3514c4c15d2f302795b7807ec0611e1e75110e5a3e8ecc6bb7017ea263e3cd98af64227cdf513f52dea0f00e5a3ecef838518db40b411ab205336fde6aec441
@@ -53,13 +53,18 @@ jobs:
53
53
  - stage: test
54
54
  env:
55
55
  - BUNDLE_VERSION=1.12.0
56
- - GEMSETS="test sidekiq coverage"
56
+ - GEMSETS="test sidekiq"
57
57
  rvm: 2.5
58
+ - stage: test
59
+ env:
60
+ - BUNDLE_VERSION=1.12.0
61
+ - GEMSETS="test sidekiq coverage"
62
+ rvm: 2.6
58
63
  - stage: test
59
64
  env:
60
65
  - BUNDLE_VERSION=1.12.0
61
66
  - GEMSETS="test rubocop"
62
- rvm: 2.5
67
+ rvm: 2.6
63
68
  script: bundle exec ./bin/rubocop lib/
64
69
  # - stage: test
65
70
  # addons:
@@ -1,6 +1,15 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## 6.12.2 (24 Oct 2019)
5
+
6
+ ### Fixes
7
+
8
+ * Handle change in capitalisation of framework version constant for Que in v1.x
9
+ | [#570](https://github.com/bugsnag/bugsnag-ruby/pull/570)
10
+ | [#572](https://github.com/bugsnag/bugsnag-ruby/pull/572)
11
+ | [tommeier](https://github.com/tommeier)
12
+
4
13
  ## 6.12.1 (05 Sep 2019)
5
14
 
6
15
  ### Fixes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.12.1
1
+ 6.12.2
@@ -43,8 +43,9 @@ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
43
43
  # Added at 2018-03-26 15:20:23 +0100 by amoinet:
44
44
  gem 'bugsnag', path: '/bugsnag'
45
45
 
46
- # Added at 2018-04-26 10:20:10 +0100 by amoinet:
47
- gem "clearance", "~> 1.16"
46
+ # Clearance breaks in Ruby < 2.3 and needs to be pinned to `1.16.1`
47
+ ruby_version = Gem::Version.new(RUBY_VERSION)
48
+ gem "clearance", ruby_version < Gem::Version.new('2.3.0') ? '1.16.1' : '~> 1.16'
48
49
 
49
50
  gem "mongoid"
50
51
 
@@ -32,6 +32,8 @@ Scenario Outline: Setting api_key in environment variable works
32
32
  | 2.5 | 3 |
33
33
  | 2.5 | 5 |
34
34
  | 2.5 | 6 |
35
+ | 2.6 | 5 |
36
+ | 2.6 | 6 |
35
37
 
36
38
  Scenario Outline: Changing api_key after initializer works
37
39
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -58,4 +60,6 @@ Scenario Outline: Setting api_key in environment variable works
58
60
  | 2.4 | 5 |
59
61
  | 2.5 | 3 |
60
62
  | 2.5 | 5 |
61
- | 2.5 | 6 |
63
+ | 2.5 | 6 |
64
+ | 2.6 | 5 |
65
+ | 2.6 | 6 |
@@ -36,6 +36,8 @@ Scenario Outline: Setting app_type in initializer works
36
36
  | 2.5 | 3 |
37
37
  | 2.5 | 5 |
38
38
  | 2.5 | 6 |
39
+ | 2.6 | 5 |
40
+ | 2.6 | 6 |
39
41
 
40
42
  Scenario Outline: Changing app_type after initializer works
41
43
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -66,4 +68,6 @@ Scenario Outline: Changing app_type after initializer works
66
68
  | 2.4 | 5 |
67
69
  | 2.5 | 3 |
68
70
  | 2.5 | 5 |
69
- | 2.5 | 6 |
71
+ | 2.5 | 6 |
72
+ | 2.6 | 5 |
73
+ | 2.6 | 6 |
@@ -30,6 +30,8 @@ Scenario Outline: App_version is nil by default
30
30
  | 2.5 | 3 |
31
31
  | 2.5 | 5 |
32
32
  | 2.5 | 6 |
33
+ | 2.6 | 5 |
34
+ | 2.6 | 6 |
33
35
 
34
36
  Scenario Outline: Setting app_version in initializer works
35
37
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -58,6 +60,8 @@ Scenario Outline: Setting app_version in initializer works
58
60
  | 2.5 | 3 |
59
61
  | 2.5 | 5 |
60
62
  | 2.5 | 6 |
63
+ | 2.6 | 5 |
64
+ | 2.6 | 6 |
61
65
 
62
66
  Scenario Outline: Setting app_version after initializer works
63
67
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -84,4 +88,6 @@ Scenario Outline: Setting app_version after initializer works
84
88
  | 2.4 | 5 |
85
89
  | 2.5 | 3 |
86
90
  | 2.5 | 5 |
87
- | 2.5 | 6 |
91
+ | 2.5 | 6 |
92
+ | 2.6 | 5 |
93
+ | 2.6 | 6 |
@@ -32,6 +32,8 @@ Scenario Outline: Auto_capture_sessions defaults to true
32
32
  | 2.5 | 3 |
33
33
  | 2.5 | 5 |
34
34
  | 2.5 | 6 |
35
+ | 2.6 | 5 |
36
+ | 2.6 | 6 |
35
37
 
36
38
  Scenario Outline: Auto_capture_sessions can be set to false in the initializer
37
39
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -56,6 +58,8 @@ Scenario Outline: Auto_capture_sessions can be set to false in the initializer
56
58
  | 2.5 | 3 |
57
59
  | 2.5 | 5 |
58
60
  | 2.5 | 6 |
61
+ | 2.6 | 5 |
62
+ | 2.6 | 6 |
59
63
 
60
64
  Scenario Outline: Manual sessions are still sent if Auto_capture_sessions is false
61
65
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -84,6 +88,8 @@ Scenario Outline: Manual sessions are still sent if Auto_capture_sessions is fal
84
88
  | 2.5 | 3 |
85
89
  | 2.5 | 5 |
86
90
  | 2.5 | 6 |
91
+ | 2.6 | 5 |
92
+ | 2.6 | 6 |
87
93
 
88
94
  Scenario Outline: 100 session calls results in 100 sessions
89
95
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -112,4 +118,6 @@ Scenario Outline: 100 session calls results in 100 sessions
112
118
  | 2.4 | 5 |
113
119
  | 2.5 | 3 |
114
120
  | 2.5 | 5 |
115
- | 2.5 | 6 |
121
+ | 2.5 | 6 |
122
+ | 2.6 | 5 |
123
+ | 2.6 | 6 |
@@ -28,6 +28,8 @@ Scenario Outline: Auto_notify set to false in the initializer prevents unhandled
28
28
  | 2.5 | 3 |
29
29
  | 2.5 | 5 |
30
30
  | 2.5 | 6 |
31
+ | 2.6 | 5 |
32
+ | 2.6 | 6 |
31
33
 
32
34
  Scenario Outline: Auto_notify set to false in the initializer still sends handled errors
33
35
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -61,6 +63,8 @@ Scenario Outline: Auto_notify set to false in the initializer still sends handle
61
63
  | 2.5 | 3 |
62
64
  | 2.5 | 5 |
63
65
  | 2.5 | 6 |
66
+ | 2.6 | 5 |
67
+ | 2.6 | 6 |
64
68
 
65
69
  Scenario Outline: Auto_notify set to false after the initializer prevents unhandled error sending
66
70
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -84,6 +88,8 @@ Scenario Outline: Auto_notify set to false after the initializer prevents unhand
84
88
  | 2.5 | 3 |
85
89
  | 2.5 | 5 |
86
90
  | 2.5 | 6 |
91
+ | 2.6 | 5 |
92
+ | 2.6 | 6 |
87
93
 
88
94
  Scenario Outline: Auto_notify set to false after the initializer still sends handled errors
89
95
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -115,4 +121,6 @@ Scenario Outline: Auto_notify set to false after the initializer still sends han
115
121
  | 2.4 | 5 |
116
122
  | 2.5 | 3 |
117
123
  | 2.5 | 5 |
118
- | 2.5 | 6 |
124
+ | 2.5 | 6 |
125
+ | 2.6 | 5 |
126
+ | 2.6 | 6 |
@@ -38,6 +38,8 @@ Scenario Outline: Rails before_notify controller method works on handled errors
38
38
  | 2.5 | 3 |
39
39
  | 2.5 | 5 |
40
40
  | 2.5 | 6 |
41
+ | 2.6 | 5 |
42
+ | 2.6 | 6 |
41
43
 
42
44
  Scenario Outline: Rails before_notify controller method works on unhandled errors
43
45
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -72,6 +74,8 @@ Scenario Outline: Rails before_notify controller method works on unhandled error
72
74
  | 2.5 | 3 |
73
75
  | 2.5 | 5 |
74
76
  | 2.5 | 6 |
77
+ | 2.6 | 5 |
78
+ | 2.6 | 6 |
75
79
 
76
80
  Scenario Outline: Inline block on handled errors is called
77
81
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -106,4 +110,6 @@ Scenario Outline: Inline block on handled errors is called
106
110
  | 2.5 | 3 |
107
111
  | 2.5 | 5 |
108
112
  | 2.5 | 6 |
113
+ | 2.6 | 5 |
114
+ | 2.6 | 6 |
109
115
 
@@ -38,6 +38,8 @@ Scenario Outline: Request breadcrumb
38
38
  | 2.5 | 3 |
39
39
  | 2.5 | 5 |
40
40
  | 2.5 | 6 |
41
+ | 2.6 | 5 |
42
+ | 2.6 | 6 |
41
43
 
42
44
  Scenario Outline: SQL Breadcrumb without bindings
43
45
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -67,6 +69,8 @@ Scenario Outline: SQL Breadcrumb without bindings
67
69
  | 2.4 | 3 |
68
70
  | 2.5 | 3 |
69
71
  | 2.5 | 6 |
72
+ | 2.6 | 5 |
73
+ | 2.6 | 6 |
70
74
 
71
75
  Scenario Outline: SQL Breadcrumb with bindings
72
76
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -93,6 +97,8 @@ Scenario Outline: SQL Breadcrumb with bindings
93
97
  | 2.4 | 5 |
94
98
  | 2.5 | 5 |
95
99
  | 2.5 | 6 |
100
+ | 2.6 | 5 |
101
+ | 2.6 | 6 |
96
102
 
97
103
  Scenario Outline: Active job breadcrumb
98
104
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -117,6 +123,8 @@ Scenario Outline: Active job breadcrumb
117
123
  | 2.4 | 5 |
118
124
  | 2.5 | 5 |
119
125
  | 2.5 | 6 |
126
+ | 2.6 | 5 |
127
+ | 2.6 | 6 |
120
128
 
121
129
  Scenario Outline: Cache read
122
130
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -138,3 +146,5 @@ Scenario Outline: Cache read
138
146
  | 2.4 | 5 |
139
147
  | 2.5 | 5 |
140
148
  | 2.5 | 6 |
149
+ | 2.6 | 5 |
150
+ | 2.6 | 6 |
@@ -38,6 +38,8 @@ Scenario Outline: Unhandled RuntimeError
38
38
  | 2.5 | 3 |
39
39
  | 2.5 | 5 |
40
40
  | 2.5 | 6 |
41
+ | 2.6 | 5 |
42
+ | 2.6 | 6 |
41
43
 
42
44
  Scenario Outline: Thrown handled NameError
43
45
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -72,6 +74,8 @@ Scenario Outline: Thrown handled NameError
72
74
  | 2.5 | 3 |
73
75
  | 2.5 | 5 |
74
76
  | 2.5 | 6 |
77
+ | 2.6 | 5 |
78
+ | 2.6 | 6 |
75
79
 
76
80
  Scenario Outline: Manual string notify
77
81
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -104,3 +108,5 @@ Scenario Outline: Manual string notify
104
108
  | 2.5 | 3 |
105
109
  | 2.5 | 5 |
106
110
  | 2.5 | 6 |
111
+ | 2.6 | 5 |
112
+ | 2.6 | 6 |
@@ -28,6 +28,8 @@ Scenario Outline: Ignore_classes can be set to a different value in initializer
28
28
  | 2.5 | 3 |
29
29
  | 2.5 | 5 |
30
30
  | 2.5 | 6 |
31
+ | 2.6 | 5 |
32
+ | 2.6 | 6 |
31
33
 
32
34
  Scenario Outline: Ignore_classes can be set to a different value after initializer
33
35
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -50,4 +52,6 @@ Scenario Outline: Ignore_classes can be set to a different value after initializ
50
52
  | 2.4 | 5 |
51
53
  | 2.5 | 3 |
52
54
  | 2.5 | 5 |
53
- | 2.5 | 6 |
55
+ | 2.5 | 6 |
56
+ | 2.6 | 5 |
57
+ | 2.6 | 6 |
@@ -38,3 +38,5 @@ Scenario Outline: Meta_data_filters should include Rails.configuration.filter_pa
38
38
  | 2.5 | 3 |
39
39
  | 2.5 | 5 |
40
40
  | 2.5 | 6 |
41
+ | 2.6 | 5 |
42
+ | 2.6 | 6 |
@@ -32,6 +32,9 @@ Scenario Outline: Successful breadcrumbs
32
32
  | 2.3 | 5 |
33
33
  | 2.4 | 5 |
34
34
  | 2.5 | 5 |
35
+ | 2.5 | 6 |
36
+ | 2.6 | 5 |
37
+ | 2.6 | 6 |
35
38
 
36
39
  Scenario Outline: Breadcrumb with filter parameters
37
40
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -70,6 +73,9 @@ Scenario Outline: Breadcrumb with filter parameters
70
73
  | 2.3 | 5 |
71
74
  | 2.4 | 5 |
72
75
  | 2.5 | 5 |
76
+ | 2.5 | 6 |
77
+ | 2.6 | 5 |
78
+ | 2.6 | 6 |
73
79
 
74
80
  Scenario Outline: Failure breadcrumbs
75
81
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -97,4 +103,7 @@ Scenario Outline: Failure breadcrumbs
97
103
  | 2.3 | 4 |
98
104
  | 2.3 | 5 |
99
105
  | 2.4 | 5 |
100
- | 2.5 | 5 |
106
+ | 2.5 | 5 |
107
+ | 2.5 | 6 |
108
+ | 2.6 | 5 |
109
+ | 2.6 | 6 |
@@ -35,6 +35,8 @@ Scenario Outline: Project_root should default to Rails.root
35
35
  | 2.5 | 3 |
36
36
  | 2.5 | 5 |
37
37
  | 2.5 | 6 |
38
+ | 2.6 | 5 |
39
+ | 2.6 | 6 |
38
40
 
39
41
  Scenario Outline: Project_root can be set in an initializer
40
42
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -67,6 +69,8 @@ Scenario Outline: Project_root can be set in an initializer
67
69
  | 2.5 | 3 |
68
70
  | 2.5 | 5 |
69
71
  | 2.5 | 6 |
72
+ | 2.6 | 5 |
73
+ | 2.6 | 6 |
70
74
 
71
75
  Scenario Outline: Project_root can be set after an initializer
72
76
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -98,3 +102,5 @@ Scenario Outline: Project_root can be set after an initializer
98
102
  | 2.5 | 3 |
99
103
  | 2.5 | 5 |
100
104
  | 2.5 | 6 |
105
+ | 2.6 | 5 |
106
+ | 2.6 | 6 |
@@ -32,6 +32,8 @@ Scenario Outline: Release_stage should default to RAILS_ENV
32
32
  | 2.5 | 3 |
33
33
  | 2.5 | 5 |
34
34
  | 2.5 | 6 |
35
+ | 2.6 | 5 |
36
+ | 2.6 | 6 |
35
37
 
36
38
  Scenario Outline: Release_stage can be set in an initializer
37
39
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -60,6 +62,8 @@ Scenario Outline: Release_stage can be set in an initializer
60
62
  | 2.5 | 3 |
61
63
  | 2.5 | 5 |
62
64
  | 2.5 | 6 |
65
+ | 2.6 | 5 |
66
+ | 2.6 | 6 |
63
67
 
64
68
  Scenario Outline: Release_stage can be set after an initializer
65
69
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -86,4 +90,6 @@ Scenario Outline: Release_stage can be set after an initializer
86
90
  | 2.4 | 5 |
87
91
  | 2.5 | 3 |
88
92
  | 2.5 | 5 |
89
- | 2.5 | 6 |
93
+ | 2.5 | 6 |
94
+ | 2.6 | 5 |
95
+ | 2.6 | 6 |
@@ -31,6 +31,8 @@ Scenario Outline: Send_code can be updated in an initializer
31
31
  | 2.5 | 3 |
32
32
  | 2.5 | 5 |
33
33
  | 2.5 | 6 |
34
+ | 2.6 | 5 |
35
+ | 2.6 | 6 |
34
36
 
35
37
  Scenario Outline: Send_code can be updated after an initializer
36
38
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
@@ -58,3 +60,5 @@ Scenario Outline: Send_code can be updated after an initializer
58
60
  | 2.5 | 3 |
59
61
  | 2.5 | 5 |
60
62
  | 2.5 | 6 |
63
+ | 2.6 | 5 |
64
+ | 2.6 | 6 |
@@ -36,4 +36,6 @@ Scenario Outline: Send_environment should send environment in handled errors whe
36
36
  | 2.4 | 5 |
37
37
  | 2.5 | 3 |
38
38
  | 2.5 | 5 |
39
- | 2.5 | 6 |
39
+ | 2.5 | 6 |
40
+ | 2.6 | 5 |
41
+ | 2.6 | 6 |
@@ -38,4 +38,6 @@ Scenario Outline: Unhandled RuntimeError
38
38
  | 2.4 | 5 |
39
39
  | 2.5 | 3 |
40
40
  | 2.5 | 5 |
41
- | 2.5 | 6 |
41
+ | 2.5 | 6 |
42
+ | 2.6 | 5 |
43
+ | 2.6 | 6 |
@@ -36,7 +36,6 @@ Scenario Outline: Warden user information is sent
36
36
  | 2.5 | 3 | handled |
37
37
  | 2.5 | 3 | unhandled |
38
38
 
39
-
40
39
  Scenario Outline: Devise user information is sent
41
40
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
42
41
  And I start the service "rails<rails_version>"
@@ -87,4 +86,8 @@ Scenario Outline: Clearance user information is sent
87
86
  | 2.5 | 5 | handled |
88
87
  | 2.5 | 5 | unhandled |
89
88
  | 2.5 | 6 | handled |
90
- | 2.5 | 6 | unhandled |
89
+ | 2.5 | 6 | unhandled |
90
+ | 2.6 | 5 | handled |
91
+ | 2.6 | 5 | unhandled |
92
+ | 2.6 | 6 | handled |
93
+ | 2.6 | 6 | unhandled |
@@ -37,13 +37,16 @@ if defined?(::Que)
37
37
  end
38
38
  end
39
39
 
40
- if Que.respond_to?(:error_notifier=)
41
- Bugsnag.configuration.app_type ||= "que"
40
+ Bugsnag.configuration.app_type ||= "que"
41
+ if defined?(::Que::Version)
42
42
  Bugsnag.configuration.runtime_versions["que"] = ::Que::Version
43
+ elsif defined?(::Que::VERSION)
44
+ Bugsnag.configuration.runtime_versions["que"] = ::Que::VERSION
45
+ end
46
+
47
+ if Que.respond_to?(:error_notifier=)
43
48
  Que.error_notifier = handler
44
49
  elsif Que.respond_to?(:error_handler=)
45
- Bugsnag.configuration.app_type ||= "que"
46
- Bugsnag.configuration.runtime_versions["que"] = ::Que::Version
47
50
  Que.error_handler = handler
48
51
  end
49
52
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.12.1
4
+ version: 6.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2019-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby