falcon 0.48.1 → 0.48.3

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: 4305e4b3c191643bd6ee8dfc2f02e8f5c30b0fb7c60bb61bee5675c983e3e98b
4
- data.tar.gz: 7c8c86e7557bbff0d29ca83af877b36a12e0db86c2a2bf5e01cd2df88b35ad82
3
+ metadata.gz: 7402cf048a80de8e1c357956b59f0f2838ac727a8982e08a6f55724b74bf77da
4
+ data.tar.gz: 1e068e76060caf2dc6812e99a49e2559f6c2d0c36b9da6629fc43c25b434b6fd
5
5
  SHA512:
6
- metadata.gz: c6de22e4f8048e1632e8c37eab7727623c62f4a47838fee3da284bd0bb2c050e51019943b109805ccc9e23cada977449dc2fcb04a6bf6d1c18c354366bc204fc
7
- data.tar.gz: 1a6f70ac00514ee5a6a110ec2013dc494077f84d5fa257cbdab11394301c4f857ca49bb4236051d4d3090360fab18809b2b2e6fde9b8a9cbc1d78efd01e0fb87
6
+ metadata.gz: 3e36ef9ebb0e04a9cd5fb7acf4f6a0e3c4347cafe24a87a5c4768f6a4ad5a18623419fbc87130fd60f3aa318a2c00a40e8b87ca4199087a7780274b08178d4a6
7
+ data.tar.gz: d12353d67f5f3f5ffcb931496996cc6beab8f00fa1e5363a712829963426b52e7379a5084e1133cca498ee720824c59e698a8366cee4e21f2ceaed95a668d796
checksums.yaml.gz.sig CHANGED
Binary file
@@ -40,8 +40,8 @@ module Falcon
40
40
 
41
41
  # Send the metrics message to the supervisor and print the results.
42
42
  def call(stream)
43
- stream.puts({please: 'metrics'}.to_json, separator: "\0")
44
- response = JSON.parse(stream.gets("\0"), symbolize_names: true)
43
+ stream.puts({please: 'metrics'}.to_json, separator: "\0", chomp: true)
44
+ response = JSON.parse(stream.read_until("\0"), symbolize_names: true)
45
45
 
46
46
  $stdout.puts response
47
47
  end
@@ -151,18 +151,9 @@ module Falcon
151
151
  Traces::Provider(self) do
152
152
  def call(request)
153
153
  attributes = {
154
- authority: request.authority,
154
+ "authority" => request.authority,
155
155
  }
156
156
 
157
- if host = lookup(request)
158
- attributes[:endpoint] = host.endpoint.inspect
159
-
160
- if client = @clients[host.endpoint]
161
- attributes[:client] = client.as_json
162
- attributes[:pool] = client.pool.as_json
163
- end
164
- end
165
-
166
157
  Traces.trace('falcon.middleware.proxy.call', attributes: attributes) do
167
158
  super
168
159
  end
@@ -74,7 +74,7 @@ module Falcon
74
74
  @bound_endpoint.accept do |peer|
75
75
  stream = ::IO::Stream(peer)
76
76
 
77
- while message = stream.gets("\0")
77
+ while message = stream.read_until("\0")
78
78
  response = handle(JSON.parse(message, symbolize_names: true))
79
79
  stream.puts(response.to_json, separator: "\0")
80
80
  end
@@ -101,7 +101,7 @@ module Falcon
101
101
 
102
102
  stream.puts(command.to_json, separator: "\0")
103
103
 
104
- response = JSON.parse(stream.gets("\0"), symbolize_names: true)
104
+ response = JSON.parse(stream.read_until("\0"), symbolize_names: true)
105
105
 
106
106
  return response
107
107
  end
@@ -66,7 +66,7 @@ module Falcon
66
66
  evaluator = @environment.evaluator
67
67
  falcon_path = evaluator.falcon_path
68
68
 
69
- Console.info(self, "Loading configurations from:", evaluator.resolved_configuration_paths)
69
+ Console.info(self, "Loading configurations:", paths: evaluator.resolved_configuration_paths)
70
70
 
71
71
  evaluator.resolved_configuration_paths.each do |path|
72
72
  path = File.expand_path(path)
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2024, by Samuel Williams.
5
5
 
6
6
  module Falcon
7
- VERSION = "0.48.1"
7
+ VERSION = "0.48.3"
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.48.1
4
+ version: 0.48.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -59,7 +59,7 @@ cert_chain:
59
59
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
60
60
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
61
61
  -----END CERTIFICATE-----
62
- date: 2024-09-24 00:00:00.000000000 Z
62
+ date: 2024-10-15 00:00:00.000000000 Z
63
63
  dependencies:
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: async
metadata.gz.sig CHANGED
Binary file