nexus_semantic_logger 1.14.1 → 1.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32ad58a45b7f549b78d5a38b15319c90d4e03a254d8c59cd2924bf29f9194501
4
- data.tar.gz: 8999d6c1cef19b0614050b31f193b42e07b10c5d033720890966ce56f137ed5c
3
+ metadata.gz: 4f3b89f4f80f8f27b69fa3acdf26a8ee5bedd3879fdcae28e18c43c9a6150b55
4
+ data.tar.gz: 4778cc57aa7c007c324d53b665f7bea976fc9ac8ab31767e69d96df4d36eee37
5
5
  SHA512:
6
- metadata.gz: dc0dabdf1cdc35d17b22f0f6f166f84802f14d9b16c04b5da4e9ddc9ae42f2c1de9c5eca4f87d62bb6ac30235d03f792e1bed563f18f4f0a04cce230713326a0
7
- data.tar.gz: 3daf0fed3524cf841917e4e43ea6abd9bc4b79ded74fbca066f4cd8b54cecbd13fbf9bf632c55b9942a36e953002a2d6942a2e5feecee3b9c2b1fa9760b1b118
6
+ metadata.gz: da93370c79b39887353e2397ee5c9919d554f9e9a51d3c66673020f75e15d437231b807bfcfd60662751f87e77888427eb51a78b8df9253fdc40b191ac37aa9e
7
+ data.tar.gz: 6bcc8e29ca2f7907c3d27ec4941bc98e86b03948fbc665bc640505e528317b82d96e9501765e9d915f943b3d9b48d8a565f791e11eb52f1e2c3d00cfd7cd1211
@@ -0,0 +1,52 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ tags: ["*"]
7
+ pull_request:
8
+
9
+ jobs:
10
+ rspec:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ gemfile: [rails_7_1, rails_7_2, rails_8_0]
16
+ env:
17
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: "3.2.2"
23
+ - run: bundle install --jobs 4
24
+ - run: bundle exec rspec
25
+
26
+ rubocop:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+ - uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: "3.2.2"
33
+ - run: bundle install --jobs 4
34
+ - run: bundle exec rubocop
35
+
36
+ release:
37
+ needs: [rspec, rubocop]
38
+ if: startsWith(github.ref, 'refs/tags/')
39
+ runs-on: ubuntu-latest
40
+ steps:
41
+ - uses: actions/checkout@v4
42
+ - uses: ruby/setup-ruby@v1
43
+ with:
44
+ ruby-version: "3.2.2"
45
+ - run: bundle install --jobs 4
46
+ - name: Build and push gem to RubyGems
47
+ env:
48
+ GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
49
+ run: |
50
+ sed -i "s/0.0.0/${GITHUB_REF_NAME}/g" lib/nexus_semantic_logger/version.rb
51
+ gem build nexus_semantic_logger.gemspec
52
+ gem push nexus_semantic_logger-*.gem
data/.gitignore CHANGED
@@ -1,3 +1,5 @@
1
1
  .idea/
2
2
  .vscode/
3
3
  results/
