kleisli-validation 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/kleisli/validation.rb +5 -1
  2. metadata +2 -2
@@ -3,7 +3,7 @@ require "kleisli/semigroup_instances.rb"
3
3
 
4
4
  module Kleisli
5
5
  class Validation
6
- VERSION = "0.0.4"
6
+ VERSION = "0.0.5"
7
7
 
8
8
  class Success < Either::Right
9
9
 
@@ -20,6 +20,10 @@ module Kleisli
20
20
  end
21
21
  end
22
22
 
23
+ def fmap(&f)
24
+ Success.new(f.call(@right))
25
+ end
26
+
23
27
  def to_s
24
28
  "Success(#{@right.inspect})"
25
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kleisli-validation
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: 2015-02-17 00:00:00.000000000 Z
12
+ date: 2015-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler