wco_models 3.1.0.188 → 3.1.0.189
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/wco_email/message_stub.rb +10 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d7aa099d022824fbef4b0fae04c43b89a70ab7e232e70fce561f268c8733084
|
4
|
+
data.tar.gz: 4b7b8bb274105b8ab5dd52c5705e5cab7e2f16a1d4e43d59434c62ddaa87fa0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 856d7b8285233d1a98b6874c493e6b015da8c8723da597576fb28d0716f190a1a41ea673c18920cca10e12791cb1e08d7f3d4fcb0b3b352dd3562838c406ab5c
|
7
|
+
data.tar.gz: 65badfb5507f336f56d25fe963a5eb8a743186d410cfa4910bdc8fd952c25fa9bcea54df61bfa63511dd63c94715b5846c311dcc4e19b3462be0ae1f8d603596
|
@@ -42,7 +42,16 @@ class WcoEmail::MessageStub
|
|
42
42
|
AOL
|
43
43
|
|
44
44
|
def do_process
|
45
|
-
|
45
|
+
if Rails.env.production?
|
46
|
+
@client ||= Aws::S3::Client.new({
|
47
|
+
region: ::S3_CREDENTIALS[:region_ses],
|
48
|
+
access_key_id: ::S3_CREDENTIALS[:access_key_id_ses],
|
49
|
+
secret_access_key: ::S3_CREDENTIALS[:secret_access_key_ses],
|
50
|
+
})
|
51
|
+
else
|
52
|
+
@client ||= Aws::S3::Client.new(::SES_S3_CREDENTIALS)
|
53
|
+
end
|
54
|
+
|
46
55
|
stub = self
|
47
56
|
|
48
57
|
raw = @client.get_object( bucket: stub.bucket, key: stub.object_key ).body.read
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.
|
4
|
+
version: 3.1.0.189
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ahoy_matey
|