nxt_support 0.4.2 → 0.4.3

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: 7328933d44f33869979bcb80db3226e80e5222f584e77f6da99334fedf24e201
4
- data.tar.gz: 0bfb17e61361492c71f740669bf1a9ed5328c590f3063f47801111b2c4a38061
3
+ metadata.gz: f312406bd8279693e902e38435d9ecec8e0e3d15c1e522d91c4a5cd75e4f4ced
4
+ data.tar.gz: 0bb1c82b792322ecab97f89093295b17c4f9c5e2223a71584aca23b4b672a95a
5
5
  SHA512:
6
- metadata.gz: 19f986e57851b612d9efc5e67bc49d29d53f081d460b2100db1675e296b4af9f9f675c0c9daac432b516d3292a7f857359b9f520a4cbe4366e0b4eafef7e3598
7
- data.tar.gz: 33b75c6b866e473b5e8eae0f7456641896d80c195b0498b2a286f013d0a4391494aa26772bc71557b6be1e84d854b22820737b25700079b21380bdf712639c95
6
+ metadata.gz: 92bf3e5ec6c83fe1f713973d4528b1a85b7c83573f86121b3fbe03e8586820c63e56369911d84031a62af5ca2db72bc50baaac2a45a29e270936d9154671f58b
7
+ data.tar.gz: 0b883a1c2bbb8e0b7a6040569204676f4d5beec2b41514d791a1545863cd7c41d4394f8a1619b61956058cb6fa5d2038db6403857fb5cbe71f6a040dac6d77a4
data/.circleci/config.yml CHANGED
@@ -10,7 +10,7 @@ workflows:
10
10
  - build:
11
11
  matrix:
12
12
  parameters:
13
- ruby-version: ["3.0.2", "3.1.2"]
13
+ ruby-version: ["3.0.2", "3.1.3", "3.2.1"]
14
14
  orbs:
15
15
  ruby: circleci/ruby@2.0.0
16
16
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.2.1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.4.3 2023-03-22
2
+ - `Sentry-Error-Id`: Don't assume status code is an Integer
3
+
1
4
  # v0.4.2 2022-12-19
2
5
  - `Sentry-Error-Id`: Set `Access-Control-Expose-Headers` so frontend can access header
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_support (0.4.2)
4
+ nxt_support (0.4.3)
5
5
  activerecord
6
6
  activesupport
7
7
  nxt_init
@@ -10,23 +10,23 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activemodel (7.0.4)
14
- activesupport (= 7.0.4)
15
- activerecord (7.0.4)
16
- activemodel (= 7.0.4)
17
- activesupport (= 7.0.4)
18
- activesupport (7.0.4)
13
+ activemodel (7.0.4.3)
14
+ activesupport (= 7.0.4.3)
15
+ activerecord (7.0.4.3)
16
+ activemodel (= 7.0.4.3)
17
+ activesupport (= 7.0.4.3)
18
+ activesupport (7.0.4.3)
19
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
20
  i18n (>= 1.6, < 2)
21
21
  minitest (>= 5.1)
22
22
  tzinfo (~> 2.0)
23
23
  coderay (1.1.3)
24
- concurrent-ruby (1.1.10)
24
+ concurrent-ruby (1.2.2)
25
25
  diff-lcs (1.4.4)
26
26
  i18n (1.12.0)
27
27
  concurrent-ruby (~> 1.0)
28
28
  method_source (1.0.0)
29
- minitest (5.16.3)
29
+ minitest (5.18.0)
30
30
  nxt_init (0.1.5)
31
31
  activesupport
32
32
  nxt_registry (0.3.10)
@@ -51,7 +51,7 @@ GEM
51
51
  rspec_junit_formatter (0.4.1)
52
52
  rspec-core (>= 2, < 4, != 2.12.0)
53
53
  sqlite3 (1.4.2)
54
- tzinfo (2.0.5)
54
+ tzinfo (2.0.6)
55
55
  concurrent-ruby (~> 1.0)
56
56
 
57
57
  PLATFORMS
@@ -7,7 +7,7 @@ module NxtSupport
7
7
 
8
8
  def call(env)
9
9
  status, headers, body = @app.call(env)
10
- if status >= 500 && env['sentry.error_event_id']
10
+ if status && status.to_i >= 500 && env['sentry.error_event_id']
11
11
  headers['Sentry-Error-Id'] = env['sentry.error_event_id']
12
12
  exposed_headers = headers['Access-Control-Expose-Headers'] || headers['access-control-expose-headers']
13
13
  headers['Access-Control-Expose-Headers'] = [exposed_headers, 'Sentry-Error-Id'].compact.join(', ')
@@ -1,3 +1,3 @@
1
1
  module NxtSupport
2
- VERSION = "0.4.2".freeze
2
+ VERSION = "0.4.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nxt_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nils Sommer
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2022-12-19 00:00:00.000000000 Z
14
+ date: 2023-03-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activerecord
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.2.22
217
+ rubygems_version: 3.4.6
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: Support through reusable Mixins and Helpers for Ruby on Rails Applications