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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08c8b22c41e226259fc405001baef9de188da57c0f281d32948d67fece337c6b'
4
- data.tar.gz: e90c79d2a1ee993af5d0066d34732983e126b29f846b5237371808a585f36e0d
3
+ metadata.gz: be4b6fb025dd2fe30c4d497fa3e7d46e2ee4eabecb3b47095a6265d1b299ebeb
4
+ data.tar.gz: f04321b3dc8ebde85bc5440f2aaca06b5eccd8b19fcd30b59ff1aac631a325ce
5
5
  SHA512:
6
- metadata.gz: e246399d8f834bb77145fe4537068747cb529b194996ed325cec3ced10a701f8509b446905ad18a0f6599195a6af130b76c55cc16ef6b3fa4e8d8c337c9921af
7
- data.tar.gz: c141597c95755e79ce4a99044d83842ace1a83e98274bfe7c7f8312df55477fdfa774ffcc2db5d2d14d365cba4cf2a1ee38fba99e0a4009453861e532e730589
6
+ metadata.gz: 67e899e8d39c93fba77c44221677137146ecd3214d760c2d434c771de435649040f9bfa41c24acbf345a854aee44c2dae471aaf1a80545308f556679a8440c27
7
+ data.tar.gz: 0add3bb7214275ff319b4b46f5c157dd82364f17d32ccea18b96dfc9c7a4807346631abdbe554c2bbb294c80b3be2747ea64676a45c1f9bed7bd57fa728bc6f9
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.4)
5
5
  functions_framework (= 0.9.0)
6
6
  neon_schemas (= 0.1.1)
7
7
 
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
- FunctionsFramework.cloud_event "neon_law.welcome_email" do |event|
8
- logger.info event
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
@@ -1,3 +1,3 @@
1
1
  module NeonEmail
2
- VERSION = "0.0.8"
2
+ VERSION = "0.1.4"
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.8
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-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