decorations 0.1.3 → 0.1.4

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: 160b3081245364010b7a4f6c9ad4ab641f5abca2358aff973a50188c2491500b
4
- data.tar.gz: 1e1181ff92abecee265ba742686a0172cc7361b2e98e0db55698018b006fe5e4
3
+ metadata.gz: 31bf145c0d39101e6c4aaf1c1ef9bc4d44286e72fbbac2c2cf15bac1e94764d6
4
+ data.tar.gz: 29c49a2c78b92a09d15b8aee25e2730d54ff2d79e9f688819d546d00b097c269
5
5
  SHA512:
6
- metadata.gz: 3027680f0443fd0274c9b93877c587d0bad6a85dec4ebe17f40ff09e56bad6005e982746293b537ef489de76feb3463b5b2a0896e74369336cc2cf6178a5384d
7
- data.tar.gz: 237a8752aa0b1f73e0b30fab4941190ed3b69073b9630eeeac74d62e2d575016fb41e21167107a40ab7c1cb50fada4d1b448f04af062195829a59dd03cb5a6cb
6
+ metadata.gz: 2c242c574f807b2d6a2d27448e38c86895892b5e785c2da95238865b717482274f7d3aa285690bed21cff93398ffb87d852183fdd460e62b2b805ff2e699d18c
7
+ data.tar.gz: c22dbe2455e391069b6ad9c765b6159e061ad046e0be6fd4173626aaec986bdc1c352d6eb0df474c1520b0a80c9114e61414f14d5218290170364f759b0ade14
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decorations (0.1.3)
4
+ decorations (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -89,7 +89,7 @@ module Decorations
89
89
  class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
90
90
  def #{name}(*args, &blk)
91
91
  chain = self.class.decorated_methods[#{name.inspect}].dup
92
- chain.first.call_next(self, chain, *args, &blk)
92
+ Decorator.new(self, :method_added).call_next(self, chain, *args, &blk)
93
93
  end
94
94
  RUBY_EVAL
95
95
  end
@@ -3,5 +3,5 @@
3
3
  module Decorations
4
4
  ##
5
5
  # The version of the Ruby-decorations gem
6
- VERSION = '0.1.3'
6
+ VERSION = '0.1.4'
7
7
  end
@@ -63,7 +63,7 @@ class Decorator
63
63
  next_caller = chain.shift
64
64
 
65
65
  if next_caller.nil?
66
- @decorated_method.bind(this).call(*args)
66
+ decorated_method.bind(this).call(*args)
67
67
  else
68
68
  next_caller.call(this, chain, *args)
69
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decorations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Shields