falcon 0.47.4 → 0.47.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: 66c929396dfe5f414b795d6a5a137fea6996975fbf7c2332627cbc801703c7e9
4
- data.tar.gz: fe40f4298c221df573c2d9bda0df94e5ca08d37edb33d1647f9ae86fe339c2b6
3
+ metadata.gz: a15287f4ce470c1fc99c68555a58925991d7afcbd2ba41b4933d876e0136f548
4
+ data.tar.gz: 303fbf04b846d2c01d3b813c4428082bb7084b05e4f74895fcf13e0ad3022774
5
5
  SHA512:
6
- metadata.gz: 1c1a19802cc4a817dd241f55881bd73a0a2182906a671a4358eb109a13abd0002a6aa42800c6d66825ed4fc4c555f64c2712515fd6cfcbb134fd300d31e87061
7
- data.tar.gz: 769341ca245aaed0de1d5af95c8e20d62af6c32569d8eb432b2d4178504f6d831da5d88f012293e086b14f01fe8ee0c4914abe91f79073a2544b2b43a68556b3
6
+ metadata.gz: aef539d00f3c6f5de3c81bb558880cd5676105e637f1578b33610a5d129130760d677a07de086d5fa8b64bfcaaacfac4fe157bd0e9ced119db368211524f2ed3
7
+ data.tar.gz: 89157fdf806f6614e4227e1278aa58160a21de809c0b6041ce41b0d0047bf8a8f4dac3d6d881a6bf08c93d48e918b8f13a565048992c315c30f94741c53a3141
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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.collect do |path|
16
- Dir.glob(path)
17
- end.flatten.sort.uniq.each(&block)
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.each do |path|
26
+ self.resolved_paths do |path|
25
27
  path = File.expand_path(path)
26
28
 
27
29
  configuration.load_file(path)
@@ -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.each do |path|
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.each do |path|
58
+ self.resolved_paths do |path|
59
59
  buffer.puts "- Loading configuration from #{path}"
60
60
  end
61
61
  end
@@ -3,6 +3,8 @@
3
3
  # Released under the MIT License.
4
4
  # Copyright, 2018-2024, by Samuel Williams.
5
5
 
6
+ require 'async/service'
7
+
6
8
  require_relative '../environment/virtual'
7
9
 
8
10
  require 'samovar'
@@ -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.flat_map do |path|
20
- Dir.glob(path)
21
- end.uniq
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
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2024, by Samuel Williams.
5
5
 
6
6
  module Falcon
7
- VERSION = "0.47.4"
7
+ VERSION = "0.47.6"
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.47.4
4
+ version: 0.47.6
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-05-08 00:00:00.000000000 Z
60
+ date: 2024-05-10 00:00:00.000000000 Z
61
61
  dependencies:
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: async
@@ -96,7 +96,7 @@ dependencies:
96
96
  version: '0.66'
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: 0.66.2
99
+ version: 0.66.3
100
100
  type: :runtime
101
101
  prerelease: false
102
102
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,7 +106,7 @@ dependencies:
106
106
  version: '0.66'
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 0.66.2
109
+ version: 0.66.3
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: async-http-cache
112
112
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file