wco_models 3.1.0.184 → 3.1.0.187
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.txt +10 -1
- data/app/models/wco_email/message_stub.rb +2 -5
- data/config/initializers/00_s3.rb +13 -0
- data/config/initializers/00_s3.rb-example +13 -0
- data/config/initializers/08_integrations.rb +9 -0
- data/config/initializers/08_integrations.rb-example +6 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c92eec35ddd3ac3529aaae7038f966e59720968c0752b986e70ff63eb6d68d8
|
4
|
+
data.tar.gz: 2ec53d7a8343064c691ca765ee5dfcf2f45466a2052125c11c302efcedb37e82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c67a8e7a82da5ff9dbce62b34c3212ec3ff0a4d2839f194c0a525654bb52881fb3e995f42c4c1814ea5dacc2cb46657ac2e07d9e81737529ee71cce61615aa3b
|
7
|
+
data.tar.gz: 9fdf1636384b545090d1caf80d5f345597f7aef17311c2da04a74ed1d960e866db58e146471765ec6804760e59b731ef5181442c9dbf069467689fcd878cc0a2
|
data/README.txt
CHANGED
@@ -1,2 +1,11 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
Wco Models.
|
3
|
+
|
4
|
+
== Test ==
|
5
|
+
|
6
|
+
Login to the localstack container, then:
|
7
|
+
|
8
|
+
awslocal s3api put-object --bucket wco-email-ses-development \
|
9
|
+
--key 00nn652jk1395ujdr3l11ib06jam0oevjqv2o4g1 \
|
10
|
+
--body /opt/tmp/00nn652jk1395ujdr3l11ib06jam0oevjqv2o4g1
|
11
|
+
|
@@ -42,16 +42,13 @@ class WcoEmail::MessageStub
|
|
42
42
|
AOL
|
43
43
|
|
44
44
|
def do_process
|
45
|
-
@client ||= Aws::S3::Client.new(
|
46
|
-
region: ::S3_CREDENTIALS[:region_ses],
|
47
|
-
access_key_id: ::S3_CREDENTIALS[:access_key_id_ses],
|
48
|
-
secret_access_key: ::S3_CREDENTIALS[:secret_access_key_ses],
|
49
|
-
})
|
45
|
+
@client ||= Aws::S3::Client.new(::SES_S3_CREDENTIALS)
|
50
46
|
stub = self
|
51
47
|
|
52
48
|
raw = @client.get_object( bucket: stub.bucket, key: stub.object_key ).body.read
|
53
49
|
raw = raw.encode('utf-8', invalid: :replace, undef: :replace, replace: '_' )
|
54
50
|
the_mail = Mail.new( raw )
|
51
|
+
puts! the_mail, 'the_mail'
|
55
52
|
|
56
53
|
message_id = the_mail.header['message-id']&.decoded
|
57
54
|
message_id ||= "#{the_mail.date&.iso8601}::#{the_mail.from}"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
::S3_CREDENTIALS ||= {
|
2
|
+
## user:
|
3
|
+
access_key_id: "",
|
4
|
+
secret_access_key: "",
|
5
|
+
bucket: "wco-email-development",
|
6
|
+
region: 'us-east-1',
|
7
|
+
}
|
8
|
+
|
9
|
+
::SES_S3_CREDENTIALS ||= {
|
10
|
+
endpoint: "http://localhost:4566/",
|
11
|
+
force_path_style: true,
|
12
|
+
}
|
13
|
+
::SES_S3_BUCKET ||= "wco-email-ses-development"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
::S3_CREDENTIALS ||= {
|
2
|
+
## user:
|
3
|
+
access_key_id: "",
|
4
|
+
secret_access_key: "",
|
5
|
+
bucket: "wco-email-development",
|
6
|
+
region: 'us-east-1',
|
7
|
+
}
|
8
|
+
|
9
|
+
::SES_S3_CREDENTIALS ||= {
|
10
|
+
endpoint: "http://localhost:4566/",
|
11
|
+
force_path_style: true,
|
12
|
+
}
|
13
|
+
::SES_S3_BUCKET ||= "wco-email-ses-development"
|
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.187
|
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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ahoy_matey
|
@@ -700,6 +700,10 @@ files:
|
|
700
700
|
- app/views/wco_hosting/ecs_task_definitions/hw1.json
|
701
701
|
- app/views/wco_hosting/scripts/create_volume.erb
|
702
702
|
- app/views/wco_hosting/scripts/nginx_site.conf.erb
|
703
|
+
- config/initializers/00_s3.rb
|
704
|
+
- config/initializers/00_s3.rb-example
|
705
|
+
- config/initializers/08_integrations.rb
|
706
|
+
- config/initializers/08_integrations.rb-example
|
703
707
|
- config/initializers/ahoy.rb
|
704
708
|
- config/initializers/assets.rb
|
705
709
|
- config/routes.rb
|