maybelline 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Maybelline
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
data/lib/maybelline.rb CHANGED
@@ -22,10 +22,24 @@ module Maybelline
22
22
  ::Object.new.send :throw, :nothing if @__object__.nil?
23
23
  end
24
24
 
25
- def method_missing(method, *args)
26
- result = @__object__.send(method, *args)
25
+ def ==(other)
26
+ @__object__ == other
27
+ end
27
28
 
28
- ::Object.new.send :throw, :nothing if result.nil?
29
+ def equal?(other)
30
+ @__object__.equal?(other)
31
+ end
32
+
33
+ def instance_eval(*args)
34
+ @__object__.instance_eval(*args)
35
+ end
36
+
37
+ def instance_exec(*args)
38
+ @__object__.instance_exec(*args)
39
+ end
40
+
41
+ def method_missing(method, *args)
42
+ result = @__object__.__send__(method, *args)
29
43
 
30
44
  Maybe.new(result)
31
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maybelline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-23 00:00:00.000000000 Z
12
+ date: 2012-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70102062050120 !ruby/object:Gem::Requirement
16
+ requirement: &70188494085700 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70102062050120
24
+ version_requirements: *70188494085700
25
25
  description: Maybe you should start using the maybe monad, stop checking for nil,
26
26
  and be confident
27
27
  email: