neon_operations 0.0.3 → 0.0.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: a3790be8c0204bd073491450d7e0542ec41fecc7d5aa8e9e6d8819750d75d397
4
- data.tar.gz: 4057ef5f728f62a6176b6955c9e34c10feced824fd326d2f660241eeacfa4e6f
3
+ metadata.gz: 15ebb8c60bbe6398222cebe7af190047cf542b65a38949981b8c6e4ccb469f5a
4
+ data.tar.gz: 15e26ebde3b8552514cb6a41d9bf66b3dc31966cff15f167dcc2abc9aa49cbd0
5
5
  SHA512:
6
- metadata.gz: 13da3df4c72ffefd76d0b9dcb64901454a769e9757d0205cd86a9c9a8dc7ac880a0382e58dcd3449efb8593bd44606ad1d82f598e2af5e07294564407ea58dc2
7
- data.tar.gz: '03599f702957b993ac241da1e8f262a6523a04fd0774522bddb02177fa0a470dfc07c7286df09af2fe78d826274506aa7c3fa492275f192bb98422576ba2a27c'
6
+ metadata.gz: fa055f6e2ca247e865447da7a971c52ae6326d51b88aa8bf296949943d35bc0e506fdedec1566b50f34931bb1c9a26a31ae8b9f839a6f4197ae5ea8637e31f26
7
+ data.tar.gz: 26304e2f39bf8a51e2a3effe9a1bab9e7941c401872dc00a0c4408596ca864ce2c9315e56853107ae01460bdf67e524f6bc7ef20b78a70ecdecf193bed4b7600
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neon_operations (0.0.2)
4
+ neon_operations (0.0.4)
5
5
  dry-monads (~> 1.3)
6
6
 
7
7
  GEM
@@ -17,6 +17,10 @@ module NeonOperations
17
17
  class Operation
18
18
  include Dry::Monads[:maybe, :result]
19
19
 
20
+ def self.call(input:)
21
+ new(input: input).call
22
+ end
23
+
20
24
  def initialize(input:, schema_contract: nil)
21
25
  @input = input
22
26
  @schema_contract = schema_contract
@@ -35,7 +39,7 @@ module NeonOperations
35
39
 
36
40
  return Failure(validation_result) if validation_result.errors.any?
37
41
 
38
- Success(validate_input)
42
+ Success(validate_result)
39
43
  end
40
44
  end
41
45
  end
@@ -1,3 +1,3 @@
1
1
  module NeonOperations
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neon_operations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neon Law