File tree Expand file tree Collapse file tree 5 files changed +24
-15
lines changed
Expand file tree Collapse file tree 5 files changed +24
-15
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,11 @@ jobs:
134134 cd docs && pnpm test
135135
136136 pilot :
137- name : ' Pilot Test: Ruby 3.4 / Rails 8.0 '
137+ name : ' Pilot Test: Ruby 3.4.7 / Rails 8.1.1 '
138138 runs-on : ubuntu-22.04
139139 env :
140- RAILS_VERSION : ' 8.0 .1'
141- RUBY_VERSION : ' 3.4'
140+ RAILS_VERSION : ' 8.1 .1'
141+ RUBY_VERSION : ' 3.4.7 '
142142 CI : ' true'
143143 BUNDLE_WITHOUT : ' development'
144144 steps :
@@ -148,10 +148,10 @@ jobs:
148148 - name : Remove Gemfile.lock for variable Ruby/Rails versions
149149 run : rm -f Gemfile.lock
150150
151- - name : Setup Ruby 3.4
151+ - name : Setup Ruby 3.4.7
152152 uses : ruby/setup-ruby@v1
153153 with :
154- ruby-version : ' 3.4'
154+ ruby-version : ' 3.4.7 '
155155 bundler-cache : true
156156
157157 # Coverage: /coverage
@@ -166,7 +166,7 @@ jobs:
166166 uses : actions/upload-artifact@v4
167167 if : success()
168168 with :
169- name : raw-coverage-ruby3.4-rails8.0
169+ name : raw-coverage-ruby3.4.7 -rails8.1.1
170170 path : |
171171 coverage
172172 coverage_rails
@@ -185,7 +185,7 @@ jobs:
185185 uses : actions/upload-artifact@v4
186186 if : success()
187187 with :
188- name : coverage-ruby3.4-rails8.0
188+ name : coverage-ruby3.4.7 -rails8.1.1
189189 path : |
190190 docs/public/coverage/
191191 retention-days : 5
@@ -206,9 +206,8 @@ jobs:
206206 ruby : ' 3.4'
207207 rails : ' 7.2.2.1'
208208
209- - name : ' Ruby 3.4.5 / Rails 8.1.0.beta1'
210- ruby : ' 3.4.5'
211- rails : ' 8.1.0.beta1'
209+ # NOTE: Latest Ruby/Rails is tested in the 'pilot' job above
210+ # (runs first to fail fast before running the full matrix)
212211
213212 env :
214213 RAILS_VERSION : ${{ matrix.rails }}
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88### Changed
99
10+ ## [ 0.1.7] - 2025-12-06
11+
12+ - ** Fix** : Puma server detection now uses ` $PROGRAM_NAME ` instead of checking ` defined?(::Puma::Server) ` which was unreliable
13+ - ** Fix** : Test isolation for ` server_mode ` state in configuration tests
14+ - ** CI** : Updated to Ruby 3.4.7 and Rails 8.1.1
15+
1016## [ 0.1.6] - 2025-11-30
1117
1218- Rename ` PROVIDER_PUSH_TOKEN ` secret to ` TF_PROVIDER_GITHUB_TOKEN `
Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- logstruct (0.1.6 )
4+ logstruct (0.1.7 )
55 lograge (>= 0.11 )
66 rails (>= 7.1 )
77 semantic_logger (~> 4.15 )
Original file line number Diff line number Diff line change 22# frozen_string_literal: true
33
44module LogStruct
5- VERSION = "0.1.6 "
5+ VERSION = "0.1.7 "
66end
Original file line number Diff line number Diff line change @@ -303,13 +303,15 @@ def test_enabled_regardless_of_ci_value
303303
304304 def test_disabled_for_rake_tasks_in_production
305305 original_server_mode = LogStruct . server_mode?
306+ had_rails_server = defined? ( ::Rails ::Server )
307+
308+ # Reset all server detection state (might be set by other tests)
309+ LogStruct . server_mode = false
310+ ::Rails . send ( :remove_const , :Server ) if defined? ( ::Rails ::Server )
306311
307312 LogStruct . config . enabled = false
308313 LogStruct . config . enabled_environments = [ :production ]
309314
310- # Ensure server_mode is false (might be set by other tests)
311- LogStruct . server_mode = false
312-
313315 # No Rails::Server, no Rails::Console, not test env - this simulates a rake task
314316 Rails . stub ( :env , ActiveSupport ::StringInquirer . new ( "production" ) ) do
315317 LogStruct . set_enabled_from_rails_env!
@@ -318,6 +320,8 @@ def test_disabled_for_rake_tasks_in_production
318320 end
319321 ensure
320322 LogStruct . server_mode = T . must ( original_server_mode )
323+ # Restore Rails::Server if it was defined before
324+ ::Rails . const_set ( :Server , Class . new ) if had_rails_server && !defined? ( ::Rails ::Server )
321325 end
322326
323327 def test_logstruct_enabled_overrides_all_logic
You can’t perform that action at this time.
0 commit comments