resque_unit_without_mock 0.1.0 → 0.1.1
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/README.md +2 -2
- data/lib/resque_unit_without_mock/scheduler.rb +6 -1
- data/lib/resque_unit_without_mock/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddffe4d10ef12e7c7e2688df15ae8135e155a23da406f88a0dd841f6070055a3
|
4
|
+
data.tar.gz: 70cf10927580740cdf8fe75b7ade65555dd008a5e31f1e0eb269febbd5bc7e9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7d42c07072e09580fab964d55b05594e3b2c854905a37d2820d137d79e64d618b8c4aa4d5ff528e91566c462a8f2d3f0b74098cba9051736690b260b9d0f2db
|
7
|
+
data.tar.gz: 1c4e0d41cab06cf2d9a8e5458ff10c0be9bca309b70f94f619e0cf2fbed636e857ccca71b9d071633f9c4b93a02f927289425cb3132c77b72cc6fdd63ca099a8
|
data/README.md
CHANGED
@@ -15,10 +15,10 @@ And then execute:
|
|
15
15
|
|
16
16
|
$ bundle
|
17
17
|
|
18
|
-
##
|
19
|
-
### resque_unitとの違い
|
18
|
+
## `resque_unit`との違い
|
20
19
|
resque_unitで提供していた `Resque.queues` は `Resque.queued` になっています。
|
21
20
|
|
21
|
+
## Usage
|
22
22
|
### `Resque.reset!` はプロジェクト内で再定義してください
|
23
23
|
専用のredis-serverプロセスを使っているなら `flushdb`でいいですが、
|
24
24
|
相乗りしているredis-serverの場合は https://gist.github.com/aserafin/6916037 みたいな感じで初期化するとよいでしょう。
|
@@ -8,7 +8,12 @@ module ResqueUnitWithoutMock::Scheduler
|
|
8
8
|
# タイムスタンプを確認している.
|
9
9
|
# 実物Redisを使うにあたって同じ振る舞いにしたいのでクラス変数を使ってresque_unitと同じことを実現する.
|
10
10
|
def enqueue_at(timestamp, klass, *args)
|
11
|
-
|
11
|
+
enqueue_at_with_queue(
|
12
|
+
queue_for(klass), timestamp, klass, *args
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
def enqueue_at_with_queue(queue, timestamp, klass, *args)
|
12
17
|
@@enqueue_ats ||= {}
|
13
18
|
@@enqueue_ats[queue] ||= []
|
14
19
|
@@enqueue_ats[queue] << { timestamp: timestamp, klass: klass, args: args }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque_unit_without_mock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jiikko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
|
127
|
-
rubygems_version: 2.7.6
|
126
|
+
rubygems_version: 3.0.3
|
128
127
|
signing_key:
|
129
128
|
specification_version: 4
|
130
129
|
summary: resque_unit(without mock)
|