mocktail 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/mocktail/value/call.rb +1 -2
- data/lib/mocktail/value/demo_config.rb +1 -2
- data/lib/mocktail/value/double.rb +1 -2
- data/lib/mocktail/value/double_data.rb +1 -2
- data/lib/mocktail/value/fake_method_data.rb +1 -2
- data/lib/mocktail/value/signature.rb +4 -4
- data/lib/mocktail/value/stubbing.rb +2 -3
- data/lib/mocktail/value/type_replacement.rb +1 -2
- data/lib/mocktail/value/type_replacement_data.rb +2 -2
- data/lib/mocktail/value/unsatisfying_call.rb +1 -2
- data/lib/mocktail/version.rb +1 -1
- data/mocktail.gemspec +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 846ef7f8484c4d2cc0566c5d7629b6a5ec123d969e3881a3db58617f1cd2870a
|
4
|
+
data.tar.gz: 16c61a6097d9cc1d2350f4f278d08ae94d0fb346c10875e627706a5d9d8ec371
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2833970faf892efa75528df04d23954bcb5a9ccfbcaf2ac674558c87766b5210812c72ab73cd380b81600b062d1eab27857520d7f2150a2caddaa75b6e45004b
|
7
|
+
data.tar.gz: ac0f9b1f1f79960949cee6baca016496f1a473c9630df7c8b24549dda887e05b65ddaf4816987ff4bca683ce1d6ca3bf447ae0fc918799ae435a007352eccfb1
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/mocktail/value/call.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Mocktail
|
2
|
-
|
2
|
+
Signature = Struct.new(
|
3
3
|
:positional_params,
|
4
4
|
:positional_args,
|
5
5
|
:keyword_params,
|
@@ -8,19 +8,19 @@ module Mocktail
|
|
8
8
|
:block_arg,
|
9
9
|
keyword_init: true
|
10
10
|
)
|
11
|
+
class Signature
|
11
12
|
DEFAULT_REST_ARGS = "args"
|
12
13
|
DEFAULT_REST_KWARGS = "kwargs"
|
13
14
|
DEFAULT_BLOCK_PARAM = "blk"
|
14
15
|
end
|
15
16
|
|
16
|
-
|
17
|
+
Params = Struct.new(
|
17
18
|
:all,
|
18
19
|
:required,
|
19
20
|
:optional,
|
20
21
|
:rest,
|
21
22
|
keyword_init: true
|
22
|
-
)
|
23
|
-
|
23
|
+
) do
|
24
24
|
def initialize(**params)
|
25
25
|
super
|
26
26
|
self.all ||= []
|
@@ -1,13 +1,12 @@
|
|
1
1
|
module Mocktail
|
2
|
-
|
2
|
+
Stubbing = Struct.new(
|
3
3
|
:demonstration,
|
4
4
|
:demo_config,
|
5
5
|
:satisfaction_count,
|
6
6
|
:recording,
|
7
7
|
:effect,
|
8
8
|
keyword_init: true
|
9
|
-
)
|
10
|
-
|
9
|
+
) do
|
11
10
|
def initialize(**kwargs)
|
12
11
|
super
|
13
12
|
self.satisfaction_count ||= 0
|
data/lib/mocktail/version.rb
CHANGED
data/mocktail.gemspec
CHANGED
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.metadata["homepage_uri"] = spec.homepage
|
14
14
|
spec.metadata["source_code_uri"] = spec.homepage
|
15
15
|
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
|
16
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
16
17
|
|
17
18
|
# Specify which files should be added to the gem when it is released.
|
18
19
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mocktail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -109,6 +109,7 @@ metadata:
|
|
109
109
|
homepage_uri: https://github.com/testdouble/mocktail
|
110
110
|
source_code_uri: https://github.com/testdouble/mocktail
|
111
111
|
changelog_uri: https://github.com/testdouble/mocktail/blob/main/CHANGELOG.md
|
112
|
+
rubygems_mfa_required: 'true'
|
112
113
|
post_install_message:
|
113
114
|
rdoc_options: []
|
114
115
|
require_paths:
|
@@ -124,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
125
|
- !ruby/object:Gem::Version
|
125
126
|
version: '0'
|
126
127
|
requirements: []
|
127
|
-
rubygems_version: 3.
|
128
|
+
rubygems_version: 3.4.6
|
128
129
|
signing_key:
|
129
130
|
specification_version: 4
|
130
131
|
summary: Take your objects, and make them a double
|