neon_email 0.0.8 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app.rb +12 -2
- data/lib/neon_email/version.rb +1 -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: be4b6fb025dd2fe30c4d497fa3e7d46e2ee4eabecb3b47095a6265d1b299ebeb
|
4
|
+
data.tar.gz: f04321b3dc8ebde85bc5440f2aaca06b5eccd8b19fcd30b59ff1aac631a325ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67e899e8d39c93fba77c44221677137146ecd3214d760c2d434c771de435649040f9bfa41c24acbf345a854aee44c2dae471aaf1a80545308f556679a8440c27
|
7
|
+
data.tar.gz: 0add3bb7214275ff319b4b46f5c157dd82364f17d32ccea18b96dfc9c7a4807346631abdbe554c2bbb294c80b3be2747ea64676a45c1f9bed7bd57fa728bc6f9
|
data/Gemfile.lock
CHANGED
data/app.rb
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
require "functions_framework"
|
2
2
|
require "neon_email"
|
3
3
|
require "logger"
|
4
|
+
require "base64"
|
5
|
+
require "json"
|
4
6
|
|
5
7
|
logger = Logger.new($stdout)
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
+
WELCOME_EMAIL_TOPIC = "com.neon_law.outbound_email.welcome_email".freeze
|
10
|
+
|
11
|
+
FunctionsFramework.cloud_event WELCOME_EMAIL_TOPIC do |event|
|
12
|
+
logger.info "hey you!"
|
13
|
+
|
14
|
+
data = JSON.parse(
|
15
|
+
Base64.strict_decode64(event.data.fetch("message").fetch("data"))
|
16
|
+
)
|
17
|
+
|
18
|
+
logger.info(data)
|
9
19
|
end
|
data/lib/neon_email/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neon_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neon Law
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: neon_schemas
|