wrappable 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,7 +40,7 @@ module Wrappable
40
40
 
41
41
  attr_reader :wrapped
42
42
  def initialize(wrapped, opts={})
43
- @wrapped = wrapped
43
+ wrap!(wrapped)
44
44
  set!(opts)
45
45
  end
46
46
 
@@ -52,6 +52,10 @@ module Wrappable
52
52
  self
53
53
  end
54
54
 
55
+ def wrap!(o)
56
+ @wrapped = o
57
+ end
58
+
55
59
  class Base
56
60
  include Wrappable
57
61
  end
@@ -1,5 +1,5 @@
1
1
  module Wrappable
2
2
  def self.version
3
- '0.0.2'
3
+ '0.0.3'
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.2
4
+ version: 0.0.3
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-08 00:00:00.000000000Z
12
+ date: 2011-12-13 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: a generic module that provides an idempotent wrapper.
15
15
  email:
@@ -34,12 +34,18 @@ 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
37
40
  required_rubygems_version: !ruby/object:Gem::Requirement
38
41
  none: false
39
42
  requirements:
40
43
  - - ! '>='
41
44
  - !ruby/object:Gem::Version
42
45
  version: '0'
46
+ segments:
47
+ - 0
48
+ hash: 844093741145981103
43
49
  requirements: []
44
50
  rubyforge_project: wrappable
45
51
  rubygems_version: 1.8.10