monadic 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.7.2
4
+ Add `#__fetch__` to `Maybe().proxy` to get the wrapped value.
5
+
3
6
  ## v0.7
4
7
  **BREAKING CHANGES**
5
8
 
@@ -52,6 +52,10 @@ module Monadic
52
52
  def method_missing(m, *args)
53
53
  @maybe.map { |e| e.__send__(m, *args) }
54
54
  end
55
+
56
+ def __fetch__
57
+ @maybe.fetch
58
+ end
55
59
  end
56
60
 
57
61
  def proxy
@@ -1,3 +1,3 @@
1
1
  module Monadic
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -183,5 +183,6 @@ describe Monadic::Maybe do
183
183
  Maybe({a: 1}).proxy.fetch(:a).should == Maybe(1)
184
184
  Maybe("FOO").proxy.downcase.capitalize.should == Maybe("Foo")
185
185
  Maybe(nil).proxy.downcase.capitalize.bar.should == Nothing
186
+ Maybe({a: 1}).proxy.__fetch__.should == {a: 1}
186
187
  end
187
188
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monadic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
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-11-24 00:00:00.000000000 Z
12
+ date: 2012-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec