falcon 0.45.0 → 0.45.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/changes.md +2 -0
- data/lib/falcon/environment/application.rb +0 -6
- data/lib/falcon/environment/rackup.rb +1 -1
- data/lib/falcon/environment/server.rb +7 -1
- data/lib/falcon/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 943a3c5168c3a1e773460e1e232cd6e396beb4edaf7c360ebaf4c65143f70b4c
|
4
|
+
data.tar.gz: 55b4abc4b82626dee543269b59078387da579f3f6fe2579c090e98d7e97a05dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 518a5b30ffa113e111ee6bf73425082821c0f17fa44403347997f52bdd7d2d43ce7b2540c258f851583e38f31b1b7bbe72b0fd288925b08702864c4389e85776
|
7
|
+
data.tar.gz: 1254239dc786188637248738803afc22a32a51b23e3eccd712000c00debca98a76380f71863cf29024379969855259b0ca24670e7c6a40c0f7582d21216d7bea
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/changes.md
CHANGED
@@ -8,6 +8,8 @@ During the `v0.44.0` release cycle, the workflows for testing older rack release
|
|
8
8
|
|
9
9
|
Specifically, `protocol-rack` now provides `Protocol::Rack::Adapter.parse_file` to load Rack applications. Rack 2's `Rack::Builder.parse_file` returns both the application and a set of options (multi-value return). Rack 3 changed this to only return the application, as the prior multi-value return was confusing at best. This change allows `protocol-rack` to work with both versions of rack, and `falcon` adopts that interface.
|
10
10
|
|
11
|
+
## Falcon Serve Options
|
12
|
+
|
11
13
|
In addition, `falcon serve` provides two new options:
|
12
14
|
|
13
15
|
1. `--[no]-restart` which controls what happens when `async-container` instances crash. By default, `falcon serve` will restart the container when it crashes. This can be disabled with `--no-restart`.
|
@@ -25,9 +25,15 @@ module Falcon
|
|
25
25
|
self.name
|
26
26
|
end
|
27
27
|
|
28
|
+
# Number of instances to start. By default (when nil), uses `Etc.nprocessors`.
|
29
|
+
# @returns [Integer | nil]
|
30
|
+
def count
|
31
|
+
nil
|
32
|
+
end
|
33
|
+
|
28
34
|
# Options to use when creating the container.
|
29
35
|
def container_options
|
30
|
-
{restart: true}
|
36
|
+
{restart: true, count: self.count}.compact
|
31
37
|
end
|
32
38
|
|
33
39
|
# The host that this server will receive connections for.
|
data/lib/falcon/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: falcon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.45.
|
4
|
+
version: 0.45.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -57,7 +57,7 @@ cert_chain:
|
|
57
57
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
58
58
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
59
59
|
-----END CERTIFICATE-----
|
60
|
-
date: 2024-04-
|
60
|
+
date: 2024-04-07 00:00:00.000000000 Z
|
61
61
|
dependencies:
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: async
|
@@ -135,14 +135,14 @@ dependencies:
|
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.10
|
138
|
+
version: '0.10'
|
139
139
|
type: :runtime
|
140
140
|
prerelease: false
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.10
|
145
|
+
version: '0.10'
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: bundler
|
148
148
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|