queue_classic_matchers 4.0.0.alpha1 → 4.0.0.alpha2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1ce799c50c2a2a5aadd376d5a9922c05021df7e618ee5f922849aab63964089
4
- data.tar.gz: '09980b953a28ce1ad20708fc0c5f41ac796521e81f89dbace74452f09f16e160'
3
+ metadata.gz: d3a8415ed112a9670b48323dfc063bed492c5b76fb5c277a40f1b27922e8660c
4
+ data.tar.gz: 6507eff13b12092d099193cd2d280944e40073a1e3c3c8b059d353281e942358
5
5
  SHA512:
6
- metadata.gz: 0d14a6eb9bd93f76e511c8a9c88eaba700355db346b2ba7a4eef9484d2b3a14a1e3b626045aff4429e55d98abb6222bbc670882c9ef89736e9bda97841e9b44b
7
- data.tar.gz: 8a923b8c49ca6e02ce844a0eed826c82e0fcfc4ab53305f3a0fc7a9bfddc8064f49cda4be0b901578e482ea96e958cc2f7abc76c1f741f7dd8c8cbb5f0379f9d
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.5.3-node
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.5.3
24
+ - image: circleci/ruby:2.7.4
25
25
  auth:
26
26
  username: $DOCKERHUB_USERNAME
27
27
  password: $DOCKERHUB_TOKEN
data/Gemfile CHANGED
@@ -5,4 +5,4 @@ gemspec
5
5
 
6
6
  gem 'rspec'
7
7
  # TODO: release qc plus
8
- gem 'queue_classic_plus', github: 'rainforestapp/queue_classic_plus', tag: 'v4.0.0-alpha5'
8
+ gem 'queue_classic_plus', github: 'rainforestapp/queue_classic_plus', tag: 'v4.0.0-alpha7'
@@ -1,3 +1,3 @@
1
1
  module QueueClassicMatchers
2
- VERSION = '4.0.0.alpha1'
2
+ VERSION = '4.0.0.alpha2'
3
3
  end
@@ -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::text = $3'
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 wiht argument' do
18
- expect(TestJob).to_not have_queued(1)
19
- TestJob.do 1
20
- expect(TestJob).to have_queued(1)
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.alpha1
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-07-06 00:00:00.000000000 Z
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.0.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