receptacle 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/Gemfile.lock +2 -1
- data/lib/receptacle/repo.rb +2 -2
- data/lib/receptacle/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe549538d61772a9056feb1ff0f6bc48bf019ca5599b23606e75134003875160
|
4
|
+
data.tar.gz: e05dcb5ca952ca01a9ce51ce2797ccab7d897bc238b18ac114f88b84008d1ebc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d1361e9e68c46212b1a24c1c6ea5b320307536fc50279ef1106491f657715f370b5d9c76c916a17de42b34b0b353d783fb981c79e60587eabd3b1906a4d9628
|
7
|
+
data.tar.gz: 7dafa98904dd56f0b10ef87deca4a3db776f8df493e2ef6628c4bc70a7a5d4062b9fe7c48ba7b081901ff570190ddef75014f8e288284539e48dbcea1fb93ed0
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [2.1.0] - 2023-06-27
|
11
|
+
### Changed
|
12
|
+
* support passing blocks to strategy methods
|
13
|
+
|
14
|
+
|
10
15
|
## [2.0.0] - 2023-01-17
|
11
16
|
### Changed
|
12
17
|
* switch CI to github actions
|
@@ -28,7 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
28
33
|
* fix after wrapper ordering bug [PR#6](https://github.com/andreaseger/receptacle/pull/6)
|
29
34
|
|
30
35
|
## [0.3.0}
|
31
|
-
### Added
|
36
|
+
### Added
|
32
37
|
* add danger
|
33
38
|
* also support higher arity methods (== method with more than one argument)
|
34
39
|
|
@@ -38,7 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
38
43
|
* enable ruby 2.1+
|
39
44
|
|
40
45
|
## [0.1.1]
|
41
|
-
## Added
|
46
|
+
## Added
|
42
47
|
* add changelog, update copyright
|
43
48
|
* add test helper method `ensure_method_delegators` to make rspec stubs/mocks work as expected
|
44
49
|
|
data/Gemfile.lock
CHANGED
data/lib/receptacle/repo.rb
CHANGED
@@ -6,11 +6,11 @@ module Receptacle
|
|
6
6
|
module Repo
|
7
7
|
module ClassMethods
|
8
8
|
def mediate(method_name)
|
9
|
-
define_singleton_method(method_name) do |*args, **kwargs|
|
9
|
+
define_singleton_method(method_name) do |*args, **kwargs, &block|
|
10
10
|
raise Errors::NotConfigured.new(repo: self) unless @strategy
|
11
11
|
|
12
12
|
with_wrappers(@wrappers.dup, method_name, *args, **kwargs) do |*sub_args, **sub_kwargs|
|
13
|
-
strategy.new.public_send(method_name, *sub_args, **sub_kwargs)
|
13
|
+
strategy.new.public_send(method_name, *sub_args, **sub_kwargs, &block)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/lib/receptacle/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: receptacle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Eger
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -188,7 +188,7 @@ licenses:
|
|
188
188
|
- MIT
|
189
189
|
metadata:
|
190
190
|
rubygems_mfa_required: 'true'
|
191
|
-
post_install_message:
|
191
|
+
post_install_message:
|
192
192
|
rdoc_options: []
|
193
193
|
require_paths:
|
194
194
|
- lib
|
@@ -203,8 +203,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
203
|
- !ruby/object:Gem::Version
|
204
204
|
version: '0'
|
205
205
|
requirements: []
|
206
|
-
rubygems_version: 3.
|
207
|
-
signing_key:
|
206
|
+
rubygems_version: 3.1.2
|
207
|
+
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: repository pattern
|
210
210
|
test_files: []
|