wco_models 3.1.0.183 → 3.1.0.187

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bef02a93fe4e4480666be23bfd4afef89e4072c440cb9c83b73d6a0c06529373
4
- data.tar.gz: 38664f8931467912373172ebda06e3a5e59661f6bd65b20664e791ff628c028b
3
+ metadata.gz: 5c92eec35ddd3ac3529aaae7038f966e59720968c0752b986e70ff63eb6d68d8
4
+ data.tar.gz: 2ec53d7a8343064c691ca765ee5dfcf2f45466a2052125c11c302efcedb37e82
5
5
  SHA512:
6
- metadata.gz: 063db7ebd159c0ef132fb371f3c1aec1903e21f31c2637eccd335a616dd995639dba06640b49faa6b336ecb604a0baad5af2be1e4d33d4a208dc1ea5ee367917
7
- data.tar.gz: 332f7f6c561babde635011fadf6c6e2e2c4c345a6a40bf6a9a622c781fdf484655169e07b881af5cecda166ec683e86537888c10dc1dc52c9b0cffe520c43781
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.183
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-04 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