rager 0.4.0 → 0.5.0

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: 5799720e30799c04913866e328e581ed4670f6008489a00d78b438306a6d72e3
4
- data.tar.gz: 30c3b31026a2ddcc9436fdb0f911f98129ce471ab0deb2ffdb05fb567fb4d030
3
+ metadata.gz: 34c1c60d29be37b8a1f9ebb76d975257b26d89aa0345f3bdfb58290e61c82971
4
+ data.tar.gz: 47d3f41d9b7f9b08701c2b4b82e15cf7f86a7e3e4ffe9dced6e343ea28304597
5
5
  SHA512:
6
- metadata.gz: 42f1d694221214b2d098b5996d870fe02dd7704ffce9f2ca44c154e790c6713bf23f98fb649a2ff601f8ab7c3a45da9571bbfcd643628b8c72b64df792bb524c
7
- data.tar.gz: d4440b82e846327792039b33d352320ed00a1c72ac93701e3bed56a9e9f3cacaea5d300fe8853eaf7b2cd93b6c0a2d440d59c6c486707035fd982b7827a01b1a
6
+ metadata.gz: 6dfa77b1500bc0a2693141bff0c6551b72448d100f53f0e612b572d3b894ad5acc09f2cf3bb727d12141511bf902d28b3d43b2e359afc5d3fc9f172aae7caa06
7
+ data.tar.gz: d9522f23cd419a3b747f5e97e6097fc751008aedc3111954194de0253a24813a1919e0c5720cb653e51407e41173d80080461dadadb4590b716f638ea755444f
data/lib/rager/result.rb CHANGED
@@ -183,18 +183,21 @@ module Rager
183
183
  sig { returns(T::Hash[String, T.untyped]) }
184
184
  def to_h
185
185
  {
186
- id: @id,
187
- context_id: @context_id,
188
- operation: @operation.serialize,
189
- input: serialize_input,
190
- output: serialize_output,
191
- options: @options.serialize_safe,
192
- start_time: @start_time,
193
- end_time: @end_time,
194
- name: @name,
195
- context_name: @context_name,
196
- iids: @iids,
197
- error: @error
186
+ version: "1",
187
+ data: {
188
+ id: @id,
189
+ context_id: @context_id,
190
+ operation: @operation.serialize,
191
+ input: serialize_input,
192
+ output: serialize_output,
193
+ options: @options.serialize_safe,
194
+ start_time: @start_time,
195
+ end_time: @end_time,
196
+ name: @name,
197
+ context_name: @context_name,
198
+ iids: @iids,
199
+ error: @error
200
+ }
198
201
  }
199
202
  end
200
203
 
data/lib/rager/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Rager
5
- VERSION = "0.4.0"
5
+ VERSION = "0.5.0"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rager
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
  - mvkvc