rspec-que 2.0.0 → 2.0.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
- SHA1:
3
- metadata.gz: 9ae7da24696fff896e0e4a085e3722eace94a83b
4
- data.tar.gz: b86fcdab6635157b959931ab95d53d46bdeba98f
2
+ SHA256:
3
+ metadata.gz: 6120399b6b22bf6d06958c2a39fd386a4de90d50f0815130129be20da5875ab0
4
+ data.tar.gz: 8bf6d163067a0e8a234a78fabbf43e052c4696fca81f6632f05aec3ae02d0660
5
5
  SHA512:
6
- metadata.gz: a97cad4ef4a5229b2f8308fe48deef30b64bb7d51798f9e27827214111ed575749ea409d2813148bf27c15360cdca11e8e20275d8dbf8382a4034888699663c7
7
- data.tar.gz: a5476696af273b6852ecd8dbfbd5142d91ac9d61e2f23c6052ba34546e6f41ea608762f446c00e682d2fd91b24f5e8da9f06f90dd4b733924ca4784d606fa464
6
+ metadata.gz: 66dee47f3ef54a00c2ede1dc41097abeaa67ea7ca1178ecdc9d368b6772ff47bf44f62ca2e7439cda1e6647386040608186d607803d28a304005e591151601d3
7
+ data.tar.gz: 974738ef9b581968c569d92543296866c222f4397091fc72969581889aa9d6ce36ae7f061400da31e9e8e51a47b8d616fb00ce5cc157048e88380ebe35fabb0e
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rspec/que/queue_up'
2
4
 
3
5
  module RSpec
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rspec/mocks/argument_list_matcher'
2
4
  require 'time'
3
5
  require 'forwardable'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RSpec
2
4
  module Que
3
5
  module Matchers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RSpec
2
4
  module Que
3
5
  module Matchers
@@ -9,11 +11,19 @@ module RSpec
9
11
  end
10
12
 
11
13
  def matches?(job)
12
- job[:job_class] == job_class.to_s
14
+ if job_class.is_a?(RSpec::Mocks::ArgumentMatchers::AnyArgMatcher)
15
+ !job[:job_class].nil?
16
+ else
17
+ job[:job_class] == job_class.to_s
18
+ end
13
19
  end
14
20
 
15
21
  def desc
16
- "of class #{job_class}"
22
+ if job_class.is_a?(RSpec::Mocks::ArgumentMatchers::AnyArgMatcher)
23
+ "of any class"
24
+ else
25
+ "of class #{job_class}"
26
+ end
17
27
  end
18
28
 
19
29
  def failed_msg(candidates)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RSpec
2
4
  module Que
3
5
  module Matchers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RSpec
2
4
  module Que
3
5
  module Matchers
@@ -19,4 +21,3 @@ module RSpec
19
21
  end
20
22
  end
21
23
  end
22
-
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RSpec
2
4
  module Que
3
- VERSION = '2.0.0'.freeze
5
+ VERSION = '2.0.1'
4
6
  end
5
7
  end
@@ -1,4 +1,6 @@
1
- require File.expand_path('../lib/rspec/que/version', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path('lib/rspec/que/version', __dir__)
2
4
  require 'date'
3
5
 
4
6
  Gem::Specification.new do |s|
@@ -17,11 +19,12 @@ Gem::Specification.new do |s|
17
19
 
18
20
  s.has_rdoc = false
19
21
  s.files = `git ls-files lib README.md LICENSE *.gemspec -z`.split("\x0")
20
- s.require_paths = %w(lib)
22
+ s.require_paths = %w[lib]
21
23
 
22
24
  s.add_runtime_dependency('rspec-mocks')
23
25
 
24
26
  s.add_development_dependency('rspec')
25
27
  s.add_development_dependency('rspec-its')
28
+ s.add_development_dependency("rspec_junit_formatter", "~> 0.4")
26
29
  s.add_development_dependency('rubocop')
27
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-que
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-24 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-mocks
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec_junit_formatter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.4'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rubocop
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -106,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
120
  - !ruby/object:Gem::Version
107
121
  version: '0'
108
122
  requirements: []
109
- rubyforge_project:
110
- rubygems_version: 2.5.1
123
+ rubygems_version: 3.0.3
111
124
  signing_key:
112
125
  specification_version: 4
113
126
  summary: RSpec matchers to test Que