async-container 0.18.0 → 0.18.2
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/container/notify/console.rb +1 -1
- data/lib/async/container/notify/server.rb +3 -13
- data/lib/async/container/notify/socket.rb +4 -10
- data/lib/async/container/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +10 -22
- 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: 9d3a096d0939e7edfa4e95595a687c8012bec0d3dfb2939fa9fef5abc28369c0
|
4
|
+
data.tar.gz: 45d8343aab2a7c241f0367bbb5d63de2417c4b3cd3947825d91fdad9f05bec0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fae79f9bb285808e07f8dc6f974da0db5b01109723a8e182deee1f1e9f9630ec13f2234ea2c8cea04fe5d06c3ebb720603767fc9fabbdaccd0d27b17ef651a9
|
7
|
+
data.tar.gz: 4f75cc9c8f84a320ab16ee35714db0aa55cf7aed8b0e7154161086a8c2a371c3b6f3b0ee9a3e97f9927941302c1f24b122c4f686b1dadf36a3cb6b81fc6949f6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -1,13 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2020-
|
4
|
+
# Copyright, 2020-2024, by Samuel Williams.
|
5
5
|
# Copyright, 2020, by Olle Jonsson.
|
6
6
|
|
7
|
-
require 'async/io'
|
8
|
-
require 'async/io/unix_endpoint'
|
9
|
-
require 'kernel/sync'
|
10
|
-
|
11
7
|
require 'tmpdir'
|
12
8
|
require 'securerandom'
|
13
9
|
|
@@ -62,19 +58,13 @@ module Async
|
|
62
58
|
class Context
|
63
59
|
def initialize(path)
|
64
60
|
@path = path
|
65
|
-
@
|
66
|
-
|
67
|
-
Sync do
|
68
|
-
@bound = @endpoint.bind
|
69
|
-
end
|
61
|
+
@bound = Addrinfo.unix(@path, ::Socket::SOCK_DGRAM).bind
|
70
62
|
|
71
63
|
@state = {}
|
72
64
|
end
|
73
65
|
|
74
66
|
def close
|
75
|
-
|
76
|
-
@bound.close
|
77
|
-
end
|
67
|
+
@bound.close
|
78
68
|
|
79
69
|
File.unlink(@path)
|
80
70
|
end
|
@@ -1,14 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2020-
|
4
|
+
# Copyright, 2020-2024, by Samuel Williams.
|
5
5
|
|
6
6
|
require_relative 'client'
|
7
7
|
|
8
|
-
require 'async/io'
|
9
|
-
require 'async/io/unix_endpoint'
|
10
|
-
require 'kernel/sync'
|
11
|
-
|
12
8
|
module Async
|
13
9
|
module Container
|
14
10
|
module Notify
|
@@ -32,7 +28,7 @@ module Async
|
|
32
28
|
# @parameter path [String] The path to the UNIX socket used for sending messages to the process manager.
|
33
29
|
def initialize(path)
|
34
30
|
@path = path
|
35
|
-
@
|
31
|
+
@address = Addrinfo.unix(path, ::Socket::SOCK_DGRAM)
|
36
32
|
end
|
37
33
|
|
38
34
|
# Dump a message in the format requied by `sd_notify`.
|
@@ -63,10 +59,8 @@ module Async
|
|
63
59
|
raise ArgumentError, "Message length #{message.bytesize} exceeds #{MAXIMUM_MESSAGE_SIZE}: #{message.inspect}"
|
64
60
|
end
|
65
61
|
|
66
|
-
|
67
|
-
|
68
|
-
peer.send(data)
|
69
|
-
end
|
62
|
+
@address.connect do |peer|
|
63
|
+
peer.sendmsg(data)
|
70
64
|
end
|
71
65
|
end
|
72
66
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-container
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -41,36 +41,22 @@ cert_chain:
|
|
41
41
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
42
42
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
43
43
|
-----END CERTIFICATE-----
|
44
|
-
date: 2024-
|
44
|
+
date: 2024-04-24 00:00:00.000000000 Z
|
45
45
|
dependencies:
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: async
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- - "
|
50
|
+
- - "~>"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '2.10'
|
53
53
|
type: :runtime
|
54
54
|
prerelease: false
|
55
55
|
version_requirements: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - "
|
57
|
+
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: async-io
|
62
|
-
requirement: !ruby/object:Gem::Requirement
|
63
|
-
requirements:
|
64
|
-
- - ">="
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: '0'
|
67
|
-
type: :runtime
|
68
|
-
prerelease: false
|
69
|
-
version_requirements: !ruby/object:Gem::Requirement
|
70
|
-
requirements:
|
71
|
-
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: '0'
|
59
|
+
version: '2.10'
|
74
60
|
description:
|
75
61
|
email:
|
76
62
|
executables: []
|
@@ -103,7 +89,9 @@ files:
|
|
103
89
|
homepage: https://github.com/socketry/async-container
|
104
90
|
licenses:
|
105
91
|
- MIT
|
106
|
-
metadata:
|
92
|
+
metadata:
|
93
|
+
documentation_uri: https://socketry.github.io/async-container/
|
94
|
+
source_code_uri: https://github.com/socketry/async-container.git
|
107
95
|
post_install_message:
|
108
96
|
rdoc_options: []
|
109
97
|
require_paths:
|
@@ -112,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
100
|
requirements:
|
113
101
|
- - ">="
|
114
102
|
- !ruby/object:Gem::Version
|
115
|
-
version: '3.
|
103
|
+
version: '3.1'
|
116
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
105
|
requirements:
|
118
106
|
- - ">="
|
metadata.gz.sig
CHANGED
Binary file
|