simple_monads 0.1.3 → 0.1.4

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: 55714bdd3d9033064a313fdcbe6652e95d47a2825c840e4caefe98ed31a00cc3
4
- data.tar.gz: 7e47070fa7811435c6035db49b2cc2842fd06db63ffc67fd24846552b4ff3fda
3
+ metadata.gz: 78e5554b51686136830accd22720d81a7f38edf8d427b196d4cfe5feee9d3a15
4
+ data.tar.gz: fac5890a466f6532af1a601766738d76098d8236fbe5cc143b3bc290a4cb04a0
5
5
  SHA512:
6
- metadata.gz: 52b545aba9f0146ac012c3b5ad80faacdc62606c53ebf605fbc8ae57f0344c2f4dc5758cbabeaa8f14d9aa583756c8dc9ef970afa792d31cfbe8fa142f4a487c
7
- data.tar.gz: 886c5859ca487ca083d5a190affb1cf792dafa204d78e1f2260d0a95547dbaa604af3c14e37efc55e5150efccc5a915c4057bc4b98bea229095a1c3f1578cecf
6
+ metadata.gz: 7029c2208181904091bba7f2f0c676969e68066eb33a57945997124d746a9df0a20f6b08c17545acd8fb36681d490c2f466f8ee643ea19edb3acae48aa5ffac8
7
+ data.tar.gz: ac7b894bc4a75e108aeadb15e193a808ce527d5231a2606797f72bb315b0e6e5119cb504616da00c67e4cac1cf1bfc7c5e4e214b299e9b60f61787fe3eae9c98
@@ -6,7 +6,7 @@ module SimpleMonads
6
6
  attr_reader :object
7
7
  alias failure object
8
8
 
9
- def initialize(object)
9
+ def initialize(object = nil)
10
10
  @object = object
11
11
  end
12
12
 
@@ -6,7 +6,7 @@ module SimpleMonads
6
6
  attr_reader :object
7
7
  alias success object
8
8
 
9
- def initialize(object)
9
+ def initialize(object = nil)
10
10
  @object = object
11
11
  end
12
12
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleMonads
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
data/lib/simple_monads.rb CHANGED
@@ -5,11 +5,11 @@ require_relative 'simple_monads/success_object'
5
5
 
6
6
  # Main module
7
7
  module SimpleMonads
8
- def Success(object) # rubocop:disable Naming/MethodName
8
+ def Success(object = nil) # rubocop:disable Naming/MethodName
9
9
  SuccessObject.new(object)
10
10
  end
11
11
 
12
- def Failure(object) # rubocop:disable Naming/MethodName
12
+ def Failure(object = nil) # rubocop:disable Naming/MethodName
13
13
  FailureObject.new(object)
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_monads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Leonov