falcon 0.36.5 → 0.36.6

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: f5f107eaf9cd170b5a399f5ad13222504f99e061292be94aab8720b7efa70c8b
4
- data.tar.gz: 9787ecd87ba56f416b24abb02f55f16f7c3de3f3c89090c7724c63030995d8f7
3
+ metadata.gz: 6300b3661cb95b9f40b96380bcaf3a54044aade0eb8724b731189b0b95107269
4
+ data.tar.gz: de4feb2c8182fb7024b17b2751d9f714b9fc77dd9f7854396ffd40ca648f8abe
5
5
  SHA512:
6
- metadata.gz: '034873da8c3ca3e809bc3144879ab46521b63d279fc3622501b0ab6348d24a36428fa5d6285455091d8eb542ad5ae39b4b42a594efb6052b5b4632aed75d103b'
7
- data.tar.gz: b7e68e1c275ee07ee752228ad04a90ea0da0a658f467030a4e849fc3c0661f78f706ea4243460da12cfe2e7610233d59c5ff0d91f0b5092e767d3f452f372567
6
+ metadata.gz: 6293dd69ca2c6d87752027af2145b225e4ce17e5e86d8c4dab81478dad4b301d75d9f3ffd14245c1123fab944e7e46a0eb83757b761022187f0746e94663d340
7
+ data.tar.gz: f10f396da26dd4108623da29dbf7673887bf2b74c2c708c58de05a5dbcda0df61b5e0fabd24ba2e0a5acaff2fb65d0fd666fa8806b847049cb5a1078768ec1d3
@@ -175,8 +175,8 @@ module Falcon
175
175
  RACK_URL_SCHEME => request.scheme,
176
176
 
177
177
  # I'm not sure what sane defaults should be here:
178
- SERVER_NAME => server_name || '',
179
- SERVER_PORT => server_port || '',
178
+ SERVER_NAME => server_name,
179
+ SERVER_PORT => server_port,
180
180
 
181
181
  # We support both request and response hijack.
182
182
  RACK_IS_HIJACK => true,
@@ -65,4 +65,8 @@ environment(:application) do
65
65
  # The service class to use for the application.
66
66
  # @attribute [Class]
67
67
  service ::Falcon::Service::Application
68
- end
68
+
69
+ # Number of instances to start.
70
+ # @attribute [Integer | nil]
71
+ count nil
72
+ end
@@ -42,6 +42,12 @@ module Falcon
42
42
  @environment.evaluator.middleware
43
43
  end
44
44
 
45
+ # Number of instances to start.
46
+ # @returns [Integer | nil]
47
+ def count
48
+ @environment.evaluator.count
49
+ end
50
+
45
51
  # Preload any resources specified by the environment.
46
52
  def preload!
47
53
  if scripts = @evaluator.preload
@@ -73,7 +79,14 @@ module Falcon
73
79
  protocol = self.protocol
74
80
  scheme = self.scheme
75
81
 
76
- container.run(name: self.name, restart: true) do |instance|
82
+ run_options = {
83
+ name: self.name,
84
+ restart: true,
85
+ }
86
+
87
+ run_options[:count] = count unless count.nil?
88
+
89
+ container.run(**run_options) do |instance|
77
90
  Async(logger: logger) do |task|
78
91
  Async.logger.info(self) {"Starting application server for #{self.root}..."}
79
92
 
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Falcon
24
- VERSION = "0.36.5"
24
+ VERSION = "0.36.6"
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.5
4
+ version: 0.36.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-18 00:00:00.000000000 Z
11
+ date: 2020-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.13'
27
27
  - !ruby/object:Gem::Dependency
28
- name: async-io
28
+ name: async-container
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.22'
33
+ version: 0.16.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.22'
40
+ version: 0.16.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: async-http
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -67,47 +67,47 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.2.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: async-container
70
+ name: async-io
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.16.0
75
+ version: '1.22'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.16.0
82
+ version: '1.22'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rack
84
+ name: build-environment
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.0'
89
+ version: '1.13'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.0'
96
+ version: '1.13'
97
97
  - !ruby/object:Gem::Dependency
98
- name: samovar
98
+ name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '2.1'
103
+ version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '2.1'
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: localhost
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -123,91 +123,91 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.1'
125
125
  - !ruby/object:Gem::Dependency
126
- name: build-environment
126
+ name: process-metrics
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '1.13'
131
+ version: 0.2.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '1.13'
138
+ version: 0.2.0
139
139
  - !ruby/object:Gem::Dependency
140
- name: process-metrics
140
+ name: rack
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 0.2.0
145
+ version: '1.0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 0.2.0
152
+ version: '1.0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: async-rspec
154
+ name: samovar
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '1.7'
160
- type: :development
159
+ version: '2.1'
160
+ type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '1.7'
166
+ version: '2.1'
167
167
  - !ruby/object:Gem::Dependency
168
- name: async-websocket
168
+ name: async-process
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.14.0
173
+ version: '1.1'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.14.0
180
+ version: '1.1'
181
181
  - !ruby/object:Gem::Dependency
182
- name: async-process
182
+ name: async-rspec
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '1.1'
187
+ version: '1.7'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '1.1'
194
+ version: '1.7'
195
195
  - !ruby/object:Gem::Dependency
196
- name: bake
196
+ name: async-websocket
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ">="
199
+ - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: '0'
201
+ version: 0.14.0
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ">="
206
+ - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: '0'
208
+ version: 0.14.0
209
209
  - !ruby/object:Gem::Dependency
210
- name: covered
210
+ name: bake
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - ">="
@@ -221,7 +221,7 @@ dependencies:
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  - !ruby/object:Gem::Dependency
224
- name: bundler
224
+ name: covered
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="
@@ -250,7 +250,6 @@ dependencies:
250
250
  version: '3.6'
251
251
  description:
252
252
  email:
253
- - samuel.williams@oriontransfer.co.nz
254
253
  executables:
255
254
  - falcon
256
255
  - falcon-host
@@ -306,7 +305,8 @@ files:
306
305
  - lib/falcon/version.rb
307
306
  - lib/rack/handler/falcon.rb
308
307
  homepage: https://github.com/socketry/falcon
309
- licenses: []
308
+ licenses:
309
+ - MIT
310
310
  metadata: {}
311
311
  post_install_message:
312
312
  rdoc_options: []
@@ -314,7 +314,7 @@ require_paths:
314
314
  - lib
315
315
  required_ruby_version: !ruby/object:Gem::Requirement
316
316
  requirements:
317
- - - "~>"
317
+ - - ">="
318
318
  - !ruby/object:Gem::Version
319
319
  version: '2.5'
320
320
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -323,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
323
323
  - !ruby/object:Gem::Version
324
324
  version: '0'
325
325
  requirements: []
326
- rubygems_version: 3.1.2
326
+ rubygems_version: 3.0.3
327
327
  signing_key:
328
328
  specification_version: 4
329
329
  summary: A fast, asynchronous, rack-compatible web server.