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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19f65ba587fed4254a671f731a5ff34c0b477d16d72816fb70b75990b1677476
4
- data.tar.gz: 13180ddcd9a0bfbcd88a31eeb86c085c912fd84d8a834724332c7afd34922357
3
+ metadata.gz: 389774f8c37121ad05e2757494e8aa3eb6365221612f22e8073cd2ddddbe900a
4
+ data.tar.gz: 9f7cb9ed0456f8832f63b552c0beefde542555b7de675072f86aa1d5d5f463c2
5
5
  SHA512:
6
- metadata.gz: 4dea09bed3cd7f8a2409b11a5d8fa8cc34a23fd5b205aabc4a275e51d2f37b6759aa789980742e96c7dc9bbed438b7c944bf5178be2ebee409453c9f947d326e
7
- data.tar.gz: 073f81ea30c740401218cd8d02c4e0e483170c82587de4e295b9ecb644ae32ef1a5117cd80cbdab9ce395e2509d5479656b42f11d57de01a85a0bc4e612979bd
6
+ metadata.gz: c5595bc3bf7522d95c0b1d08d24ff9cd37b029b05a97972ae332e9c5754e7d3a39f43470b92b5c7bdbc8001f072f5e60000efd79a43e4de87c379010a5c895d7
7
+ data.tar.gz: 2f474d645627e6386723b755d5b612b7c46147128db1c596ea832e033e6175251ad604cca61c4986822e586da148300bb7078c1abbb705164ad51ddd8676c5a7
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decorations (1.1.0)
4
+ decorations (1.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -68,7 +68,7 @@ class Application
68
68
  end
69
69
 
70
70
  decorate LoggingAroundDecorator
71
- def perform_task(a, b: 2)
71
+ def perform_another_task(a, b: 2)
72
72
  a + b
73
73
  end
74
74
 
@@ -3,5 +3,5 @@
3
3
  module Decorations
4
4
  ##
5
5
  # The version of the Ruby-decorations gem
6
- VERSION = '1.1.0'
6
+ VERSION = '1.1.1'
7
7
  end
@@ -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.is_a?(Set)
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2019-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler