falcon 0.47.5 → 0.47.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: a15287f4ce470c1fc99c68555a58925991d7afcbd2ba41b4933d876e0136f548
|
|
4
|
+
data.tar.gz: 303fbf04b846d2c01d3b813c4428082bb7084b05e4f74895fcf13e0ad3022774
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aef539d00f3c6f5de3c81bb558880cd5676105e637f1578b33610a5d129130760d677a07de086d5fa8b64bfcaaacfac4fe157bd0e9ced119db368211524f2ed3
|
|
7
|
+
data.tar.gz: 89157fdf806f6614e4227e1278aa58160a21de809c0b6041ce41b0d0047bf8a8f4dac3d6d881a6bf08c93d48e918b8f13a565048992c315c30f94741c53a3141
|
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
|
data/lib/falcon/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|