wolf_core 1.0.63 → 1.0.65

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d28ecbd7d9325a547573eeb470e36fd6bc2ed39ddd7d232f6f8daf44c5a3ed89
4
- data.tar.gz: 7a3a1e59ed1325fea83b821929ccb990597ef4b4030657ec4136334a42031f59
3
+ metadata.gz: bcc894fac9d30552d1bcbd18ea5aa6253ed3deee25da39fe3ef0a7f87c2e5322
4
+ data.tar.gz: 983c5d979c641c2c4424f6a15faf5e519798232840b7135f90276d74c929e6ed
5
5
  SHA512:
6
- metadata.gz: 92d38d2f07d9b4c9cea5b79c8b0f71fd72489c4671155ff1babec233c935afb70e731927915a2b622b8b2da5b204dbf738409e75f09478d09b69c6a956874bf1
7
- data.tar.gz: 5abb0753b7d2b1d523ddaffc89f58fbcad03ad81eea1e4ae5d81ad5b620ee40f7d44aa3f2d5a94e4120e31754a3071939b87d4f59e796b08ca42feb010e65726
6
+ metadata.gz: b97699752ab75c9ca40dea092dc7c3916d2fd06380f7fe2f9391587a419ac14417077bc2b06e639ab1015d42f98009f1d8dea3c49bdaac292c9c1a25009444f4
7
+ data.tar.gz: d8424a9f1b17edca658419b09956f53da0a9e1f9df5819bcde3373644078658c94b668343fa6b6e0759bc54567685e61c41aad0c33f2993cdd4ad039feaee7f6
@@ -25,12 +25,14 @@ module WolfCore
25
25
  invocation_type ||= 'Event'
26
26
  # use invocation_type = 'Event' to make an asynchronous call
27
27
  # use invocation_type = 'RequestResponse' to make a synchronous call
28
- @@client.invoke({
28
+ response = @@client.invoke({
29
29
  function_name: function_name,
30
30
  invocation_type: invocation_type,
31
31
  log_type: 'Tail',
32
32
  payload: parsed_payload
33
33
  })
34
+ return if invocation_type == 'Event'
35
+ JSON.parse(response.payload.string)
34
36
  end
35
37
  end
36
38
  end
@@ -46,5 +46,11 @@ module WolfCore
46
46
  base64_regex = /^[A-Za-z0-9+\/]+={0,2}$/
47
47
  str.match?(base64_regex)
48
48
  end
49
+
50
+ def to_snake_case(str)
51
+ str.gsub(/[^a-zA-Z0-9\s]/, '')
52
+ .gsub(/\s+/, '_')
53
+ .downcase
54
+ end
49
55
  end
50
56
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.63"
4
+ VERSION = "1.0.65"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.63
4
+ version: 1.0.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-20 00:00:00.000000000 Z
11
+ date: 2025-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty