muina 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 868d82b70df649f4904a718c34d487f5c05da90a0e9d28620765c080cb970020
4
- data.tar.gz: 322edb475ebf673ae7d54b8bae3e6c44a0a0be9b7a2bb80df5d27f474b35d90c
3
+ metadata.gz: f7322acdc8c2503f893db20260a561551cd9cc3350d07ccaa7c0a9b929ce7007
4
+ data.tar.gz: 29679c640cc94c29860a9237cf82bcd9fcb3c363481dbe214ccbe5b3ac8e5feb
5
5
  SHA512:
6
- metadata.gz: 996ea7ae5699568af2096e486edf7df2eaf72c4ca7b2dfd1d40d3c54483fa1c2d97227f1c53947ec674a698a8abd5368e5fb854fc5a998c2ec0cbe231094bec6
7
- data.tar.gz: a93c3d768491556b845fbeb7d00e7424e5b9966b1ed5b940abc627f4b9a873b7184615c4e5f55f55a073fe0e1ece527610e48055a0dac8a5e84156438c96bcae
6
+ metadata.gz: 3f2fec87c12b2e968d621663781b9e9e079f10fd6bda0e7d9aabadbeadbd01851de54eb1e393def47e63b066a3c0c62dcc1cf5f101e8b33bb68b9c10430c2f02
7
+ data.tar.gz: 1431602da952ac911732a3284c9a6f73383ddecb20c4b1fe2bb477a970c8724404c6097518a0ee5d8005d10cd631c03a519aebc032173f060af3fc5d4ae4ada8
@@ -44,7 +44,7 @@ module Muina
44
44
  def map
45
45
  self
46
46
  end
47
-
47
+
48
48
  def map_none
49
49
  Maybe.return yield
50
50
  end
@@ -56,6 +56,10 @@ module Muina
56
56
  def bind_none
57
57
  yield
58
58
  end
59
+
60
+ def ==(other)
61
+ self.class == other.class
62
+ end
59
63
  end
60
64
  end
61
65
  end
@@ -45,7 +45,7 @@ module Muina
45
45
  def map
46
46
  Maybe.return yield(@value)
47
47
  end
48
-
48
+
49
49
  def map_none
50
50
  self
51
51
  end
@@ -57,6 +57,11 @@ module Muina
57
57
  def bind_none
58
58
  self
59
59
  end
60
+
61
+ def ==(other)
62
+ self.class == other.class &&
63
+ self.value! == other.value!
64
+ end
60
65
  end
61
66
  end
62
67
  end
data/lib/muina/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Muina
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  public_constant :VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaporyhumo