queue_classic_matchers 4.0.0.alpha1 → 4.0.0.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -2
- data/Gemfile +1 -1
- data/lib/queue_classic_matchers/version.rb +1 -1
- data/lib/queue_classic_matchers.rb +1 -1
- data/spec/queue_classic_matchers_spec.rb +5 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3a8415ed112a9670b48323dfc063bed492c5b76fb5c277a40f1b27922e8660c
|
4
|
+
data.tar.gz: 6507eff13b12092d099193cd2d280944e40073a1e3c3c8b059d353281e942358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e44d51fb5a0c699c3fd6c4605fbd54d4bd83145c865447825c24e4b93a35cf9ddacd4200e283f19c891184394f63a2c49a7963a7cc5c0acba76affc51d1a958
|
7
|
+
data.tar.gz: 69a91ff3f9680c12ce557f30b561c6f906aecfd0ab3650b043160c589c101077e03c214314d5a042856072a143db6d11fff19e2e3b88609703b2d2de226a9205
|
data/.circleci/config.yml
CHANGED
@@ -3,7 +3,7 @@ version: 2.1
|
|
3
3
|
jobs:
|
4
4
|
test:
|
5
5
|
docker:
|
6
|
-
- image: circleci/ruby:2.
|
6
|
+
- image: circleci/ruby:2.7.4-node
|
7
7
|
auth:
|
8
8
|
username: $DOCKERHUB_USERNAME
|
9
9
|
password: $DOCKERHUB_TOKEN
|
@@ -21,7 +21,7 @@ jobs:
|
|
21
21
|
|
22
22
|
push_to_rubygems:
|
23
23
|
docker:
|
24
|
-
- image: circleci/ruby:2.
|
24
|
+
- image: circleci/ruby:2.7.4
|
25
25
|
auth:
|
26
26
|
username: $DOCKERHUB_USERNAME
|
27
27
|
password: $DOCKERHUB_TOKEN
|
data/Gemfile
CHANGED
@@ -8,7 +8,7 @@ module QueueClassicMatchers
|
|
8
8
|
# Your code goes here...
|
9
9
|
module QueueClassicMatchers::QueueClassicRspec
|
10
10
|
def self.find_by_args(queue_name, method, args)
|
11
|
-
q = 'SELECT * FROM queue_classic_jobs WHERE q_name = $1 AND method = $2 AND args
|
11
|
+
q = 'SELECT * FROM queue_classic_jobs WHERE q_name = $1 AND method = $2 AND args = $3'
|
12
12
|
result = QC.default_conn_adapter.execute q, queue_name, method, JSON.dump(serialized(args))
|
13
13
|
result = [result] unless Array === result
|
14
14
|
result.compact
|
@@ -14,10 +14,11 @@ describe QueueClassicMatchers do
|
|
14
14
|
expect(TestJob).to have_queued
|
15
15
|
end
|
16
16
|
|
17
|
-
it 'works
|
18
|
-
|
19
|
-
TestJob.
|
20
|
-
|
17
|
+
it 'works with argument' do
|
18
|
+
args = [1, { foo: true }, [:baz, 'bar']]
|
19
|
+
expect(TestJob).to_not have_queued(*args)
|
20
|
+
TestJob.do *args
|
21
|
+
expect(TestJob).to have_queued(*args)
|
21
22
|
expect(TestJob).to_not have_queued(2)
|
22
23
|
end
|
23
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queue_classic_matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.alpha2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Mathieu
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-
|
14
|
+
date: 2021-10-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: queue_classic
|
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 1.3.1
|
139
139
|
requirements: []
|
140
|
-
rubygems_version: 3.
|
140
|
+
rubygems_version: 3.1.6
|
141
141
|
signing_key:
|
142
142
|
specification_version: 4
|
143
143
|
summary: RSpec Matchers and helpers for QueueClassicPlus
|