falcon 0.47.5 → 0.47.7
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/lib/falcon/command/paths.rb +6 -4
- data/lib/falcon/command/proxy.rb +1 -1
- data/lib/falcon/command/redirect.rb +1 -1
- data/lib/falcon/command/virtual.rb +2 -0
- data/lib/falcon/environment/configured.rb +7 -3
- data/lib/falcon/rackup/handler.rb +5 -0
- data/lib/falcon/version.rb +1 -1
- data/lib/falcon.rb +1 -0
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: 73fd9cdd0487e158c35151aae57790af29fc451f32b89c0e3409ff9cba3f38c0
|
4
|
+
data.tar.gz: 603c9ce305ffbda9868d4484102fbbc26476390784284b80314a07b298644cc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8386c8cf98fb7f77dedf328efcb596134a6cabb51e28db0b11e162b81281ff58c2a62e26a2beeca29fdd35f833042df5289e946da23c942a352d81bcd29d2381
|
7
|
+
data.tar.gz: bc828474bc5049ecdb557d670af7d1165bc9c2a9d5eb5ca14c05de603050df43bdae3538afa188a674808eccdf527013306d193e20a66e5ea879688d687e8385
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/falcon/command/paths.rb
CHANGED
@@ -12,16 +12,18 @@ module Falcon
|
|
12
12
|
# Resolve a set of `@paths` that may contain wildcards, into a sorted, unique array.
|
13
13
|
# @returns [Array(String)]
|
14
14
|
def resolved_paths(&block)
|
15
|
-
@paths
|
16
|
-
|
17
|
-
|
15
|
+
if @paths
|
16
|
+
@paths.collect do |path|
|
17
|
+
Dir.glob(path)
|
18
|
+
end.flatten.sort.uniq.each(&block)
|
19
|
+
end
|
18
20
|
end
|
19
21
|
|
20
22
|
# Build a configuration based on the resolved paths.
|
21
23
|
def configuration
|
22
24
|
configuration = Configuration.new
|
23
25
|
|
24
|
-
self.resolved_paths
|
26
|
+
self.resolved_paths do |path|
|
25
27
|
path = File.expand_path(path)
|
26
28
|
|
27
29
|
configuration.load_file(path)
|
data/lib/falcon/command/proxy.rb
CHANGED
@@ -56,7 +56,7 @@ module Falcon
|
|
56
56
|
buffer.puts "- To terminate: Ctrl-C or kill #{Process.pid}"
|
57
57
|
buffer.puts "- To reload: kill -HUP #{Process.pid}"
|
58
58
|
|
59
|
-
self.resolved_paths
|
59
|
+
self.resolved_paths do |path|
|
60
60
|
buffer.puts "- Loading configuration from #{path}"
|
61
61
|
end
|
62
62
|
end
|
@@ -55,7 +55,7 @@ module Falcon
|
|
55
55
|
buffer.puts "- To terminate: Ctrl-C or kill #{Process.pid}"
|
56
56
|
buffer.puts "- To reload: kill -HUP #{Process.pid}"
|
57
57
|
|
58
|
-
self.resolved_paths
|
58
|
+
self.resolved_paths do |path|
|
59
59
|
buffer.puts "- Loading configuration from #{path}"
|
60
60
|
end
|
61
61
|
end
|
@@ -16,9 +16,13 @@ module Falcon
|
|
16
16
|
|
17
17
|
# All the falcon application configuration paths, with wildcards expanded.
|
18
18
|
def resolved_configuration_paths
|
19
|
-
configuration_paths
|
20
|
-
|
21
|
-
|
19
|
+
if configuration_paths = self.configuration_paths
|
20
|
+
configuration_paths.flat_map do |path|
|
21
|
+
Dir.glob(path)
|
22
|
+
end.uniq
|
23
|
+
else
|
24
|
+
[]
|
25
|
+
end
|
22
26
|
end
|
23
27
|
|
24
28
|
def configuration
|
@@ -17,6 +17,11 @@ module Falcon
|
|
17
17
|
# The default scheme.
|
18
18
|
SCHEME = "http"
|
19
19
|
|
20
|
+
# The name of the handler.
|
21
|
+
def self.to_s
|
22
|
+
"Falcon v#{Falcon::VERSION}"
|
23
|
+
end
|
24
|
+
|
20
25
|
# Generate an endpoint for the given `rackup` options.
|
21
26
|
# @returns [::IO::Endpoint::HostEndpoint]
|
22
27
|
def self.endpoint_for(**options)
|
data/lib/falcon/version.rb
CHANGED
data/lib/falcon.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.47.
|
4
|
+
version: 0.47.7
|
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-
|
60
|
+
date: 2024-06-20 00:00:00.000000000 Z
|
61
61
|
dependencies:
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: async
|
@@ -293,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
293
|
- !ruby/object:Gem::Version
|
294
294
|
version: '0'
|
295
295
|
requirements: []
|
296
|
-
rubygems_version: 3.5.
|
296
|
+
rubygems_version: 3.5.11
|
297
297
|
signing_key:
|
298
298
|
specification_version: 4
|
299
299
|
summary: A fast, asynchronous, rack-compatible web server.
|
metadata.gz.sig
CHANGED
Binary file
|