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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/falcon/command/supervisor.rb +7 -9
- data/lib/falcon/environment/proxy.rb +1 -1
- data/lib/falcon/environment/rack.rb +1 -1
- data/lib/falcon/environment/rackup.rb +1 -1
- data/lib/falcon/environment/server.rb +1 -1
- data/lib/falcon/service/server.rb +2 -2
- data/lib/falcon/service/virtual.rb +1 -1
- data/lib/falcon/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4de3889828b00322d6938e22c925e82d2ec87756cde0f090be0a442e619667a4
|
4
|
+
data.tar.gz: 2f466c4e81bce9f734521b61e05979244364135e8c87c48e26c247eec49f0496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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 '
|
11
|
-
require '
|
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
|
-
|
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
|
-
|
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
|
-
|
65
|
+
Sync do
|
66
66
|
endpoint.connect do |socket|
|
67
|
-
|
68
|
-
|
69
|
-
@command.call(stream)
|
67
|
+
@command.call(IO::Stream(socket))
|
70
68
|
end
|
71
69
|
end
|
72
70
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright,
|
5
|
-
# Copyright, 2020, by
|
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'
|
data/lib/falcon/version.rb
CHANGED
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.
|
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.
|
280
|
+
version: '3.1'
|
280
281
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
281
282
|
requirements:
|
282
283
|
- - ">="
|
metadata.gz.sig
CHANGED
Binary file
|