wolf_core 1.0.105 → 1.0.107

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: 6c91a96db14bb1c5ee182cdc605463fd48490ff37e9a7edb3df7fd9550ef82fc
4
- data.tar.gz: d21d5e676dbb2a82080901b995eb95731f114168d90003e2e8d2c71d59bae231
3
+ metadata.gz: a2b47193c6304179d368dfd1c8b5c055945cbca7799b82636bf59b9f5bb3ff7a
4
+ data.tar.gz: e59d73bb47efdc0559547c589b47baf7024305531e782cfe94c0cc21c3e57bd8
5
5
  SHA512:
6
- metadata.gz: b1b8ad202befc59db0f1887034f26c5ff3d4a1afb0833f98aaad95e2d8da6166bb8cfbffe00df8b4481b283087379916972584493f987d9c442b876fd0370a0e
7
- data.tar.gz: 130ff4f10902120295194ed6d69ca1d393978fe9eeea6f9b77e7d90824df9f3c86de50051824f802c9610c1b76fa7f56f689dde65ad7e38f46d8c7a334beb55d
6
+ metadata.gz: 36d2c14e23e2eba23a43f672b26c717bfe05c314d91847da6304521195bbccc4e7fb10fbd855b250a84f2abb3deaf21a68ea7dd9c31d75600ae069d8531f5346
7
+ data.tar.gz: 9eccdaa7155ae761c69db5d1df9cff8068db43593b74002176b881dc4a59bf48464a6cbe7997e76ff5ad4ea7c50aa3853647ce82216437614d328b8a88e25493
@@ -61,7 +61,7 @@ module WolfCore
61
61
  hash[key] = if related_object.is_a?(Enumerable)
62
62
  serializer_class.serialize_all(related_object, options)
63
63
  else
64
- serializer_class.new(related_object, options).as_json
64
+ serializer_class.serialize(related_object, options).as_json
65
65
  end
66
66
  end
67
67
  end
@@ -40,7 +40,14 @@ module WolfCore
40
40
  params.merge!(deep_parse_json(path_parameters))
41
41
  end
42
42
 
43
- params&.with_indifferent_access
43
+ query_parameters = event['queryStringParameters']
44
+ if query_parameters.present?
45
+ params.merge!(deep_parse_json(query_parameters))
46
+ end
47
+
48
+ return event if params.empty?
49
+
50
+ params.with_indifferent_access
44
51
  end
45
52
 
46
53
  def result_to_response(result)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.105"
4
+ VERSION = "1.0.107"
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.105
4
+ version: 1.0.107
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo