wolf_core 0.1.18 → 0.1.19

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: 403b10401cf9e77b725c3cadcd758fe0797d35ec084675b63b59dff05fdc5f04
4
- data.tar.gz: 592c264df6aceffadb8993970fbc3a6077b1d283f5707f24d8a31e9c916ab79a
3
+ metadata.gz: a8d785615c5fa7343c041f85cd0bec684b52b244437e7671aafabe23b69bf2e7
4
+ data.tar.gz: 25eb82ff8cd06ec0b3f7c3790c001ce729947f331b0efbd2875d6d061ff06c55
5
5
  SHA512:
6
- metadata.gz: 9f75af934fd1838ffe3cceced35be204c940a4bffa1dc78d5b1022ea69f3ad569d0c97d0fb872b24b721b7b2ec4328c5975b8fe115b7b5ba6d00d17c3c678bc5
7
- data.tar.gz: 437135b84e51fe271bbffda54f1fb9520b0afade25c09f5d782fb2fad86f5774e66ae42ebac6c31dac3cad34e38955d5b72d170e7b02bd6ffa5e902823a2467d
6
+ metadata.gz: 9065f29a4dab595510a105c8f3685d929a7698069594d197341b311c980c98abba12d2b9adc8b2f54f0b779ebe591ec12ae0bf72552d558b41ae99ac1981525e
7
+ data.tar.gz: 43147cb03ed97383467f552f0dfb0a7331495c26891405c499ea2c2dec8bc75e98b5c63d188149834c0957d61272199bc14dec6da8f4088119b3b78b85fe5078
@@ -3,18 +3,13 @@ module WolfCore
3
3
  module_function
4
4
 
5
5
  def init
6
- endpoint = ENV.fetch('AWS_LAMBDA_FUNCTION_ENDPOINT', nil)
7
6
  client_config = {
8
7
  access_key_id: ENV.fetch('AWS_KEY_ID', nil),
9
8
  secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY', nil),
9
+ region: ENV.fetch('AWS_REGION', nil),
10
+ endpoint: ENV.fetch('AWS_LAMBDA_FUNCTION_ENDPOINT', nil),
10
11
  }
11
12
 
12
- if endpoint.present?
13
- client_config[:endpoint] = endpoint
14
- else
15
- client_config[:region] = ENV.fetch('AWS_REGION', nil)
16
- end
17
-
18
13
  client_config = client_config.compact
19
14
  return if client_config.empty?
20
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.18"
4
+ VERSION = "0.1.19"
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.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo