rack-timeout 0.6.2 → 0.6.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: 7ac8b47bad2c4aaa8d936de9800e7cbb1d7bbd99d7012f6117064d7acb226429
4
- data.tar.gz: 0d16e6ed88a7842efe2f4c37595b9c4b5d5b569a719c4bd4f0d3538df65f3e01
3
+ metadata.gz: 9227dd3e15be49573b85cff836c363d2046d91167d7a3f5731f7002550912beb
4
+ data.tar.gz: 5454236eff00e74096e5d6818ff80fc0663d12d3f52848847e5fefb02d5110cd
5
5
  SHA512:
6
- metadata.gz: 4b4f92744d9936f887d82ab6e4c72c1e815165daef56638a1795c2e42ef5affec74d1d301002863e842f951c37e0b8c98c0867a9a159bc196309dd2e841cc0ce
7
- data.tar.gz: 8cf6bbf98f334dbeb312735961d271cfb5377d9683aa26aa03e1b8eda15a53d165ce931e16131fa4e34958a23e1d6e5ac54985296fe5e566e70ad41e2f4e51d9
6
+ metadata.gz: fdb616f8274f70fffc7a0aef4c4ffc8bcadba8fd0968a58980e2027c3b7131aebf34f49c5d8cf7f69d871deccb27785dc671524501b7021a5f152314a62a4309
7
+ data.tar.gz: 0ce8bf83eb28973c064a56da114c32276dcc5961a5a761f46850c0e48d39170361f1dcb6ac483e1284bf703c819ba6c84a8b2c6329a207b03266b558e37b87d0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## HEAD (unreleased)
2
2
 
3
+ ## 0.6.3
4
+
5
+ - Fix `NoMethodError: undefined method 'logger' for Rails:Module` when Rails is defined as a Module, but is not a full Rails app (https://github.com/zombocom/rack-timeout/pull/180)
3
6
 
4
7
  ## 0.6.2
5
8
 
@@ -32,7 +32,7 @@ class Rack::Timeout::StateChangeLoggingObserver
32
32
 
33
33
  def logger(env = nil)
34
34
  @logger ||
35
- (defined?(::Rails) && ::Rails.logger) ||
35
+ (defined?(::Rails) && ::Rails.respond_to?(:logger) && ::Rails.logger) ||
36
36
  (env && !env["rack.logger"].is_a?(::Rack::NullLogger) && env["rack.logger"]) ||
37
37
  (env && env["rack.errors"] && self.class.mk_logger(env["rack.errors"])) ||
38
38
  (@fallback_logger ||= self.class.mk_logger($stderr))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-timeout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caio Chassot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-07 00:00:00.000000000 Z
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -91,8 +91,8 @@ licenses:
91
91
  - MIT
92
92
  metadata:
93
93
  bug_tracker_uri: https://github.com/zombocom/rack-timeout/issues
94
- changelog_uri: https://github.com/zombocom/rack-timeout/blob/v0.6.2/CHANGELOG.md
95
- documentation_uri: https://rubydoc.info/gems/rack-timeout/0.6.2/
94
+ changelog_uri: https://github.com/zombocom/rack-timeout/blob/v0.6.3/CHANGELOG.md
95
+ documentation_uri: https://rubydoc.info/gems/rack-timeout/0.6.3/
96
96
  source_code_uri: https://github.com/zombocom/rack-timeout
97
97
  post_install_message:
98
98
  rdoc_options: []