wco_email 0.1.1.120 → 0.1.1.121
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 +4 -4
- data/app/controllers/wco_email/api/messages_controller.rb +10 -13
- data/config/routes.rb +2 -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: 2a5c9eb2af5614cb9338859078c5db52a149ffa38eac97583f56c67b2baf8ec8
|
|
4
|
+
data.tar.gz: a1b62e2c2dd0c1fa81552c605cac7de68915a14175f24a4f56d0f5ecee5a686b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e372ecc92bc00a4b547543eb6795153bd14f7dbec696c4e7ffb38416d767877c1a243c7085b0a058e61d699cf66e9738be5b5fa9c84bdd0df1ae46592f1fbdf9
|
|
7
|
+
data.tar.gz: c107296116034fd42e769dd1046f8b1ea0c2137d316a0372e0abf3e5647a55f4c3a36db81ae9cea854ccc4e1629d594598aa89e22bc062abc0b7357669ab47a9
|
|
@@ -28,24 +28,21 @@ class WcoEmail::Api::MessagesController < WcoEmail::ApiController
|
|
|
28
28
|
render status: :ok, json: { status: :ok }
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## from aws ses
|
|
37
|
-
## raw email
|
|
38
|
-
## NEVER BEEN USED!
|
|
39
|
-
=begin
|
|
40
|
-
def create
|
|
41
|
-
puts! params, 'params'
|
|
42
|
-
|
|
31
|
+
def create_ses
|
|
32
|
+
# puts! params, 'params'
|
|
43
33
|
stub = WcoEmail::MessageStub.find_or_create_by({
|
|
44
34
|
bucket: params[:bucket],
|
|
35
|
+
format: 'raw',
|
|
45
36
|
object_key: params[:object_key],
|
|
46
37
|
})
|
|
47
38
|
|
|
48
39
|
WcoEmail::MessageIntakeJob.perform_async( stub.id.to_s )
|
|
49
40
|
render status: :ok, json: { status: :ok }
|
|
50
41
|
end
|
|
51
|
-
|
|
42
|
+
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
data/config/routes.rb
CHANGED
|
@@ -17,7 +17,8 @@ WcoEmail::Engine.routes.draw do
|
|
|
17
17
|
get 'api/email_templates', to: '/wco_email/api/email_templates#index'
|
|
18
18
|
get 'api/tags/:tagname/conversations', to: '/wco_email/api/conversations#index'
|
|
19
19
|
|
|
20
|
-
post 'api/messages/from-postal/:secret', to: '/wco_email/api/messages#create_postal'
|
|
20
|
+
post 'api/messages/from-postal/:secret', to: '/wco_email/api/messages#create_postal' ## json
|
|
21
|
+
post 'api/messages/from-ses', to: '/wco_email/api/messages#create_ses' ## raw, and message already in bucket
|
|
21
22
|
|
|
22
23
|
resources :configs
|
|
23
24
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wco_email
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.1.
|
|
4
|
+
version: 0.1.1.121
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Victor Pudeyev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-s3
|