wrappable 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,6 +59,14 @@ module Wrappable
59
59
  @wrapped = o
60
60
  end
61
61
 
62
+ def wrapped?
63
+ if wrapped.respond_to? :present?
64
+ wrapped.present?
65
+ else
66
+ !!wrapped
67
+ end
68
+ end
69
+
62
70
  class Base
63
71
  include Wrappable
64
72
  end
@@ -1,5 +1,5 @@
1
1
  module Wrappable
2
2
  def self.version
3
- '0.0.4'
3
+ '0.0.5'
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.4
4
+ version: 0.0.5
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: 2012-01-12 00:00:00.000000000Z
12
+ date: 2012-02-03 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: a generic module that provides an idempotent wrapper.
15
15
  email:
@@ -42,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
42
42
  version: '0'
43
43
  requirements: []
44
44
  rubyforge_project: wrappable
45
- rubygems_version: 1.8.10
45
+ rubygems_version: 1.8.15
46
46
  signing_key:
47
47
  specification_version: 3
48
48
  summary: Wrap all of the things