falcon 0.51.1 → 0.52.0
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/serve.rb +2 -1
- data/lib/falcon/command/top.rb +1 -1
- data/lib/falcon/command/virtual.rb +2 -1
- data/lib/falcon/configuration.rb +1 -1
- data/lib/falcon/environment/redirect.rb +1 -1
- data/lib/falcon/environment/server.rb +1 -1
- data/lib/falcon/environment/supervisor.rb +1 -1
- data/lib/falcon/middleware/proxy.rb +1 -1
- data/lib/falcon/middleware/redirect.rb +1 -1
- data/lib/falcon/server.rb +11 -0
- data/lib/falcon/service/server.rb +1 -1
- data/lib/falcon/version.rb +2 -2
- data/license.md +2 -0
- data.tar.gz.sig +0 -0
- metadata +6 -4
- 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: bcc66fb374ec0ceeca20dcae8772a96d406437cf338ac4239eaa30513790fc88
|
4
|
+
data.tar.gz: f29e1b1d98923d791d05ed6e192995fa37d2cf562c18c848ff5b1c4491bc7eb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d8d9189a0c0283a91229d6f05e7bf03dc29a0735d38edd7911f7475d23849b276d0b1355bb01e7b1d87c139c29ea641c9fd556111e5f45159cf270c29ad3992
|
7
|
+
data.tar.gz: 7c6f1a409420925dd0d5780370706a54f080e8aede006349421342e92ea59d2b54586470e650415dcfdc68650e1c6d80a3c6d8711dc494326acb2e68ca4d46df
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/falcon/command/serve.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2018-
|
4
|
+
# Copyright, 2018-2025, by Samuel Williams.
|
5
5
|
# Copyright, 2018, by Mitsutaka Mimura.
|
6
6
|
|
7
7
|
require_relative "../server"
|
@@ -120,6 +120,7 @@ module Falcon
|
|
120
120
|
def call
|
121
121
|
Console.logger.info(self) do |buffer|
|
122
122
|
buffer.puts "Falcon v#{VERSION} taking flight! Using #{self.container_class} #{self.container_options}."
|
123
|
+
buffer.puts "- Running on #{RUBY_DESCRIPTION}"
|
123
124
|
buffer.puts "- Binding to: #{self.endpoint}"
|
124
125
|
buffer.puts "- To terminate: Ctrl-C or kill #{Process.pid}"
|
125
126
|
buffer.puts "- To reload configuration: kill -HUP #{Process.pid}"
|
data/lib/falcon/command/top.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2018-
|
4
|
+
# Copyright, 2018-2025, by Samuel Williams.
|
5
5
|
|
6
6
|
require "async/service"
|
7
7
|
|
@@ -51,6 +51,7 @@ module Falcon
|
|
51
51
|
def call
|
52
52
|
Console.logger.info(self) do |buffer|
|
53
53
|
buffer.puts "Falcon Virtual v#{VERSION} taking flight!"
|
54
|
+
buffer.puts "- Running on #{RUBY_DESCRIPTION}"
|
54
55
|
buffer.puts "- To terminate: Ctrl-C or kill #{Process.pid}"
|
55
56
|
buffer.puts "- To reload all sites: kill -HUP #{Process.pid}"
|
56
57
|
end
|
data/lib/falcon/configuration.rb
CHANGED
data/lib/falcon/server.rb
CHANGED
@@ -68,6 +68,17 @@ module Falcon
|
|
68
68
|
@active_count -= 1
|
69
69
|
end
|
70
70
|
|
71
|
+
# Generates a human-readable string representing the current statistics.
|
72
|
+
#
|
73
|
+
# e.g. `C=23/3.42K R=2/3.42K L=0.273`
|
74
|
+
#
|
75
|
+
# This can be interpreted as:
|
76
|
+
#
|
77
|
+
# - `C=23/3.42K` - The number of connections currently open and the total number of connections accepted.
|
78
|
+
# - `R=2/3.42K` - The number of requests currently being processed and the total number of requests received.
|
79
|
+
# - `L=0.273` - The average scheduler load of the server, where 0.0 is idle and 1.0 is fully loaded.
|
80
|
+
#
|
81
|
+
# @returns [String] A string representing the current statistics.
|
71
82
|
def statistics_string
|
72
83
|
"C=#{format_count @connection_count}/#{format_count @accept_count} R=#{format_count @active_count}/#{format_count @request_count}"
|
73
84
|
end
|
data/lib/falcon/version.rb
CHANGED
data/license.md
CHANGED
@@ -25,6 +25,8 @@ Copyright, 2024, by Trevor Turk.
|
|
25
25
|
Copyright, 2024, by Adam Daniels.
|
26
26
|
Copyright, 2024, by Stefan Buhrmester.
|
27
27
|
Copyright, 2024, by Ismael Celis.
|
28
|
+
Copyright, 2025, by Pierre Montelle.
|
29
|
+
Copyright, 2025, by Jared Smith.
|
28
30
|
|
29
31
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
30
32
|
of this software and associated documentation files (the "Software"), to deal
|
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.
|
4
|
+
version: 0.52.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -18,12 +18,14 @@ authors:
|
|
18
18
|
- Colby Swandale
|
19
19
|
- Daniel Evans
|
20
20
|
- Ismael Celis
|
21
|
+
- Jared Smith
|
21
22
|
- Kent Gruber
|
22
23
|
- Martin Hrdlicka
|
23
24
|
- Michael Adams
|
24
25
|
- Mikel Kew
|
25
26
|
- Nick Janetakis
|
26
27
|
- Olle Jonsson
|
28
|
+
- Pierre Montelle
|
27
29
|
- Santiago Bartesaghi
|
28
30
|
- Sh Lin
|
29
31
|
- Stefan Buhrmester
|
@@ -60,7 +62,7 @@ cert_chain:
|
|
60
62
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
61
63
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
62
64
|
-----END CERTIFICATE-----
|
63
|
-
date:
|
65
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
64
66
|
dependencies:
|
65
67
|
- !ruby/object:Gem::Dependency
|
66
68
|
name: async
|
@@ -292,14 +294,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
292
294
|
requirements:
|
293
295
|
- - ">="
|
294
296
|
- !ruby/object:Gem::Version
|
295
|
-
version: '3.
|
297
|
+
version: '3.2'
|
296
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
297
299
|
requirements:
|
298
300
|
- - ">="
|
299
301
|
- !ruby/object:Gem::Version
|
300
302
|
version: '0'
|
301
303
|
requirements: []
|
302
|
-
rubygems_version: 3.6.
|
304
|
+
rubygems_version: 3.6.7
|
303
305
|
specification_version: 4
|
304
306
|
summary: A fast, asynchronous, rack-compatible web server.
|
305
307
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|