falcon 0.47.8 → 0.47.9

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: 69760266ec4a2a5df898ab0094e3c7415cb32499f490cbb72b385c5a3c9d7074
4
- data.tar.gz: 96fbbf199225e6d00f0987e67b0be54cf3d290300e9cab8a80129bde9494855a
3
+ metadata.gz: 62d903fdc0bb50c3d76ee6091a0b142f18e112f93faf5de63f3f5879e4a19187
4
+ data.tar.gz: 95f81fd5c9dd1525b0d87fdb18d63d46dcfd230fdbc4f2e2aa8ae4cdce298753
5
5
  SHA512:
6
- metadata.gz: ff0c55a052994c4af8dcf91f16b4a941108d7c25447ff5ffd874ff1961727b03edcf30a8ef35173e090e27424f893840978997ba8cd63485d5e9d987a90c3380
7
- data.tar.gz: 3318a5133a29556b58c3f7ce07b94846897dedb2e700617aeb0aecdb1d79ad03a7558bf9b25ecd237e9fd8161a49833ea069fae83f24c90f8dfb604ad612dbf1
6
+ metadata.gz: a94919d62d6a84416b52d7678bba3bd68e795377e07149b5f2a612cbd1afae98e1e4cfe1a8ad8fb786204d51518042ebb6c58e3130a5df524275bc95da90d9fe
7
+ data.tar.gz: 45d482bb25b531d9869d8641c36974943747c56c885d115a73234dcbccbd23ce1b42c62a35ecb648d7a6f325b69ebc9cb723d38c0053a6395de087e38d4e4fc3
checksums.yaml.gz.sig CHANGED
Binary file
@@ -7,6 +7,8 @@ require 'async/http/client'
7
7
  require 'protocol/http/headers'
8
8
  require 'protocol/http/middleware'
9
9
 
10
+ require 'console/event/failure'
11
+
10
12
  module Falcon
11
13
  module Middleware
12
14
  # A static middleware which always returns a 400 bad request response.
@@ -95,7 +97,7 @@ module Falcon
95
97
  def prepare_request(request, host)
96
98
  forwarded = []
97
99
 
98
- Console.logger.debug(self) do |buffer|
100
+ Console.debug(self) do |buffer|
99
101
  buffer.puts "Request authority: #{request.authority}"
100
102
  buffer.puts "Host authority: #{host.authority}"
101
103
  buffer.puts "Request: #{request.method} #{request.path} #{request.version}"
@@ -136,12 +138,13 @@ module Falcon
136
138
 
137
139
  client = connect(host.endpoint)
138
140
 
141
+ Console.debug(self, "Sending request...", host: host, request: request, count: @count)
139
142
  client.call(request)
140
143
  else
141
144
  super
142
145
  end
143
146
  rescue => error
144
- Console.error(self, error)
147
+ Console::Event::Failure.for(error).emit(self)
145
148
  return Protocol::HTTP::Response[502, {'content-type' => 'text/plain'}, [error.class.name]]
146
149
  end
147
150
  end
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2024, by Samuel Williams.
5
5
 
6
6
  module Falcon
7
- VERSION = "0.47.8"
7
+ VERSION = "0.47.9"
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.8
4
+ version: 0.47.9
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-08-25 00:00:00.000000000 Z
62
+ date: 2024-08-26 00:00:00.000000000 Z
63
63
  dependencies:
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: async
metadata.gz.sig CHANGED
Binary file