Permalink
Browse files

Bump version to v0.5.0

  • Loading branch information...
1 parent 77d8fc2 commit 4b544f7c009a4e14945e5967921fb51c864992d7 @pzol committed Jun 17, 2012
Showing with 10 additions and 2 deletions.
  1. +9 −1 CHANGELOG.md
  2. +1 −1 lib/monadic/version.rb
View
10 CHANGELOG.md
@@ -2,7 +2,15 @@
## v0.5.0
-`Monad#to_s` uses `Object#inspect` to show the inner value, thus `Success(some string)` becomes `Success("some string")`, should remain unchanged otherwise.
+Add the `Try` helper which works similar to Either, but takes a block
+
+ Try { Date.parse('2012-02-30') } == Failure
+ Try { Date.parse('2012-02-28') } == Success
+
+`Either` else now supports also a block
+
+ Failure(1).else {|other| 1 + 2 } == Failure(3)
+
## v0.4.0
`#or` returns for Nothing an alternative
View
2 lib/monadic/version.rb
@@ -1,3 +1,3 @@
module Monadic
- VERSION = "0.4.0"
+ VERSION = "0.5.0"
end

0 comments on commit 4b544f7

Please sign in to comment.