falcon 0.46.0 → 0.47.0

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: 18346b84d68ea9e2f6ddb5527330bde669df9ad70e5aee41cd1865c5101e3455
4
- data.tar.gz: 3353a1ff687ff763c9e3885d09f2c67325e971f2cd95184992806971590512c8
3
+ metadata.gz: 4de3889828b00322d6938e22c925e82d2ec87756cde0f090be0a442e619667a4
4
+ data.tar.gz: 2f466c4e81bce9f734521b61e05979244364135e8c87c48e26c247eec49f0496
5
5
  SHA512:
6
- metadata.gz: 453dbc16e2e7b89ad1b0dbf7e6dcb84dde59e5358c4651ee7b3abe3abac690a9d6dc45410e689685391af01213f471d1e2190d9a3bd59d77f3d76fe60701fa74
7
- data.tar.gz: a35611aa0a0d4d98d37741127c785c92946cd1bd32e7e663217b01b5805d14a646897b0c436cc89633ec877b42fb56736d8ea28ab70ceb0a975e0fe047cf837a
6
+ metadata.gz: 68983263b21dbea0f99120c438d384c9fb0a35507fd33e75bb621d6263a3e472b19cf2122ac6c54974d787d6d7251b96c6b13985d7b466dc6804adde8a077e01
7
+ data.tar.gz: a6e3bb1e74c4cf43929f102e4742d7004b1c668710cf40d818b9455f01ac3514288d691b0d39dea53e1c91705f567060de2b85832dc536950a5fbb040a1cf303
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2019-2023, by Samuel Williams.
4
+ # Copyright, 2019-2024, by Samuel Williams.
5
5
 
6
6
  require 'samovar'
7
7
  require 'async'
8
8
  require 'json'
9
9
 
10
- require 'async/io/stream'
11
- require 'async/io/unix_endpoint'
10
+ require 'io/endpoint/unix_endpoint'
11
+ require 'io/stream'
12
12
 
13
13
  module Falcon
14
14
  module Command
@@ -43,7 +43,7 @@ module Falcon
43
43
  stream.puts({please: 'metrics'}.to_json, separator: "\0")
44
44
  response = JSON.parse(stream.gets("\0"), symbolize_names: true)
45
45
 
46
- pp response
46
+ $stdout.puts response
47
47
  end
48
48
  end
49
49
 
@@ -57,16 +57,14 @@ module Falcon
57
57
 
58
58
  # The endpoint the supervisor is bound to.
59
59
  def endpoint
60
- Async::IO::Endpoint.unix(@options[:path])
60
+ ::IO::Endpoint.unix(@options[:path])
61
61
  end
62
62
 
63
63
  # Connect to the supervisor and execute the requested command.
64
64
  def call
65
- Async do
65
+ Sync do
66
66
  endpoint.connect do |socket|
67
- stream = Async::IO::Stream.new(socket)
68
-
69
- @command.call(stream)
67
+ @command.call(IO::Stream(socket))
70
68
  end
71
69
  end
72
70
  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, 2020-2024, by Samuel Williams.
5
5
 
6
6
  require_relative 'server'
7
7
  require_relative '../tls'
@@ -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, 2024, by Samuel Williams.
5
5
 
6
6
  require_relative 'application'
7
7
  require_relative 'rackup'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2024, by Samuel Williams.
4
+ # Copyright, 2020-2024, by Samuel Williams.
5
5
 
6
6
  require 'rack/builder'
7
7
  require_relative '../server'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2024, by Samuel Williams.
4
+ # Copyright, 2020-2024, by Samuel Williams.
5
5
 
6
6
  require 'async/service/generic'
7
7
  require 'async/http/endpoint'
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2020-2024, by Samuel Williams.
5
- # Copyright, 2020, by Michael Adams.
4
+ # Copyright, 2019-2024, by Samuel Williams.
5
+ # Copyright, 2020, by Daniel Evans.
6
6
 
7
7
  require 'async/service/generic'
8
8
  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, 2024, by Samuel Williams.
4
+ # Copyright, 2020-2024, by Samuel Williams.
5
5
 
6
6
  require 'async/service/generic'
7
7
 
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2024, by Samuel Williams.
5
5
 
6
6
  module Falcon
7
- VERSION = "0.46.0"
7
+ VERSION = "0.47.0"
8
8
  end
data/readme.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ![Falcon](logo.svg)
2
2
 
3
- Falcon is a multi-process, multi-fiber rack-compatible HTTP server built on top of [async](https://github.com/socketry/async), [async-io](https://github.com/socketry/async-io), [async-container](https://github.com/socketry/async-container) and [async-http](https://github.com/socketry/async-http). Each request is executed within a lightweight fiber and can block on up-stream requests without stalling the entire server process. Falcon supports HTTP/1 and HTTP/2 natively.
3
+ Falcon is a multi-process, multi-fiber rack-compatible HTTP server built on top of [async](https://github.com/socketry/async), [async-container](https://github.com/socketry/async-container) and [async-http](https://github.com/socketry/async-http). Each request is executed within a lightweight fiber and can block on up-stream requests without stalling the entire server process. Falcon supports HTTP/1 and HTTP/2 natively.
4
4
 
5
5
  [![Development Status](https://github.com/socketry/falcon/workflows/Test/badge.svg)](https://github.com/socketry/falcon/actions?workflow=Test)
6
6
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.47.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  - Janko Marohnić
9
9
  - Bryan Powell
10
+ - Trevor Turk
10
11
  - Claudiu Garba
11
12
  - Kyle Tam
12
13
  - Mitsutaka Mimura
13
14
  - Sho Ito
14
- - Trevor Turk
15
15
  - Colby Swandale
16
16
  - Daniel Evans
17
17
  - Kent Gruber
@@ -57,7 +57,7 @@ cert_chain:
57
57
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
58
58
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
59
59
  -----END CERTIFICATE-----
60
- date: 2024-04-23 00:00:00.000000000 Z
60
+ date: 2024-04-24 00:00:00.000000000 Z
61
61
  dependencies:
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: async
@@ -115,20 +115,6 @@ dependencies:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.4.0
118
- - !ruby/object:Gem::Dependency
119
- name: async-io
120
- requirement: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '1.22'
125
- type: :runtime
126
- prerelease: false
127
- version_requirements: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '1.22'
132
118
  - !ruby/object:Gem::Dependency
133
119
  name: async-service
134
120
  requirement: !ruby/object:Gem::Requirement
@@ -282,6 +268,7 @@ licenses:
282
268
  - MIT
283
269
  metadata:
284
270
  documentation_uri: https://socketry.github.io/falcon/
271
+ source_code_uri: https://github.com/socketry/falcon.git
285
272
  post_install_message:
286
273
  rdoc_options: []
287
274
  require_paths:
@@ -290,7 +277,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
290
277
  requirements:
291
278
  - - ">="
292
279
  - !ruby/object:Gem::Version
293
- version: '3.0'
280
+ version: '3.1'
294
281
  required_rubygems_version: !ruby/object:Gem::Requirement
295
282
  requirements:
296
283
  - - ">="
metadata.gz.sig CHANGED
Binary file