4
+ Gemfile.lock
5
+ gemfiles/*.gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --require spec_helper
2
+ --format documentation
data/Appraisals ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise "rails-7-1" do
4
+ gem "railties", "~> 7.1.0"
5
+ end
6
+
7
+ appraise "rails-7-2" do
8
+ gem "railties", "~> 7.2.0"
9
+ end
10
+
11
+ appraise "rails-8-0" do
12
+ gem "railties", "~> 8.0.0"
13
+ end
data/Gemfile CHANGED
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
3
3
 
4
4
  gemspec
5
5
 
6
+ gem 'appraisal'
6
7
  gem 'rubocop'
7
8
  gem 'rubocop-shopify', "~> 1.0.4", require: false
8
9
 
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rubocop"
7
+ gem "rubocop-shopify", "~> 1.0.4", require: false
8
+ gem "rspec"
9
+ gem "railties", "~> 7.1.0"
10
+
11
+ gemspec path: "../"
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rubocop"
7
+ gem "rubocop-shopify", "~> 1.0.4", require: false
8
+ gem "rspec"
9
+ gem "railties", "~> 7.2.0"
10
+
11
+ gemspec path: "../"
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rubocop"
7
+ gem "rubocop-shopify", "~> 1.0.4", require: false
8
+ gem "rspec"
9
+ gem "railties", "~> 8.0.0"
10
+
11
+ gemspec path: "../"
@@ -14,8 +14,19 @@ module ActionDispatch
14
14
  # log_rescued_responses? is a rails7 feature, but this gem is also used on rails6. Check for its existence.
15
15
  return if respond_to?('log_rescued_responses?') && !log_rescued_responses?(request) && wrapper.rescue_response?
16
16
 
17
- ActiveSupport::Deprecation.silence do
18
- ActionController::Base.logger.fatal(wrapper.exception)
17
+ # Silence deprecations emitted while logging the exception. The API changed in Rails 7.1: the
18
+ # ActiveSupport::Deprecation singleton was deprecated and its class-level `silence` was removed in 7.2,
19
+ # replaced by Rails.application.deprecators. Calling the removed singleton on >= 7.2 raises NoMethodError
20
+ # inside render_exception (before the exception is logged), which swallowed all exception logging and
21
+ # produced empty 500s. Use whichever API the Rails version provides, mirroring rails_semantic_logger.
22
+ if (Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR >= 1) || Rails::VERSION::MAJOR > 7
23
+ Rails.application.deprecators.silence do
24
+ ActionController::Base.logger.fatal(wrapper.exception)
25
+ end
26
+ else
27
+ ActiveSupport::Deprecation.silence do
28
+ ActionController::Base.logger.fatal(wrapper.exception)
29
+ end
19
30
  end
20
31
  end
21
32
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module NexusSemanticLogger
3
- # Leave this as 1.14.1 in order for CI process to replace with the tagged version.
4
- VERSION = '1.14.1'
3
+ # Leave this as 1.14.2 in order for CI process to replace with the tagged version.
4
+ VERSION = '1.14.2'
5
5
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexus_semantic_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.1
4
+ version: 1.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johnathon Harris
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-06-04 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: amazing_print
@@ -107,16 +108,22 @@ dependencies:
107
108
  - - "~>"
108
109
  - !ruby/object:Gem::Version
109
110
  version: 4.16.1
111
+ description:
110
112
  email: john.harris@nexusmods.com
111
113
  executables: []
112
114
  extensions: []
113
115
  extra_rdoc_files: []
114
116
  files:
117
+ - ".github/workflows/ci.yml"
115
118
  - ".gitignore"
116
- - ".gitlab-ci.yml"
119
+ - ".rspec"
117
120
  - ".rubocop.yml"
121
+ - Appraisals
118
122
  - Gemfile
119
123
  - README.md
124
+ - gemfiles/rails_7_1.gemfile
125
+ - gemfiles/rails_7_2.gemfile
126
+ - gemfiles/rails_8_0.gemfile
120
127
  - lib/nexus_semantic_logger.rb
121
128
  - lib/nexus_semantic_logger/appender_filter.rb
122
129
  - lib/nexus_semantic_logger/application.rb
@@ -130,8 +137,10 @@ files:
130
137
  - lib/puma/plugin/README.md
131
138
  - lib/puma/plugin/nexus_puma_statsd.rb
132
139
  - nexus_semantic_logger.gemspec
140
+ homepage:
133
141
  licenses: []
134
142
  metadata: {}
143
+ post_install_message:
135
144
  rdoc_options: []
136
145
  require_paths:
137
146
  - lib
@@ -146,7 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
155
  - !ruby/object:Gem::Version
147
156
  version: '0'
148
157
  requirements: []
149
- rubygems_version: 4.0.3
158
+ rubygems_version: 3.4.10
159
+ signing_key:
150
160
  specification_version: 4
151
161
  summary: semantic_logger usage for nexus
152
162
  test_files: []
data/.gitlab-ci.yml DELETED
@@ -1,36 +0,0 @@
1
- image: "ruby:3.2.2"
2
-
3
- stages:
4
- - release
5
- - test
6
-
7
- before_script:
8
- - gem install bundler --no-document
9
- - bundle install --jobs $(nproc) "${FLAGS[@]}"
10
-
11
- rspec:
12
- script:
13
- - bundle exec rspec
14
-
15
- rubocop:
16
- script:
17
- - bundle exec rubocop
18
-
19
- release:
20
- stage: release
21
- rules:
22
- - if: '$CI_COMMIT_TAG'
23
- script:
24
- - mkdir -p ~/.gem
25
- - cp $RUBYGEMS_CREDENTIALS ~/.gem/credentials
26
- - chmod 0600 ~/.gem/credentials
27
- - gem update --system
28
- - ruby --version
29
- - gem env version
30
- - sed -i "s/0.0.0/$CI_COMMIT_TAG/g" lib/nexus_semantic_logger/version.rb
31
- - gem build nexus_semantic_logger.gemspec
32
- - gem push nexus_semantic_logger*.gem
33
- artifacts:
34
- paths:
35
- - nexus_semantic_logger*.gem
36
- expire_in: 30 days