decorations 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/decorations/version.rb +1 -1
- data/lib/decorator.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 389774f8c37121ad05e2757494e8aa3eb6365221612f22e8073cd2ddddbe900a
|
4
|
+
data.tar.gz: 9f7cb9ed0456f8832f63b552c0beefde542555b7de675072f86aa1d5d5f463c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5595bc3bf7522d95c0b1d08d24ff9cd37b029b05a97972ae332e9c5754e7d3a39f43470b92b5c7bdbc8001f072f5e60000efd79a43e4de87c379010a5c895d7
|
7
|
+
data.tar.gz: 2f474d645627e6386723b755d5b612b7c46147128db1c596ea832e033e6175251ad604cca61c4986822e586da148300bb7078c1abbb705164ad51ddd8676c5a7
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/decorations/version.rb
CHANGED
data/lib/decorator.rb
CHANGED
@@ -87,11 +87,11 @@ class Decorator
|
|
87
87
|
# @api private
|
88
88
|
def execute_around_methods(next_caller)
|
89
89
|
arounds = self.class.__send__(:around_method)
|
90
|
-
if arounds.
|
90
|
+
if arounds.nil?
|
91
|
+
ret = next_caller.call
|
92
|
+
else
|
91
93
|
ret = nil
|
92
94
|
arounds.each { |method_name| ret = __send__(method_name) { next_caller.call } }
|
93
|
-
else
|
94
|
-
ret = next_caller.call
|
95
95
|
end
|
96
96
|
|
97
97
|
ret
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decorations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Shields
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|