return_safe_yield 0.2.0 → 0.2.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
2
  SHA256:
3
- metadata.gz: 624ec29f858d7f59cac8be59cbcf4066365855113fc86f24599ccd331f3244e0
4
- data.tar.gz: 47fee91a646d3f29556caf33bbc468cdf4aedaa56bd75499b2d9e4bf4e8aa384
3
+ metadata.gz: f53464c6e6c4889be471da2568c704cc68953f1aa0e1d65127ee1775b453d391
4
+ data.tar.gz: 5a7c19f652074eb2eccd60b1de238d03e1ab1cae8dbd058c18c2a442ea9aa008
5
5
  SHA512:
6
- metadata.gz: df167cc9cbc230e75303e134a7cf98c9b4cc3b1b2622c25edf55b898232ee0bad95c2ad79d22663c0b59d173e621c2b5f728e42047049981a6288910e0fa6ead
7
- data.tar.gz: 9455d0d3706c0589cb6a2a4313091dac7b74a67257fd604a2c415e286c93f1adcd2ed9ce72bd9c593c1ff0dda0b8564dc1271e24132235874eeb95c7d8255cfb
6
+ metadata.gz: 1c785ac63a306878d840050c61e1c34da72254308a39f88633277845da910ef0bea7d394b87234e0eb46e0eeaca96320d3bd69973f65481f5993b952639edb12
7
+ data.tar.gz: 6d5553908f7120f49fcc86b5ce4d5a3f920ca9a247bc709e16f20cf77260888f69151ffda87243a401e20378902b828cbf99488eaa183ccbb0a2434319ca59a2
data/README.md CHANGED
@@ -156,6 +156,10 @@ conduct.
156
156
 
157
157
  ## Changelog
158
158
 
159
+ ### 0.2.1
160
+
161
+ * Fix returning arrays (previously, only first element was returned)
162
+
159
163
  ### 0.2.0
160
164
 
161
165
  * Rescue all exceptions inheriting from `Exception`
@@ -1,3 +1,3 @@
1
1
  module ReturnSafeYield
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -52,7 +52,7 @@ module ReturnSafeYield
52
52
  fail
53
53
  ensure
54
54
  unless exception
55
- second_block_result = yield(*first_block_result)
55
+ second_block_result = yield(first_block_result)
56
56
 
57
57
  # In this very particular case, using `return` inside of `ensure`
58
58
  # is fine as we're checking if there is an exception. There is no other
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: return_safe_yield
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Remo Fritzsche
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-10 00:00:00.000000000 Z
11
+ date: 2023-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.0.3
97
+ rubygems_version: 3.0.3.1
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Provides helpers for dealing with `return` statements in blocks and procs.'