much-stub 0.1.9 → 0.1.10

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: bc032b1684e0734a374eb6b4a5df50d2980cc9a7cbf7e1149af37e1a4937a5f9
4
- data.tar.gz: 35b88afbbc8c997dacc497e71b5469a4a5062e59259385533b63387a2865180e
3
+ metadata.gz: 4887423991f0a75b904ee6509aba48b42fc38e29917a273f15d63a839b37447f
4
+ data.tar.gz: 2cb8b33d23ed1b1ecd392edd48ecf39a3e100dfbb717e8f8be9a046882b06904
5
5
  SHA512:
6
- metadata.gz: 615eaeb52480305c353204c4a1a27653a84d4f855f323356bcd09f55baf421998ccd35ad8b9c80ef1d431dd700db754be51ed05f7734644e452b2ebe16d3e828
7
- data.tar.gz: 4f7f4fc3666baca6bed52dec567fccca5fa6248946182c84d1a3325f2e7a8eaab88ffad4287b7c7a8f242e6b523c63f0ac60605c42ed16ae6ea8a331a19be09d
6
+ metadata.gz: 1ba31f8668fbff8601a7ff632067c8e67a5b071fce5df440cf29231b569abca9b98f88c1c2c1578fde4527249d4f7e156be1c1c2f249cc2a659e25aed1cb14a3
7
+ data.tar.gz: fac22cf5adabf21a7ea87032cd3b8ed6337ad57dacca019a30053798248b265a2e06935863f81a09f729687b265c38a4c976cfa01c6b4a358a5f73e312cb1332
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuchStub
4
- VERSION = "0.1.9"
4
+ VERSION = "0.1.10"
5
5
  end
data/lib/much-stub.rb CHANGED
@@ -236,7 +236,7 @@ module MuchStub
236
236
  end
237
237
 
238
238
  def combined_args(pargs, kargs)
239
- [*pargs, (kargs.empty? ? nil : kargs)].compact
239
+ pargs + [(kargs.empty? ? nil : kargs)].compact
240
240
  end
241
241
  end
242
242
 
data/much-stub.gemspec CHANGED
@@ -27,6 +27,6 @@ Gem::Specification.new do |gem|
27
27
 
28
28
  gem.required_ruby_version = ">= 2.5"
29
29
 
30
- gem.add_development_dependency("assert", ["~> 2.19.2"])
31
- gem.add_development_dependency("much-style-guide", ["~> 0.6.0"])
30
+ gem.add_development_dependency("assert", ["~> 2.19.7"])
31
+ gem.add_development_dependency("much-style-guide", ["~> 0.6.7"])
32
32
  end
@@ -288,6 +288,7 @@ module MuchStub
288
288
  assert_raises(MuchStub::StubArityError){ @myobj.myvalargs }
289
289
  assert_raises(MuchStub::StubArityError){ @myobj.myvalargs(1) }
290
290
  assert_nothing_raised{ @myobj.myvalargs(1, 2) }
291
+ assert_nothing_raised{ @myobj.myvalargs(1, nil) }
291
292
  assert_nothing_raised{ @myobj.myvalargs(1, 2, 3) }
292
293
  end
293
294
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: much-stub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
8
8
  - Collin Redding
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-10-29 00:00:00.000000000 Z
12
+ date: 2022-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: assert
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 2.19.2
20
+ version: 2.19.7
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 2.19.2
27
+ version: 2.19.7
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: much-style-guide
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 0.6.0
34
+ version: 0.6.7
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 0.6.0
41
+ version: 0.6.7
42
42
  description: Stubbing API for replacing method calls on objects in test runs.
43
43
  email:
44
44
  - kelly@kellyredding.com
@@ -72,7 +72,7 @@ homepage: https://github.com/redding/much-stub
72
72
  licenses:
73
73
  - MIT
74
74
  metadata: {}
75
- post_install_message:
75
+ post_install_message:
76
76
  rdoc_options: []
77
77
  require_paths:
78
78
  - lib
@@ -87,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.2.29
91
- signing_key:
90
+ rubygems_version: 3.3.5
91
+ signing_key:
92
92
  specification_version: 4
93
93
  summary: Stubbing API for replacing method calls on objects in test runs.
94
94
  test_files: