neon_email 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/app.rb +3 -1
  3. data/lib/neon_email/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c40d88f4c28b729a5e855912be0741a0ad0eb2526981cfe989ccb2bb17c294a5
4
- data.tar.gz: 2ae8b9ecab535718a411771c3b1c155d76cb9dff3a4bc970d8d2a55e16299855
3
+ metadata.gz: 89a438887ec723f38ce45670094bd5a6b0f82c91cff68a5c32225974d1d8939d
4
+ data.tar.gz: 9ed2bf07e591f1d995cc39ae0a42238519ae28997b89b6d71c435701d6d6ff65
5
5
  SHA512:
6
- metadata.gz: 54dbf8e7b80e6b20b9956060d20a5efbc032f03ccd0fab57f1dd71d2c54c31ab41b004393c0b62a237e9a8b6814d8954ffd4556ac107b30a6e2ac144f16852a7
7
- data.tar.gz: f8e346a358dc12f7975bd8dbba457fc6bd05c3d57050912ac521ed0e7dff32a56765cf84cc17240b1039fa9616030ef34d96620f274a20d3f5b1b8f8325bdf9d
6
+ metadata.gz: 547bec39ca5c44eb842bda76fac2a9e3d06a90ef9e1a7ba6b7d6adc2451e36fcf709338a6b50ea982f8d23ca65d89113858f481b9dc217468339fa0e2b47e1ca
7
+ data.tar.gz: 83639e6778b6cf49cf40adf8d7f4283ed19029589ec2287f5084ec038d18ee176aa1c112ad14770747e88c7203ac899f0ae351c6b830a19f96b176067cf51f88
data/app.rb CHANGED
@@ -9,7 +9,9 @@ logger = Logger.new($stdout)
9
9
  WELCOME_EMAIL_TOPIC = "com.neon_law.outbound_email.welcome_email".freeze
10
10
 
11
11
  FunctionsFramework.cloud_event WELCOME_EMAIL_TOPIC do |event|
12
- data = JSON.parse(Base64.strict_decode64(event.data.fetch(:data)))
12
+ data = JSON.parse(
13
+ Base64.strict_decode64(event.data.fetch(:message).fetch(:data))
14
+ )
13
15
 
14
16
  logger.info(data)
15
17
  end
@@ -1,3 +1,3 @@
1
1
  module NeonEmail
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neon_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neon Law