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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/safe_request_timeout/railtie.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbccca2d8cafb0a29944f3ee6e944d4a4f79895bc79120671df4065e77d597cb
|
4
|
+
data.tar.gz: 3d37091f3793ab8c4c3cd2a34a722da5efb2e6984d6c01cfd547cdfbffc91826
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|