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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32ea14edeca9c737cf46737b5fd4318145178096f4771e745a1f9ec256c04712
4
- data.tar.gz: 0f241f71927800fe291a35abe9edd878da96c4e5a520515eb09c88056bec33ff
3
+ metadata.gz: bcc66fb374ec0ceeca20dcae8772a96d406437cf338ac4239eaa30513790fc88
4
+ data.tar.gz: f29e1b1d98923d791d05ed6e192995fa37d2cf562c18c848ff5b1c4491bc7eb0
5
5
  SHA512:
6
- metadata.gz: ff1cabfb78d5abeffa67d7ae1a9b003b7e48c597994ed2bd254e710d66fa09c4acd8510dcca5a0e63bb6b86c9b1ec30aeb454d118eea4cb8970d15055c15a23f
7
- data.tar.gz: c3d4a957c0ad16d94fdfff87c39b91a096a4eec9b44912cc6fcf2d29db7b80b09209858eda38098123365c8540a218040689b4d89a93a299f6924fd7e6c0f233
6
+ metadata.gz: 1d8d9189a0c0283a91229d6f05e7bf03dc29a0735d38edd7911f7475d23849b276d0b1355bb01e7b1d87c139c29ea641c9fd556111e5f45159cf270c29ad3992
7
+ data.tar.gz: 7c6f1a409420925dd0d5780370706a54f080e8aede006349421342e92ea59d2b54586470e650415dcfdc68650e1c6d80a3c6d8711dc494326acb2e68ca4d46df
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2024, by Samuel Williams.
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}"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2020-2024, by Samuel Williams.
4
+ # Copyright, 2020-2025, by Samuel Williams.
5
5
 
6
6
  require_relative "serve"
7
7
  require_relative "host"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2024, by Samuel Williams.
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2019-2024, by Samuel Williams.
4
+ # Copyright, 2019-2025, by Samuel Williams.
5
5
  # Copyright, 2019, by Sho Ito.
6
6
 
7
7
  require "async/service"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2020-2024, by Samuel Williams.
4
+ # Copyright, 2020-2025, by Samuel Williams.
5
5
 
6
6
  require_relative "server"
7
7
  require_relative "application"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2020-2024, by Samuel Williams.
4
+ # Copyright, 2020-2025, by Samuel Williams.
5
5
 
6
6
  require "async/service/generic"
7
7
  require "async/http/endpoint"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2019-2024, by Samuel Williams.
4
+ # Copyright, 2019-2025, by Samuel Williams.
5
5
 
6
6
  require_relative "../environment"
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2024, by Samuel Williams.
4
+ # Copyright, 2018-2025, by Samuel Williams.
5
5
 
6
6
  require "async/http/client"
7
7
  require "protocol/http/headers"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2024, by Samuel Williams.
4
+ # Copyright, 2018-2025, by Samuel Williams.
5
5
 
6
6
  require "async/http/client"
7
7
 
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2019-2024, by Samuel Williams.
4
+ # Copyright, 2019-2025, by Samuel Williams.
5
5
  # Copyright, 2020, by Daniel Evans.
6
6
 
7
7
  require "async/service/generic"
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2017-2024, by Samuel Williams.
4
+ # Copyright, 2017-2025, by Samuel Williams.
5
5
 
6
6
  module Falcon
7
- VERSION = "0.51.1"
7
+ VERSION = "0.52.0"
8
8
  end
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.51.1
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: 2025-03-08 00:00:00.000000000 Z
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.1'
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.2
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