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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d8e9452c5073ac195044198c1b7c4739ddf69e0c506b362c401b99e29f71642
4
- data.tar.gz: b628ae3f08f08c4493cf053ce6a1b258b0671ae81260e625f13adc2fe289552f
3
+ metadata.gz: 943a3c5168c3a1e773460e1e232cd6e396beb4edaf7c360ebaf4c65143f70b4c
4
+ data.tar.gz: 55b4abc4b82626dee543269b59078387da579f3f6fe2579c090e98d7e97a05dc
5
5
  SHA512:
6
- metadata.gz: aa6ed0e298e9f4ee972d30bdb378c119c691ba9c291c6ceb9fec2b2e6476c931c63042ee88f968d2d1c519d243f6a23196e9ce7f679840e9c01897db30987281
7
- data.tar.gz: 60000766f699c5002bfb069db4ad4324ca8ae9775133bf9cfc3aef53cea0316bba227dd43c1c125773108dfc7e6b15a41e25abd07ea169877cf296a9e186f625
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`.
@@ -49,12 +49,6 @@ module Falcon
49
49
  authority: authority
50
50
  )
51
51
  end
52
-
53
- # Number of instances to start.
54
- # @returns [Integer | nil]
55
- def count
56
- nil
57
- end
58
52
  end
59
53
  end
60
54
  end
@@ -11,7 +11,7 @@ module Falcon
11
11
  # Provides an environment for hosting loading a Rackup `config.ru` file.
12
12
  module Rackup
13
13
  def rackup_path
14
- 'config.ru'
14
+ File.expand_path('config.ru', root)
15
15
  end
16
16
 
17
17
  def rack_app
@@ -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.
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2024, by Samuel Williams.
5
5
 
6
6
  module Falcon
7
- VERSION = "0.45.0"
7
+ VERSION = "0.45.2"
8
8
  end
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.0
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-03 00:00:00.000000000 Z
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.0
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.0
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