wolf_core 1.0.108 → 1.0.109

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b982ed79eca33411bc8e32e77ab7ffbbc000b6800eea93d06060fa09f5af5f5c
4
- data.tar.gz: 446e0e76c9cfd4d799b346bbe819cc7fbc9e0a8cb6c3c1f3610dd88c40af9189
3
+ metadata.gz: a1d8fc03b84a0c105698074be3e3359d6421b91a4d217326d1b6da511b8231be
4
+ data.tar.gz: e9f9d0f45551091b575fd6efc4d130d38cd0ea6af71dfaa2106e41a598b7d560
5
5
  SHA512:
6
- metadata.gz: 553d5143443970552b9c3192f668d4acfe910fbc0e9c52744ff1e0a7e3e3b68d877d7ba66edfc1acd49cb1b523ee6f9f57a91940f8eeabaa8687ac89040c438f
7
- data.tar.gz: f393f44badf1cd7c918de8035308ddf6abf8f4f3743bb87cdf9ef942a33299ce6b5918aac9e5b9288e420585e3aa115ceb2b286c1252edc43ed9d71b012c15f3
6
+ metadata.gz: 1e19bafe456757e85b4ab92fca5ae36dea20d36737e22e32de52ad0670615ca43dd4ae0e209ad5318b99a165c4666db808a7e81f60bd8186c8cf7bf2814c1aba
7
+ data.tar.gz: 80d66da290ca0c28e0e3aacd74c76fe21113ea39c90def689bc8a7a09d6dcad3fe993023a086a0abe78aedeb0b2632e351608e6c8deecd74c5c63e246590d16f
@@ -30,4 +30,14 @@ class Result
30
30
  error: @error,
31
31
  }
32
32
  end
33
+
34
+ def slice(*keys)
35
+ if success?
36
+ sliced_data = @data.to_h.slice(*keys)
37
+ Result.success(data: sliced_data)
38
+ else
39
+ sliced_error = @error.to_h.slice(*keys)
40
+ Result.failure(error: sliced_error)
41
+ end
42
+ end
33
43
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.108"
4
+ VERSION = "1.0.109"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.108
4
+ version: 1.0.109
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo