wolf_core 0.1.35 → 0.1.37

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: bb803d94accbed4eabd695e5671e76f582c7f6ddfbc6df5ea83e5ec092f2b661
4
- data.tar.gz: 82ccc95b77e9535838d0345ed6d13b34d17e2d05115280cbcb9105980ce920c6
3
+ metadata.gz: 4a902cc5c063c18f63a08b2056e43506a47cb64f8593680e786f7e88e664a1a7
4
+ data.tar.gz: 6e7c034d355b2cafb512eb26dd836d0edf365e9479752bb8493eafb8f439f960
5
5
  SHA512:
6
- metadata.gz: 754ac01a20f83df27edd825f6e92b02dd5943f09008bf1481698c88a3189bedc6a4f77a5515a104185af8dcb8a7886098835b44918a73c723fbdf4944f391ba3
7
- data.tar.gz: ffda97e56ebacfe891992e1d91a8855977deecdced43f5bbe2d32a0aea1c055e8bd16f246492816b450f61d60c7c31f24cb2cd1dfc29c7be657e413ebbe4a550
6
+ metadata.gz: bee8f1c703ee073991cc6e76fc0c6adad7bf29741a5e5f03a3bfd746406411f610f96b41babfaa225c0d8f79142c242537c21261a09d945e23f40cc2572693a1
7
+ data.tar.gz: 82655a99afa618aace195acf08636ecfdd80050cc0763a0bf67771636dbed3c44377554d367753e8f7dc4c645fe6045da95c70eb51f214c95b38a3f4f1caea60
@@ -3,6 +3,7 @@ module WolfCore
3
3
  include WolfCore::ExceptionOperations
4
4
  include WolfCore::HttpOperations
5
5
  include WolfCore::LambdaFunctionOperations
6
+ include WolfCore::LoggingUtils
6
7
 
7
8
  def call
8
9
  process
@@ -52,8 +53,8 @@ module WolfCore
52
53
  salesforce_access_token: salesforce_access_token,
53
54
  query: { calltype: 'getRecord', RecordId: record_id }
54
55
  )
55
- puts "foreign object is"
56
- pp foreign_object
56
+ log_object "foreign object is"
57
+ log_object foreign_object
57
58
  foreign_object
58
59
  end
59
60
 
@@ -2,10 +2,10 @@ module WolfCore
2
2
  module LoggingUtils
3
3
  def log_object(object)
4
4
  case object
5
- when Hash, OpenStruct
5
+ when Hash, Array, OpenStruct
6
6
  object = object.to_h if object.instance_of?(OpenStruct)
7
7
  puts object.to_json
8
- when Array, Object
8
+ when Object
9
9
  pp object
10
10
  else
11
11
  puts object
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.35"
4
+ VERSION = "0.1.37"
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: 0.1.35
4
+ version: 0.1.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo