wrappable 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,10 @@ module Wrappable
15
15
  end
16
16
  end
17
17
 
18
- alias [] wrap
18
+ # use a 'soft alias' that follows overrides
19
+ def [](*a)
20
+ wrap(*a)
21
+ end
19
22
 
20
23
  def wraps(m)
21
24
  alias_method m, :wrapped
@@ -1,5 +1,5 @@
1
1
  module Wrappable
2
2
  def self.version
3
- '0.0.3'
3
+ '0.0.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrappable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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: 2011-12-13 00:00:00.000000000Z
12
+ date: 2012-01-12 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: a generic module that provides an idempotent wrapper.
15
15
  email:
@@ -34,18 +34,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
34
34
  - - ! '>='
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
- segments:
38
- - 0
39
- hash: 844093741145981103
40
37
  required_rubygems_version: !ruby/object:Gem::Requirement
41
38
  none: false
42
39
  requirements:
43
40
  - - ! '>='
44
41
  - !ruby/object:Gem::Version
45
42
  version: '0'
46
- segments:
47
- - 0
48
- hash: 844093741145981103
49
43
  requirements: []
50
44
  rubyforge_project: wrappable
51
45
  rubygems_version: 1.8.10