falcon 0.46.1 → 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: ab60da5c2573da0b0d2c0958898fb68dacf19a2e88e1fd9a563823e2baa7633e
4
- data.tar.gz: 05cbda0911c79c6fe3c4abb6bd44be1d286f664bf57a61329588debfa337a01b
3
+ metadata.gz: 4de3889828b00322d6938e22c925e82d2ec87756cde0f090be0a442e619667a4
4
+ data.tar.gz: 2f466c4e81bce9f734521b61e05979244364135e8c87c48e26c247eec49f0496
5
5
  SHA512:
6
- metadata.gz: 6a2aa0bd1c6ff91a5f0a25570cf02c37207be7a468b8227f69a4db1224dde7abf25f4263a72369a22714426f8783b446f50b25655f0e9c4e6123b4b5496b7f25
7
- data.tar.gz: 76c9579c200f77268264baafccaa2652272df607ce8bb5997a6be757809112971724028b3852bf2eced35c1c26600747949a17ffcb07c3ba7143086a84799084
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.1"
7
+ VERSION = "0.47.0"
8
8
  end
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.1
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
@@ -268,6 +268,7 @@ licenses:
268
268
  - MIT
269
269
  metadata:
270
270
  documentation_uri: https://socketry.github.io/falcon/
271
+ source_code_uri: https://github.com/socketry/falcon.git
271
272
  post_install_message:
272
273
  rdoc_options: []
273
274
  require_paths:
@@ -276,7 +277,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
276
277
  requirements:
277
278
  - - ">="
278
279
  - !ruby/object:Gem::Version
279
- version: '3.0'
280
+ version: '3.1'
280
281
  required_rubygems_version: !ruby/object:Gem::Requirement
281
282
  requirements:
282
283
  - - ">="
metadata.gz.sig CHANGED
Binary file