platanus 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,13 +27,13 @@ module Platanus
27
27
  end
28
28
 
29
29
  ## Shorthand method for adding callbacks before item removal
30
- def before_remove(_callback)
31
- self.set_callback :remove, :before, _callback
30
+ def before_remove(*_args, &_block)
31
+ self.set_callback :remove, :before, *_args, &_block
32
32
  end
33
33
 
34
34
  ## Shorthand method for adding callbacks after item removal
35
- def after_remove(_callback)
36
- self.set_callback :remove, :after, _callback
35
+ def after_remove(*_args, &_block)
36
+ self.set_callback :remove, :after, *_args, &_block
37
37
  end
38
38
  end
39
39
 
@@ -1,3 +1,3 @@
1
1
  module Platanus
2
- VERSION = "0.1.7" # 0.2 will come with tests!
2
+ VERSION = "0.1.8" # 0.2 will come with tests!
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platanus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-24 00:00:00.000000000 Z
12
+ date: 2013-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json