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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8bf5a9dd6c6124e378294fc3b5ff4f7fbc5f04eb7b26142eb5bf18b6b9a1898
4
- data.tar.gz: f1a168331f27470048fa2508acc8ba2c179bea02a8c19ff48865e77d551b2fbf
3
+ metadata.gz: 5c92eec35ddd3ac3529aaae7038f966e59720968c0752b986e70ff63eb6d68d8
4
+ data.tar.gz: 2ec53d7a8343064c691ca765ee5dfcf2f45466a2052125c11c302efcedb37e82
5
5
  SHA512:
6
- metadata.gz: c4e4b0ce772fcb3526197b7ebf71b2b175c0e32d4ecfc8679e59d73cb5f24591531b25f80f6bd3472ed3d3c48ba2376c90315b2aa44a01ffc7f9ebf58fb293d2
7
- data.tar.gz: cfcd418cafaeba04479f597267a174631e94208cdff3387f5cb991c50af2be88867dfc27b65be5f0a2e8be8d49ffc843631ccf4a37c1f5aedc538b3f6960171b
6
+ metadata.gz: c67a8e7a82da5ff9dbce62b34c3212ec3ff0a4d2839f194c0a525654bb52881fb3e995f42c4c1814ea5dacc2cb46657ac2e07d9e81737529ee71cce61615aa3b
7
+ data.tar.gz: 9fdf1636384b545090d1caf80d5f345597f7aef17311c2da04a74ed1d960e866db58e146471765ec6804760e59b731ef5181442c9dbf069467689fcd878cc0a2
data/README.txt CHANGED
@@ -1,2 +1,11 @@
1
1
 
2
- IshModels, soon to be WcoModels
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"
@@ -0,0 +1,9 @@
1
+
2
+ STRIPE_PK = 'pk_test_qr1QPmSpLdBFt1F7itdWJOj3'
3
+ STRIPE_SK = 'sk_test_ARuaXffdANoXLKAwUXDcp0v0'
4
+
5
+ Stripe.api_key = ::STRIPE_SK
6
+ Stripe.api_version = '2020-08-27'
7
+
8
+ PI_DRUP_PROD_USERNAME ||= 'test-1@piousbox.com'
9
+ PI_DRUP_PROD_PASSWD ||= 'KSUisl321,'
@@ -0,0 +1,6 @@
1
+
2
+ STRIPE_PK = ''
3
+ STRIPE_SK = ''
4
+
5
+ Stripe.api_key = ::STRIPE_SK
6
+ Stripe.api_version = '2020-08-27'
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.184
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-05 00:00:00.000000000 Z
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