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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eaa2e6a1b1e530f37984a21a68e20f465a0a5dc5c5549074879a9ef52dc44776
4
- data.tar.gz: 691bee1a039ad306c3ca3e9e8cf4e71f139649a3c47b81b54e5feff8a7908b56
3
+ metadata.gz: fe549538d61772a9056feb1ff0f6bc48bf019ca5599b23606e75134003875160
4
+ data.tar.gz: e05dcb5ca952ca01a9ce51ce2797ccab7d897bc238b18ac114f88b84008d1ebc
5
5
  SHA512:
6
- metadata.gz: 03ae765ccf54fe2ee01c20b9a2bb69d8ee8005c6f16e13b7787473512c1ce3848f9118911df840aebc2b1a1523f6c105417c62b96474893ed58c62b49c338ccb
7
- data.tar.gz: c2fe5fa8b67040271899b1ab0ac0fadbdd33c6a2e0eeb32b2b4cb762961eeb8b9169913d2e88cdfd2c4172d3a18965c46bc6d88050d9f00f6c63ee40bb2cc607
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- receptacle (2.0.0)
4
+ receptacle (2.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -73,6 +73,7 @@ GEM
73
73
 
74
74
  PLATFORMS
75
75
  universal-java-11
76
+ x86_64-darwin-18
76
77
  x86_64-linux
77
78
 
78
79
  DEPENDENCIES
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Receptacle
4
- VERSION = "2.0.0"
4
+ VERSION = "2.1.0"
5
5
  end
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.0.0
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-01-17 00:00:00.000000000 Z
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.4.1
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: []