reliable-queue-rb 0.3.0 → 0.4.0
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
- data/CHANGELOG.md +14 -0
- data/README.md +10 -3
- data/lib/reliable_queue_rb/chunked_reliable_queue.rb +1 -1
- data/lib/reliable_queue_rb/reliable_queue.rb +1 -1
- metadata +5 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50820b753cbd02b7b7e32a9f203d340539f0d710b504701c516ef7e760a409ac
|
4
|
+
data.tar.gz: b249f744c46fde2961236e66e1194dc29dd8ecf14d9766bb8c28ee47cf167f54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9d0b44d51ed545022b34604e5722a164ba288c360b01dc6c20db25301f8f99aa5fbe50279804930127d4fc5ffd777a04fced76c42afb04a4e6793f3eacf5aa4
|
7
|
+
data.tar.gz: a6ee7ee296a1d5400075460cc495cf15dc51723945955b1c93d8426f03719af1c2af53172271dfb3a352cdcfa2216add4d6200a618a34fb78bbf47451e9f65d9
|
data/CHANGELOG.md
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
# Change Log
|
2
|
+
|
2
3
|
All notable changes to this project will be documented in this file. This
|
3
4
|
project adheres to [Semantic Versioning](http://semver.org/).
|
4
5
|
|
6
|
+
## [0.4.0] - 2023-11-10
|
7
|
+
|
8
|
+
### Changed
|
9
|
+
|
10
|
+
- Minimum required Redis client version bumped to 5.0+
|
11
|
+
- Updated the code to support the current Redis API
|
12
|
+
|
5
13
|
## [0.3.0] - 2021-09-09
|
14
|
+
|
6
15
|
### Changed
|
16
|
+
|
7
17
|
- Upgrade redis
|
8
18
|
|
9
19
|
## [0.2.0] - 2020-12-16
|
20
|
+
|
10
21
|
### Changed
|
22
|
+
|
11
23
|
- A single require for both classes
|
12
24
|
|
13
25
|
## [0.1.0] - 2020-12-14
|
26
|
+
|
14
27
|
### Added
|
28
|
+
|
15
29
|
- Initial release
|
data/README.md
CHANGED
@@ -12,14 +12,20 @@ gem 'reliable-queue-rb', '~> 0.3.0'
|
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
15
|
-
|
15
|
+
```sh
|
16
|
+
bundle
|
17
|
+
```
|
16
18
|
|
17
19
|
Or install it yourself as:
|
18
20
|
|
19
|
-
|
21
|
+
```sh
|
22
|
+
gem install reliable-queue-rb
|
23
|
+
```
|
20
24
|
|
21
25
|
## Usage
|
26
|
+
|
22
27
|
Reliable Queue
|
28
|
+
|
23
29
|
```ruby
|
24
30
|
queue = ReliableQueue.new(redis_queue, redis_client)
|
25
31
|
|
@@ -29,6 +35,7 @@ end
|
|
29
35
|
```
|
30
36
|
|
31
37
|
ChunkedReliableQueue
|
38
|
+
|
32
39
|
```ruby
|
33
40
|
queue = ChunkedReliableQueue.new(working_on_queue_suffix, redis_queue, redis_client)
|
34
41
|
|
@@ -39,7 +46,7 @@ end
|
|
39
46
|
|
40
47
|
## Contributing
|
41
48
|
|
42
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/altmetric/reliable-queue-rb
|
49
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/altmetric/reliable-queue-rb>.
|
43
50
|
|
44
51
|
## License
|
45
52
|
|
@@ -16,7 +16,7 @@ class ChunkedReliableQueue
|
|
16
16
|
return enum_for(:each_slice, size) unless block_given?
|
17
17
|
|
18
18
|
loop do
|
19
|
-
blocking_reply = redis.brpoplpush(queue, working_queue, 30)
|
19
|
+
blocking_reply = redis.brpoplpush(queue, working_queue, timeout: 30)
|
20
20
|
next unless blocking_reply
|
21
21
|
|
22
22
|
replies = [blocking_reply]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reliable-queue-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anna Klimas
|
@@ -9,16 +9,13 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: 3.0.0
|
21
|
-
- - "<"
|
22
19
|
- !ruby/object:Gem::Version
|
23
20
|
version: 5.0.0
|
24
21
|
type: :runtime
|
@@ -26,9 +23,6 @@ dependencies:
|
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
27
24
|
requirements:
|
28
25
|
- - ">="
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: 3.0.0
|
31
|
-
- - "<"
|
32
26
|
- !ruby/object:Gem::Version
|
33
27
|
version: 5.0.0
|
34
28
|
- !ruby/object:Gem::Dependency
|
@@ -86,17 +80,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
80
|
requirements:
|
87
81
|
- - ">="
|
88
82
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
83
|
+
version: 2.7.0
|
90
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
85
|
requirements:
|
92
86
|
- - ">="
|
93
87
|
- !ruby/object:Gem::Version
|
94
88
|
version: '0'
|
95
89
|
requirements: []
|
96
|
-
rubygems_version: 3.
|
90
|
+
rubygems_version: 3.4.22
|
97
91
|
signing_key:
|
98
92
|
specification_version: 4
|
99
93
|
summary: Ruby library for reliable queue processing.
|
100
94
|
test_files:
|
101
|
-
- spec/reliable_queue_spec.rb
|
102
95
|
- spec/chunked_reliable_queue_spec.rb
|
96
|
+
- spec/reliable_queue_spec.rb
|