wolf_core 0.1.0 → 0.1.1

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: 9b284a7f298a9af0d3d5bba012296ae0c3097561fc68152d3c9c172dc4f51d83
4
- data.tar.gz: 9836ec6f17456d430c81f91fdb753454b6fe4dcd14399c64026295f608fa4a23
3
+ metadata.gz: e248e9a83f9374490b7047d514ee10c3d129f51f6551766eaa65e9a0196212d6
4
+ data.tar.gz: 85a6f0ba8cb51f8fba268953dffb3cf7e3a83afe9d27e239252b275b874a31da
5
5
  SHA512:
6
- metadata.gz: b56f79dec0d5ff8b128dd2bee0dada31b54c8df9b660923bb4274fd89d28c44a9099dcdff5776a666b0edf92146d69db63998f15b0527e6f0832b0be332543e7
7
- data.tar.gz: e531e17cb5befd062079f8dd3a165ec8705a973039a080dfc0c7133766bb1f6e5a32f8f4fa6e714df9ab5a8e163033f2b8488f5962b2722477eca3152eac6914
6
+ metadata.gz: 624b4b1c6bf86070387036c160fa29d2d8c61bc3bebb62ec1fa9dd85c80896187326700790866716a6a666ca83d8842ca7371dc9f04400dd80b568d62e8250ff
7
+ data.tar.gz: 93a45b3622cc751b263b4c555c6325e9bb651ab0604c8c359efc0b77300c5fbe5ad266adb87b993249d2c6522733ca8b77cc347f274bf95ca9cae1c6cb1d8e1e
@@ -1,27 +1,25 @@
1
- module WolfCore
2
- class Result
3
- attr_accessor :data, :error
4
-
5
- def initialize(success:, data: nil, error: nil)
6
- @success = success
7
- @data = data
8
- @error = error
9
- end
10
-
11
- def self.success(data: {})
12
- Result.new(success: true, data: OpenStruct.new(data))
13
- end
14
-
15
- def self.failure(error: {})
16
- Result.new(success: false, error: OpenStruct.new(error))
17
- end
18
-
19
- def success?
20
- @success
21
- end
22
-
23
- def failure?
24
- !@success
25
- end
1
+ class Result
2
+ attr_accessor :data, :error
3
+
4
+ def initialize(success:, data: nil, error: nil)
5
+ @success = success
6
+ @data = data
7
+ @error = error
8
+ end
9
+
10
+ def self.success(data: {})
11
+ Result.new(success: true, data: OpenStruct.new(data))
12
+ end
13
+
14
+ def self.failure(error: {})
15
+ Result.new(success: false, error: OpenStruct.new(error))
16
+ end
17
+
18
+ def success?
19
+ @success
20
+ end
21
+
22
+ def failure?
23
+ !@success
26
24
  end
27
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty