gitlab_support_readiness 1.0.90 → 1.0.91

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: 80b4ed778d94e3611d7c5753c988aaa0e6b6e24825ed07a3bc18d66e7e103374
4
- data.tar.gz: 1d20221f5950bc0f02139c4a4672c77bd38cab58c83aa93f8de6960f03f32da0
3
+ metadata.gz: 8821be7610c98997a1e4729408f1cbdf0a395e2d3d3f3d5180a07edf456be3af
4
+ data.tar.gz: af7350684caffe7e6f86878534195942f28195920cec173835a0606d791e4c2a
5
5
  SHA512:
6
- metadata.gz: 41c8dc7a3911017991183c7d20d069c1bb7728773aa13ede81efebdac61e0fbea7f361ae12215306cc69acb8456b0c9ed5ee1f5439c8e59bcf0c50586f39a814
7
- data.tar.gz: 7eea03687ddd63f944ae3b84a88dc268afb8fcba3bfc5780a769072d19150ab9ef3b095f55fc388065b3354dc62c66a1b814032a37489e48097164c3e905430d
6
+ metadata.gz: c61ce0c51617799a7921a0fc6397d544a3993d1771c8946b8abcfbb768556044ebf03161dbac227118129800df70279fe7098308d620f5791bf89850fb9ab3de
7
+ data.tar.gz: 882d85ef8413349a26273681fc7e03a9dfaf7d0861179669ef655bbb09e35ff3a91d1e234b8be8f392010faeec52f2c80917f6a618cac2365cc1486e4642857d
@@ -237,7 +237,12 @@ module Readiness
237
237
  action['value'].each_with_index do |value, sub_index|
238
238
  next unless value == 'MANAGED_WEBHOOK'
239
239
 
240
- object['actions'][index]['value'][sub_index] = JSON.parse(File.read(path))
240
+ converted_value = JSON.parse(File.read(path))
241
+ if converted_value.is_a? Hash
242
+ object['actions'][index]['value'][sub_index] = converted_value.to_json
243
+ else
244
+ object['actions'][index]['value'][sub_index] = converted_value
245
+ end
241
246
  end
242
247
  end
243
248
  object
@@ -245,7 +245,12 @@ module Readiness
245
245
  action['value'].each_with_index do |value, sub_index|
246
246
  next unless value == 'MANAGED_WEBHOOK'
247
247
 
248
- object['actions'][index]['value'][sub_index] = JSON.parse(File.read(path))
248
+ converted_value = JSON.parse(File.read(path))
249
+ if converted_value.is_a? Hash
250
+ object['actions'][index]['value'][sub_index] = converted_value.to_json
251
+ else
252
+ object['actions'][index]['value'][sub_index] = converted_value
253
+ end
249
254
  end
250
255
  end
251
256
  object
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_support_readiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.90
4
+ version: 1.0.91
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer