resque_unit_without_mock 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbfdabc7af3a22de5e40c2119246b035acfdbd5d08f561ec2e77aeb231fd590c
4
- data.tar.gz: 4a70f374c92a06b79dc79026b00163707d04cb24a505f56824ec92719ce2a043
3
+ metadata.gz: ddffe4d10ef12e7c7e2688df15ae8135e155a23da406f88a0dd841f6070055a3
4
+ data.tar.gz: 70cf10927580740cdf8fe75b7ade65555dd008a5e31f1e0eb269febbd5bc7e9d
5
5
  SHA512:
6
- metadata.gz: 229d1222c929a7861cecaace68aad49761ad4a98019e77782cdbdbd96c18c3085ead46f3ff036714bda8e4c0b8de537111f486743baa75898236d12c877b071c
7
- data.tar.gz: 055350c0fd3319ca38dc6570292039c401698dd19a991d193cca3c73f6a1bb46824baf35e334efe23996b7b023b0adb1d15901a08cde072af280e000236c1566
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
- ## Usage
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
- queue = queue_for(klass)
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 }
@@ -1,3 +1,3 @@
1
1
  module ResqueUnitWithoutMock
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: 2019-02-04 00:00:00.000000000 Z
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
- rubyforge_project:
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)