wrappable 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wrappable.rb +5 -1
- data/lib/wrappable/version.rb +1 -1
- metadata +8 -2
data/lib/wrappable.rb
CHANGED
@@ -40,7 +40,7 @@ module Wrappable
|
|
40
40
|
|
41
41
|
attr_reader :wrapped
|
42
42
|
def initialize(wrapped, opts={})
|
43
|
-
|
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
|
data/lib/wrappable/version.rb
CHANGED
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.
|
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-
|
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
|