talktome 1.3.3 → 2.0.2

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: 61b3186927b959dff89432173c8144e50805115dfb2ce270cb82c6612797fd21
4
- data.tar.gz: 0e2f96a0d4fcbd97e958281d0ee474afdf0dc57483181bc5427eb794c21f47e4
3
+ metadata.gz: 9c440231a08054f22280bfdd1181504e4d8165d560abefdde9e47f8c61e1bb8a
4
+ data.tar.gz: 0b581c1143de1727521e9e1f02a575dfb9d5329ec81760430f9accd5fce7c595
5
5
  SHA512:
6
- metadata.gz: 223de995f0f58b54c09039c63228c1a4ffa581b7dbe82cf3dc2b410b03a599c06c3e88bed88ce6e89a5fbf2e78882eb40a8b55e85a88312639c5279d43a4da04
7
- data.tar.gz: 83e62ce22e6714376bcef8adaf027ce34e2f490aa88aa80d94e19fe3cd97c47a319ca558679ffc53bf0694825103d84d7a96dc85ec8be4bb3ebeb9451632d49c
6
+ metadata.gz: '0083ac9839d23e92f285c5e9d688083497ce8bc3957d7f1bb6c7fca49534b5c9d4677ccda8171bfd39e55ac16622acbfd46a4ebd654185eba217a5547a9f4c2e'
7
+ data.tar.gz: 43316252a3c9a47a1b6329d0c3c95aa17de447d2d050834316755c78f02550e07c33f8a7892cfff1e69e51db3a7eae86cedeef7cc98c002a707eaf80f1d32183
data/README.md CHANGED
@@ -30,7 +30,7 @@ a reusable backend for contact forms.
30
30
 
31
31
  ```
32
32
  docker run \
33
- -p4567:4567 \
33
+ -p 3000:3000 \
34
34
  -e TALKTOME_EMAIL_DEFAULT_FROM=info@mydomain.com
35
35
  -e TALKTOME_EMAIL_DEFAULT_TO=support@mydomain.com
36
36
  enspirit/talktome
@@ -42,7 +42,7 @@ Send an contact-us email through the web api using curl, as follows:
42
42
  curl -XPOST \
43
43
  -H'Content-Type: application/json' \
44
44
  -d'{"reply_to": "someone@foo.bar", "message": "Hello"}' \
45
- http://127.0.0.1:4567/contact-us/
45
+ http://127.0.0.1:3000/contact-us/
46
46
  ```
47
47
 
48
48
  This web API does not allow specifying `from` and `to` as input data to avoid
@@ -87,26 +87,27 @@ The easiest way to configure Talktome is through environment variables. The foll
87
87
  ones are supported:
88
88
 
89
89
  ```
90
- TALKTOME_DEBUG when set enables the dumping of sent messages to ./tmp folder
90
+ TALKTOME_DEBUG when set enables the dumping of sent messages to ./tmp folder
91
91
 
92
- TALKTOME_EMAIL_DELIVERY smtp, file or test (see ruby Mail library)
93
- TALKTOME_EMAIL_DEFAULT_FROM default From: to use for email sending
94
- TALKTOME_EMAIL_DEFAULT_REPLYTO default Reply-To: to use for email sending
95
- TALKTOME_EMAIL_DEFAULT_TO default To: to use for email sending
92
+ TALKTOME_EMAIL_DELIVERY smtp, file or test (see ruby Mail library)
93
+ TALKTOME_EMAIL_DEFAULT_FROM default From: to use for email sending
94
+ TALKTOME_EMAIL_DEFAULT_REPLYTO default Reply-To: to use for email sending
95
+ TALKTOME_EMAIL_DEFAULT_TO default To: to use for email sending
96
96
 
97
- TALKTOME_EMAIL_SUBJECT Set the subject of the default "contact us" email
98
- TALKTOME_EMAIL_FOOTER Set the footer of the default "contact us" email
97
+ TALKTOME_EMAIL_SUBJECT Set the subject of the default "contact us" email
98
+ TALKTOME_EMAIL_FOOTER Set the footer of the default "contact us" email
99
99
 
100
- TALKTOME_LAYOUTS_FOLDER Set the folder to use for messaging layouts
100
+ TALKTOME_LAYOUTS_FOLDER Set the folder to use for messaging layouts
101
101
 
102
- TALKTOME_SMTP_ADDRESS host address for smtp sending
103
- TALKTOME_SMTP_PORT port of smtp server to use
104
- TALKTOME_SMTP_DOMAIN sending domain
105
- TALKTOME_SMTP_USER user for smtp authentication
106
- TALKTOME_SMTP_PASSWORD password for smtp authentication
107
- TALKTOME_SMTP_STARTTLS_AUTO true or false (see ruby Mail library)
102
+ TALKTOME_SMTP_ADDRESS host address for smtp sending
103
+ TALKTOME_SMTP_PORT port of smtp server to use
104
+ TALKTOME_SMTP_DOMAIN sending domain
105
+ TALKTOME_SMTP_USER user for smtp authentication
106
+ TALKTOME_SMTP_PASSWORD password for smtp authentication
107
+ TALKTOME_SMTP_STARTTLS_AUTO true or false (see ruby Mail library)
108
+ TALKTOME_SMTP_OPENSSL_VERIFY_MODE none or peer (see ruby Mail library). Defaults to peer.
108
109
 
109
- TALKTOME_BEARER_SECRET secret for the webapi, to let send emails to anyone
110
+ TALKTOME_BEARER_SECRET secret for the webapi, to let send emails to anyone
110
111
  ```
