neon_email 0.0.4 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gcloudignore +17 -0
- data/Gemfile.lock +1 -1
- data/app.rb +11 -3
- data/lib/neon_email.rb +0 -1
- data/lib/neon_email/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c40d88f4c28b729a5e855912be0741a0ad0eb2526981cfe989ccb2bb17c294a5
|
4
|
+
data.tar.gz: 2ae8b9ecab535718a411771c3b1c155d76cb9dff3a4bc970d8d2a55e16299855
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54dbf8e7b80e6b20b9956060d20a5efbc032f03ccd0fab57f1dd71d2c54c31ab41b004393c0b62a237e9a8b6814d8954ffd4556ac107b30a6e2ac144f16852a7
|
7
|
+
data.tar.gz: f8e346a358dc12f7975bd8dbba457fc6bd05c3d57050912ac521ed0e7dff32a56765cf84cc17240b1039fa9616030ef34d96620f274a20d3f5b1b8f8325bdf9d
|
data/.gcloudignore
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file specifies files that are *not* uploaded to Google Cloud Platform
|
2
|
+
# using gcloud. It follows the same syntax as .gitignore, with the addition of
|
3
|
+
# "#!include" directives (which insert the entries of the given .gitignore-style
|
4
|
+
# file at that point).
|
5
|
+
#
|
6
|
+
# For more information, run:
|
7
|
+
# $ gcloud topic gcloudignore
|
8
|
+
#
|
9
|
+
.gcloudignore
|
10
|
+
# If you would like to upload your .git directory, .gitignore file or files
|
11
|
+
# from your .gitignore file, remove the corresponding line
|
12
|
+
# below:
|
13
|
+
.git
|
14
|
+
.gitignore
|
15
|
+
|
16
|
+
node_modules
|
17
|
+
#!include:.gitignore
|
data/Gemfile.lock
CHANGED
data/app.rb
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
require "functions_framework"
|
2
2
|
require "neon_email"
|
3
|
+
require "logger"
|
4
|
+
require "base64"
|
5
|
+
require "json"
|
3
6
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
+
logger = Logger.new($stdout)
|
8
|
+
|
9
|
+
WELCOME_EMAIL_TOPIC = "com.neon_law.outbound_email.welcome_email".freeze
|
10
|
+
|
11
|
+
FunctionsFramework.cloud_event WELCOME_EMAIL_TOPIC do |event|
|
12
|
+
data = JSON.parse(Base64.strict_decode64(event.data.fetch(:data)))
|
13
|
+
|
14
|
+
logger.info(data)
|
7
15
|
end
|
data/lib/neon_email.rb
CHANGED
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.1
|
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
|
@@ -45,6 +45,7 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- ".gcloudignore"
|
48
49
|
- ".gitignore"
|
49
50
|
- ".rspec"
|
50
51
|
- ".ruby-version"
|