slowpoke 0.4.0 → 0.6.0
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 +4 -4
- data/CHANGELOG.md +40 -2
- data/LICENSE.txt +1 -1
- data/README.md +3 -28
- data/lib/slowpoke/version.rb +1 -1
- data/lib/slowpoke.rb +4 -4
- metadata +8 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7db97cc38b9a3d1edbd3254cc8d615b7b9415232862c9ca486eb5e4663c0f0b
|
4
|
+
data.tar.gz: 88a3dffccba9ebfa79d5c30d5eb9c0ebf297ff1b5dc1acb19300272dd6b74a35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e1b4dc76819ae7a0c570ae9a18d271dcb803965ba5c2fdcf79c445a0e006d275b1b9bdf7b317b591ef22dd13530d3e1b6e6937cf12b5821422e5be3f5f4a63b
|
7
|
+
data.tar.gz: f5ab6c527213fa6bfa6a578b7a340e115d22994a1827fbfff1fa118f433e477294f7bedd363babc39bdc39809cbbb25b3b00580f3934d64f20819950e5738324
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,13 @@
|
|
1
|
-
## 0.
|
1
|
+
## 0.6.0 (2025-02-01)
|
2
|
+
|
3
|
+
- Dropped support for Ruby < 3.1 and Rails < 7
|
4
|
+
|
5
|
+
## 0.5.0 (2023-07-02)
|
6
|
+
|
7
|
+
- Dropped support for rack-timeout < 0.6
|
8
|
+
- Dropped support for Ruby < 3 and Rails < 6.1
|
9
|
+
|
10
|
+
## 0.4.0 (2022-01-10)
|
2
11
|
|
3
12
|
- Dropped support for Ruby < 2.6 and Rails < 5.2
|
4
13
|
|
@@ -31,7 +40,7 @@
|
|
31
40
|
## 0.1.3 (2016-08-03)
|
32
41
|
|
33
42
|
- Fixed deprecation warning in Rails 5
|
34
|
-
- No longer requires
|
43
|
+
- No longer requires Active Record
|
35
44
|
|
36
45
|
## 0.1.2 (2016-02-10)
|
37
46
|
|
@@ -41,3 +50,32 @@
|
|
41
50
|
|
42
51
|
- Fixed safer service timeouts
|
43
52
|
- Added migration statement timeout
|
53
|
+
|
54
|
+
## 0.1.0 (2015-06-24)
|
55
|
+
|
56
|
+
- Prevent `RequestExpiryError` from killing web server
|
57
|
+
- Removed database timeouts
|
58
|
+
|
59
|
+
## 0.0.6 (2015-03-15)
|
60
|
+
|
61
|
+
- Switched to `safely_block` gem
|
62
|
+
|
63
|
+
## 0.0.5 (2015-03-04)
|
64
|
+
|
65
|
+
- Fixed error when Postgres is not used
|
66
|
+
|
67
|
+
## 0.0.4 (2014-10-31)
|
68
|
+
|
69
|
+
- Added `REQUEST_TIMEOUT` and `DATABASE_TIMEOUT` variables
|
70
|
+
|
71
|
+
## 0.0.3 (2014-10-22)
|
72
|
+
|
73
|
+
- Improved handling of timeouts
|
74
|
+
|
75
|
+
## 0.0.2 (2014-10-22)
|
76
|
+
|
77
|
+
- Added process protection
|
78
|
+
|
79
|
+
## 0.0.1 (2014-10-21)
|
80
|
+
|
81
|
+
- First release
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
- dynamic timeouts
|
7
7
|
- custom error pages
|
8
8
|
|
9
|
+
[](https://github.com/ankane/slowpoke/actions)
|
10
|
+
|
9
11
|
## Installation
|
10
12
|
|
11
13
|
Add this line to your application’s Gemfile:
|
@@ -102,34 +104,6 @@ production:
|
|
102
104
|
statement_timeout: 5s
|
103
105
|
```
|
104
106
|
|
105
|
-
## Upgrading
|
106
|
-
|
107
|
-
### 0.3.0
|
108
|
-
|
109
|
-
If you set the timeout with:
|
110
|
-
|
111
|
-
```ruby
|
112
|
-
Slowpoke.timeout = 5
|
113
|
-
```
|
114
|
-
|
115
|
-
Remove it and add to `config/environments/production.rb`:
|
116
|
-
|
117
|
-
```ruby
|
118
|
-
config.slowpoke.timeout = 5
|
119
|
-
```
|
120
|
-
|
121
|
-
If you use migration timeouts, check out [this guide](https://github.com/ankane/the-ultimate-guide-to-ruby-timeouts/#statement-timeouts-1) for how to configure them directly in `config/database.yml`.
|
122
|
-
|
123
|
-
### 0.1.0
|
124
|
-
|
125
|
-
`0.1.0` removes database timeouts, since Rails supports them by default. To restore the previous behavior, use:
|
126
|
-
|
127
|
-
```yaml
|
128
|
-
production:
|
129
|
-
variables:
|
130
|
-
statement_timeout: <%= Slowpoke.timeout * 1000 %>
|
131
|
-
```
|
132
|
-
|
133
107
|
## History
|
134
108
|
|
135
109
|
View the [changelog](https://github.com/ankane/slowpoke/blob/master/CHANGELOG.md)
|
@@ -149,4 +123,5 @@ To get started with development:
|
|
149
123
|
git clone https://github.com/ankane/slowpoke.git
|
150
124
|
cd slowpoke
|
151
125
|
bundle install
|
126
|
+
bundle exec rake test
|
152
127
|
```
|
data/lib/slowpoke/version.rb
CHANGED
data/lib/slowpoke.rb
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
require "rack/timeout/base"
|
3
3
|
|
4
4
|
# modules
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
require_relative "slowpoke/middleware"
|
6
|
+
require_relative "slowpoke/railtie"
|
7
|
+
require_relative "slowpoke/timeout"
|
8
|
+
require_relative "slowpoke/version"
|
9
9
|
|
10
10
|
module Slowpoke
|
11
11
|
ENV_KEY = "slowpoke.timed_out".freeze
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slowpoke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-01 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: railties
|
@@ -16,14 +15,14 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
18
|
+
version: '7'
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - ">="
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
25
|
+
version: '7'
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
27
|
name: actionpack
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,15 +43,14 @@ dependencies:
|
|
44
43
|
requirements:
|
45
44
|
- - ">="
|
46
45
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
46
|
+
version: '0.6'
|
48
47
|
type: :runtime
|
49
48
|
prerelease: false
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
51
|
- - ">="
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
55
|
-
description:
|
53
|
+
version: '0.6'
|
56
54
|
email: andrew@ankane.org
|
57
55
|
executables: []
|
58
56
|
extensions: []
|
@@ -72,7 +70,6 @@ homepage: https://github.com/ankane/slowpoke
|
|
72
70
|
licenses:
|
73
71
|
- MIT
|
74
72
|
metadata: {}
|
75
|
-
post_install_message:
|
76
73
|
rdoc_options: []
|
77
74
|
require_paths:
|
78
75
|
- lib
|
@@ -80,15 +77,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
77
|
requirements:
|
81
78
|
- - ">="
|
82
79
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
80
|
+
version: '3.1'
|
84
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
82
|
requirements:
|
86
83
|
- - ">="
|
87
84
|
- !ruby/object:Gem::Version
|
88
85
|
version: '0'
|
89
86
|
requirements: []
|
90
|
-
rubygems_version: 3.
|
91
|
-
signing_key:
|
87
|
+
rubygems_version: 3.6.2
|
92
88
|
specification_version: 4
|
93
89
|
summary: Rack::Timeout enhancements for Rails
|
94
90
|
test_files: []
|