neon_email 0.0.9 → 0.1.1

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: ad78eed256499a05d240ba99af40822ec4c985a1623d122e9fede55924ed5a80
4
- data.tar.gz: f5f653716b812dc9e965f4e5087911c23ee9ed2593c12f71e906e719fe90c5a7
3
+ metadata.gz: c40d88f4c28b729a5e855912be0741a0ad0eb2526981cfe989ccb2bb17c294a5
4
+ data.tar.gz: 2ae8b9ecab535718a411771c3b1c155d76cb9dff3a4bc970d8d2a55e16299855
5
5
  SHA512:
6
- metadata.gz: d5e47e66cf170397b079d1b24175df6acb3067cb08674a6cc4009c11e080bb906c0491909279dc216c79bc377545ad83a8a58e7d552abbd9e9e9b8cc28869f13
7
- data.tar.gz: 509b61b13a28d52e03912bb23a2ab3d2457adfcb0dcb6be2de0e27857f4456b57b5cd66618150f7e599d8d33fc01c83ca0bbee826453a0428584a1e2b1c5142c
6
+ metadata.gz: 54dbf8e7b80e6b20b9956060d20a5efbc032f03ccd0fab57f1dd71d2c54c31ab41b004393c0b62a237e9a8b6814d8954ffd4556ac107b30a6e2ac144f16852a7
7
+ data.tar.gz: f8e346a358dc12f7975bd8dbba457fc6bd05c3d57050912ac521ed0e7dff32a56765cf84cc17240b1039fa9616030ef34d96620f274a20d3f5b1b8f8325bdf9d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neon_email (0.0.8)
4
+ neon_email (0.1.1)
5
5
  functions_framework (= 0.9.0)
6
6
  neon_schemas (= 0.1.1)
7
7
 
data/app.rb CHANGED
@@ -1,11 +1,15 @@
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
9
  WELCOME_EMAIL_TOPIC = "com.neon_law.outbound_email.welcome_email".freeze
8
10
 
9
11
  FunctionsFramework.cloud_event WELCOME_EMAIL_TOPIC do |event|
10
- logger.info event.data
12
+ data = JSON.parse(Base64.strict_decode64(event.data.fetch(:data)))
13
+
14
+ logger.info(data)
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module NeonEmail
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.1"
3
3
  end
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.0.9
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-14 00:00:00.000000000 Z
11
+ date: 2021-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: neon_schemas