philiprehberger-task_queue 0.2.3 → 0.2.5
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 +19 -6
- data/README.md +2 -2
- data/lib/philiprehberger/task_queue/queue.rb +3 -3
- data/lib/philiprehberger/task_queue/version.rb +1 -1
- data/lib/philiprehberger/task_queue.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d30fa57ee8116747dcb93a9b4b090f26d3a2e6651cf53f5c99421e66ec3e936b
|
|
4
|
+
data.tar.gz: c1fe49e7832ea9b83d8630c7ba78470f61830532527f89b382b5550509f75884
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 640ae80256361d5aee9c03d8d56ebea2c9e84dde2cdc2d56a740318b6cdd986c96b077ec9b38cf88a465e39cd43f73a8266a413dc57716703c25b308cfdab031
|
|
7
|
+
data.tar.gz: 9dadde31ccec2e71b05b68bc241292f62ef5dc9dacadd2e38860ae5cc2bcb6204747680d8b2fac50eb0d00473f42e8eacd15940b71456d504f27f18d9f1226e7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,27 +1,41 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
All notable changes to this gem will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [0.2.5] - 2026-03-22
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Expand test coverage
|
|
11
|
+
|
|
12
|
+
## [0.2.4] - 2026-03-20
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- Fix README description trailing period
|
|
16
|
+
- Fix CHANGELOG header wording
|
|
17
|
+
|
|
3
18
|
## [0.2.3] - 2026-03-20
|
|
4
19
|
|
|
5
20
|
### Changed
|
|
6
21
|
- Expand README with detailed API documentation and usage examples
|
|
7
22
|
|
|
8
|
-
## 0.2.2
|
|
23
|
+
## [0.2.2] - 2026-03-18
|
|
9
24
|
|
|
25
|
+
### Fixed
|
|
10
26
|
- Fix RuboCop Style/StringLiterals violations in gemspec
|
|
11
27
|
|
|
12
|
-
## 0.2.1
|
|
28
|
+
## [0.2.1] - 2026-03-16
|
|
13
29
|
|
|
30
|
+
### Added
|
|
14
31
|
- Add License badge to README
|
|
15
32
|
- Add bug_tracker_uri to gemspec
|
|
16
33
|
- Add Development section to README
|
|
17
34
|
- Add Requirements section to README
|
|
18
35
|
|
|
19
|
-
All notable changes to this project will be documented in this file.
|
|
20
|
-
|
|
21
36
|
## [0.2.0] - 2026-03-12
|
|
22
37
|
|
|
23
38
|
### Added
|
|
24
|
-
|
|
25
39
|
- `on_error` callback for handling task failures
|
|
26
40
|
- `stats` method returning completed, failed, and pending task counts
|
|
27
41
|
- `drain(timeout:)` method to wait for task completion without shutting down
|
|
@@ -29,7 +43,6 @@ All notable changes to this project will be documented in this file.
|
|
|
29
43
|
## [0.1.0] - 2026-03-10
|
|
30
44
|
|
|
31
45
|
### Added
|
|
32
|
-
|
|
33
46
|
- Initial release
|
|
34
47
|
- In-process async job queue with configurable concurrency
|
|
35
48
|
- Thread-safe task enqueuing with `push` / `<<`
|
data/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# philiprehberger-task_queue
|
|
2
2
|
|
|
3
|
+
[](https://github.com/philiprehberger/rb-task-queue/actions/workflows/ci.yml)
|
|
3
4
|
[](https://rubygems.org/gems/philiprehberger-task_queue)
|
|
4
|
-
[](https://github.com/philiprehberger/rb-task-queue/actions/workflows/ci.yml)
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
|
|
7
|
-
In-process async job queue with concurrency control for Ruby
|
|
7
|
+
In-process async job queue with concurrency control for Ruby
|
|
8
8
|
|
|
9
9
|
## Requirements
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative
|
|
3
|
+
require_relative 'worker'
|
|
4
4
|
|
|
5
5
|
module Philiprehberger
|
|
6
6
|
module TaskQueue
|
|
@@ -67,10 +67,10 @@ module Philiprehberger
|
|
|
67
67
|
# @return [self]
|
|
68
68
|
def push(callable = nil, &block)
|
|
69
69
|
task = block || callable
|
|
70
|
-
raise ArgumentError,
|
|
70
|
+
raise ArgumentError, 'a block is required' unless task
|
|
71
71
|
|
|
72
72
|
@mutex.synchronize do
|
|
73
|
-
raise
|
|
73
|
+
raise 'queue is shut down' unless @running
|
|
74
74
|
|
|
75
75
|
start_workers unless @started
|
|
76
76
|
@tasks << task
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: philiprehberger-task_queue
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Philip Rehberger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A lightweight, zero-dependency, thread-safe in-process async job queue
|
|
14
14
|
with configurable concurrency for Ruby applications.
|