Permalink
Browse files

Bump version to v0.6.0

  • Loading branch information...
1 parent 09e53d2 commit 0ed3754e6627bde47d81ff840adc3843b78a5e80 @pzol committed Jun 24, 2012
Showing with 11 additions and 1 deletion.
  1. +10 −0 CHANGELOG.md
  2. +1 −1 lib/monadic/version.rb
View
10 CHANGELOG.md
@@ -16,6 +16,16 @@ The first parameter of `Try` can be used as a predicate and the block as formatt
# this is in effect syntactic sugar for
Maybe({a: 1}).map {|e| e.fetch(:a) }
+`Nothing#or` coerces the or value into a Maybe, thus
+
+ Maybe(nil).or(1) == Just(1)
+ Maybe(nil).or(nil) == Nothing
+
+`Either` coerces now `Just` and `Nothing` into `Success` and `Failure`
+
+ Either(Just.new(1)) == Success(1)
+ Either(Nothing) == Failure(Nothing)
+
## v0.5.0
Add the `Try` helper which works similar to Either, but takes a block
View
2 lib/monadic/version.rb
@@ -1,3 +1,3 @@
module Monadic
- VERSION = "0.5.0"
+ VERSION = "0.6.0"
end

0 comments on commit 0ed3754

Please sign in to comment.