111
112
 
112
113
  ## Hacking Talktome
data/lib/talktome/app.rb CHANGED
@@ -18,8 +18,9 @@ module Talktome
18
18
  VALIDATION_SCHEMA = ::Finitio.system(<<~FIO)
19
19
  @import finitio/data
20
20
  Attachment = {
21
- mime_type : String
22
- content : .Object
21
+ mime_type : String
22
+ content : .Object
23
+ encoding :? String
23
24
  }
24
25
  Email = String(s | s =~ /^[^@]+@[^@]+$/ )
25
26
  {
@@ -1,8 +1,8 @@
1
1
  module Talktome
2
2
  module Version
3
- MAJOR = 1
4
- MINOR = 3
5
- TINY = 3
3
+ MAJOR = 2
4
+ MINOR = 0
5
+ TINY = 2
6
6
  end
7
7
  VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"
8
8
  end
data/lib/talktome.rb CHANGED
@@ -58,7 +58,8 @@ module Talktome
58
58
  domain: ENV['TALKTOME_SMTP_DOMAIN'],
59
59
  user_name: ENV['TALKTOME_SMTP_USER'],
60
60
  password: ENV['TALKTOME_SMTP_PASSWORD'],
61
- enable_starttls_auto: (ENV['TALKTOME_SMTP_STARTTLS_AUTO'] != 'false')
61
+ enable_starttls_auto: (ENV['TALKTOME_SMTP_STARTTLS_AUTO'] != 'false'),
62
+ openssl_verify_mode: ENV['TALKTOME_SMTP_OPENSSL_VERIFY_MODE'] || "peer",
62
63
  }) if email_delivery == :smtp
63
64
 
64
65
  email_config.merge!({
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talktome
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-07 00:00:00.000000000 Z
11
+ date: 2021-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -75,7 +75,7 @@ dependencies:
75
75
  version: '2'
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
- version: 2.6.6
78
+ version: 2.7.1
79
79
  type: :runtime
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
@@ -85,7 +85,7 @@ dependencies:
85
85
  version: '2'
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: 2.6.6
88
+ version: 2.7.1
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: mustache
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -120,7 +120,7 @@ dependencies:
120
120
  requirements:
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: '2.0'
123
+ version: '2.1'
124
124
  - - "<"
125
125
  - !ruby/object:Gem::Version
126
126
  version: '3.0'
@@ -130,7 +130,7 @@ dependencies:
130
130
  requirements:
131
131
  - - ">="
132
132
  - !ruby/object:Gem::Version
133
- version: '2.0'
133
+ version: '2.1'
134
134
  - - "<"
135
135
  - !ruby/object:Gem::Version
136
136
  version: '3.0'
@@ -168,6 +168,20 @@ dependencies:
168
168
  - - "~>"
169
169
  - !ruby/object:Gem::Version
170
170
  version: '1.1'
171
+ - !ruby/object:Gem::Dependency
172
+ name: puma
173
+ requirement: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ version: '5.5'
178
+ type: :runtime
179
+ prerelease: false
180
+ version_requirements: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: '5.5'
171
185
  description: Talktome helps you talk to users by email, messaging, sms, etc. It abstracts
172
186
  the messaging mechanisms and lets you manage message templates easily.
173
187
  email: blambeau@gmail.com