safe_request_timeout 1.0.0 → 1.0.1

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: 742cdb842214b5b66fa2fb127c79005ce2b3072776c59a20564433a9f5e82a8c
4
- data.tar.gz: 592e4127ace138dadeabcf7e9dc5bbb129a20e8895e600a009e588249cea668f
3
+ metadata.gz: fbccca2d8cafb0a29944f3ee6e944d4a4f79895bc79120671df4065e77d597cb
4
+ data.tar.gz: 3d37091f3793ab8c4c3cd2a34a722da5efb2e6984d6c01cfd547cdfbffc91826
5
5
  SHA512:
6
- metadata.gz: 61be0a04e1f993c83dd520c151d7a76817be66eff64200898d336cfda5e70668c53a320462a5c161818e017ad17c6ab39c11fc2ceae1405c5ca1682eb511b17e
7
- data.tar.gz: bcf57aafa0db0db508283d5c6f49ec611a6b3366e19542a014015f731e623c3dfc1f9eda4b239661f24b673a9310887355a37dbed568489fe7961ebda8d108dc
6
+ metadata.gz: 743d14f604ffa3e57f5910bf00349bfd2e52d2d35f4f31200e08cdfaeca4643f6d35f1fef7f7445dfae9be0ec2004d4c921aea7ddeefcd3d66d8172122c832d8
7
+ data.tar.gz: 036b80f4093cfb0c244190051de15a91fd5b5574c76960060bfef31d04c30536ae209555192bdd8fad25c959e9388dff6b2bf01e4167b1125f82dea64c6fc33c
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 1.0.1
8
+
9
+ ### Fixed
10
+ - Handle case in Railtie where database connection not available.
11
+
7
12
  ## 1.0.0
8
13
 
9
14
  ### Added
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -9,7 +9,11 @@ module SafeRequestTimeout
9
9
  initializer "safe_request_timeout" do |app|
10
10
  if app.config.safe_request_timeout.active_record_hook
11
11
  ActiveSupport.on_load(:active_record) do
12
- SafeRequestTimeout::ActiveRecordHook.add_timeout!
12
+ begin
13
+ SafeRequestTimeout::ActiveRecordHook.add_timeout!
14
+ rescue ActiveRecord::ActiveRecordError => e
15
+ Rails.logger&.warn("Could not add ActiveRecord hook for SafeRequestTimeout: #{e.inspect}")
16
+ end
13
17
  end
14
18
  end
15
19
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safe_request_timeout
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Durand
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-30 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis