async-job 0.5.0 → 0.6.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 +2 -2
- data/lib/async/job/builder.rb +6 -2
- data/lib/async/job/version.rb +1 -1
- data/license.md +1 -0
- data/readme.md +7 -7
- data.tar.gz.sig +0 -0
- metadata +5 -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: 6aa1dbd39e225aaa055f15ffb7976669c500ce4e6a803262356f47ad026a826b
|
4
|
+
data.tar.gz: c594059b63317a346fac7b7780ea99f633ab2f94c9bd20ede9bdd80c2b310f47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73f4fe066ea17811d637a00592b34dc51c350287e1ffe7f73e7ae98dd3413800685804ec70b1038eca718ee353d36c41afcaf77752ed237c726aadff60545a2d
|
7
|
+
data.tar.gz: b9e0dc1720b5f4bc8eb920a265e41a8a95bcdcf3db2694fdfd358fe9a62d3752b371c680acefebf1bfb12012e50440e216139725888391580180b4dc79de059e
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
��
|
2
|
-
|
1
|
+
#�-����n��ާR�SKʈ'O/uo/��7Y�����W�6�z�æ��M�#���E��
|
2
|
+
� ��nG�B��皏u��&_ˡ �z4z�����U�^�p�XT��R��q��� ���k�E��q�,#0yOcRNP�
|
data/lib/async/job/builder.rb
CHANGED
@@ -29,7 +29,7 @@ module Async
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def queue(queue, *arguments, **options)
|
32
|
-
# The delegate is the output side of the queue, e.g. a
|
32
|
+
# The delegate is the output side of the queue, e.g. a Redis server delegate or similar wrapper.
|
33
33
|
# The queue itself is instantiated with the delegate.
|
34
34
|
@queue = ->(delegate){queue.new(delegate, *arguments, **options)}
|
35
35
|
end
|
@@ -52,7 +52,11 @@ module Async
|
|
52
52
|
end
|
53
53
|
|
54
54
|
# We can now construct the queue with the delegate:
|
55
|
-
|
55
|
+
if @queue
|
56
|
+
producer = consumer = @queue.call(delegate)
|
57
|
+
else
|
58
|
+
producer = consumer = delegate
|
59
|
+
end
|
56
60
|
|
57
61
|
# We now construct the queue producer:
|
58
62
|
@enqueue.reverse_each do |middleware|
|
data/lib/async/job/version.rb
CHANGED
data/license.md
CHANGED
data/readme.md
CHANGED
@@ -12,6 +12,10 @@ Please see the [project documentation](https://socketry.github.io/async-job/) fo
|
|
12
12
|
|
13
13
|
- [Redis Backend](https://socketry.github.io/async-job/guides/redis-backend/index) - This guide gives a brief overview of the implementation of the Redis backend.
|
14
14
|
|
15
|
+
## See Also
|
16
|
+
|
17
|
+
- [async-job-adapter-active\_job](https://github.com/socketry/async-job-adapter-active_job) - ActiveJob adapter for `async-job`.
|
18
|
+
|
15
19
|
## Contributing
|
16
20
|
|
17
21
|
We welcome contributions to this project.
|
@@ -24,12 +28,8 @@ We welcome contributions to this project.
|
|
24
28
|
|
25
29
|
### Developer Certificate of Origin
|
26
30
|
|
27
|
-
|
31
|
+
In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
|
28
32
|
|
29
|
-
###
|
30
|
-
|
31
|
-
This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
|
32
|
-
|
33
|
-
## See Also
|
33
|
+
### Community Guidelines
|
34
34
|
|
35
|
-
|
35
|
+
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
|
+
- Alexey Ivanov
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain:
|
@@ -37,7 +38,7 @@ cert_chain:
|
|
37
38
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
38
39
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
39
40
|
-----END CERTIFICATE-----
|
40
|
-
date: 2024-
|
41
|
+
date: 2024-08-02 00:00:00.000000000 Z
|
41
42
|
dependencies:
|
42
43
|
- !ruby/object:Gem::Dependency
|
43
44
|
name: async
|
@@ -97,6 +98,7 @@ licenses:
|
|
97
98
|
- MIT
|
98
99
|
metadata:
|
99
100
|
documentation_uri: https://socketry.github.io/async-job/
|
101
|
+
source_code_uri: https://github.com/socketry/async-job
|
100
102
|
post_install_message:
|
101
103
|
rdoc_options: []
|
102
104
|
require_paths:
|
@@ -112,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
114
|
- !ruby/object:Gem::Version
|
113
115
|
version: '0'
|
114
116
|
requirements: []
|
115
|
-
rubygems_version: 3.5.
|
117
|
+
rubygems_version: 3.5.11
|
116
118
|
signing_key:
|
117
119
|
specification_version: 4
|
118
120
|
summary: A asynchronous job queue for Ruby.
|
metadata.gz.sig
CHANGED
Binary file
|