falcon 0.38.1 → 0.39.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/falcon/configuration.rb +14 -5
- data/lib/falcon/environments/host.rb +29 -0
- data/lib/falcon/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ce7e0eb1b344a280ee69a568921c091ba8aed45f8b5d1346e5b2e49ae971a14
|
4
|
+
data.tar.gz: dc90db0f936efb3ba745659a8ed0d705e6f80265ed93dcc110e0cdd5c5280548
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54ed9701c649a1764d030cdf3e31dca114606d53cd647b275c9b77164173406b6641fcb12c474eb57e3aa84bfe1655a53a4d844cf95f43a603065a27b437f466
|
7
|
+
data.tar.gz: 1fe32ec2dd8708014f285ef81119ce49c0d3bb0872f1a64be5e786c4c8fca365065f9e46b33ad7abb9ef76bc4d24514eb6188fc025233afa5548d9f56a4dd9e0
|
data/lib/falcon/configuration.rb
CHANGED
@@ -127,11 +127,20 @@ module Falcon
|
|
127
127
|
features.each do |feature|
|
128
128
|
next if @loaded.include?(feature)
|
129
129
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
130
|
+
case feature
|
131
|
+
when Symbol
|
132
|
+
relative_path = File.join(__dir__, "environments", "#{feature}.rb")
|
133
|
+
|
134
|
+
self.instance_eval(File.read(relative_path), relative_path)
|
135
|
+
|
136
|
+
@loaded[feature] = relative_path
|
137
|
+
when Module
|
138
|
+
feature.load(self)
|
139
|
+
|
140
|
+
@loaded[feature] = feature
|
141
|
+
else
|
142
|
+
raise LoadError, "Unsure about how to load #{feature}!"
|
143
|
+
end
|
135
144
|
end
|
136
145
|
end
|
137
146
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright, 2019, by Samuel G. D. Williams. <http://www.codeotaku.com>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
23
|
+
load(:application)
|
24
|
+
|
25
|
+
# Inherits directly from {application}.
|
26
|
+
#
|
27
|
+
# @scope Falcon Environments
|
28
|
+
# @name host
|
29
|
+
environment(:host, :application)
|
data/lib/falcon/version.rb
CHANGED
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.
|
4
|
+
version: 0.39.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05
|
11
|
+
date: 2021-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -283,6 +283,7 @@ files:
|
|
283
283
|
- lib/falcon/endpoint.rb
|
284
284
|
- lib/falcon/environments.rb
|
285
285
|
- lib/falcon/environments/application.rb
|
286
|
+
- lib/falcon/environments/host.rb
|
286
287
|
- lib/falcon/environments/lets_encrypt_tls.rb
|
287
288
|
- lib/falcon/environments/proxy.rb
|
288
289
|
- lib/falcon/environments/rack.rb
|
@@ -322,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
322
323
|
- !ruby/object:Gem::Version
|
323
324
|
version: '0'
|
324
325
|
requirements: []
|
325
|
-
rubygems_version: 3.2.
|
326
|
+
rubygems_version: 3.2.15
|
326
327
|
signing_key:
|
327
328
|
specification_version: 4
|
328
329
|
summary: A fast, asynchronous, rack-compatible web server.
|