falcon 0.45.0 → 0.45.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: 1d8e9452c5073ac195044198c1b7c4739ddf69e0c506b362c401b99e29f71642
4
- data.tar.gz: b628ae3f08f08c4493cf053ce6a1b258b0671ae81260e625f13adc2fe289552f
3
+ metadata.gz: 3efd7928dffa871fcd8d93cea1d6204cfb7c4257c80a13710fa512e0f323fa09
4
+ data.tar.gz: 2d8b8ef2ea60c23c07063c23eda943a1824ed6364a41281db4aa4d2e0618e870
5
5
  SHA512:
6
- metadata.gz: aa6ed0e298e9f4ee972d30bdb378c119c691ba9c291c6ceb9fec2b2e6476c931c63042ee88f968d2d1c519d243f6a23196e9ce7f679840e9c01897db30987281
7
- data.tar.gz: 60000766f699c5002bfb069db4ad4324ca8ae9775133bf9cfc3aef53cea0316bba227dd43c1c125773108dfc7e6b15a41e25abd07ea169877cf296a9e186f625
6
+ metadata.gz: 591a661365d8a3bde35a9d7639bbd224a355e73fc6ec1731f7a3a70ec9bf2fa016a1e675d1a6690a28c3f157a08a924c19b2b23e00edf8a03ada546eb40643cb
7
+ data.tar.gz: 979aeccb4afda11563b1aa2932d5d7683a487971a319dc537b7c1b7f521de3d6b2a87395ff39c0dd627bfbbabf973e795394551e259dc935ae1d4bba12d61ddd
checksums.yaml.gz.sig CHANGED
@@ -1 +1,2 @@
1
- g��Ѧ=�dٚ?0A��i��o��U��r�� ��:��ơ"G)4v�x����W49�JJ]j7�������
1
+ at1�K;ڪ�1�*�)9A���HA��~���������+RMS�.�_/S}�*�L��Q:����>�q����\
2
+ l����Y���T5���ß�a9z�=짝y\E��ܑ��hq���=1�;�17:��8f�ך�f�O��Ǟ1���v(�z��_{� ������JÁ�%kIԶ3Ԥ_@v(A1<#wCt�*�Xj3U2���oq*>�������ᑄ�Nr\�� �8n���A�e�bM�U���o|�1���Wx�8O#b+
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.1"
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file