messaging_client 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/sns_helper.rb +7 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7ae3b5862c27c542204ed8e43a666d66a2723a265da218945758c516bea7840
4
- data.tar.gz: b6d9d637d924811c7c9ae8622ffdd1d642e351240756cb69785589f5a093ff7e
3
+ metadata.gz: 806950664bcd675248588afc88fd7928351122b5d4da758692cb34fabd4f76b3
4
+ data.tar.gz: 9d116c4b6cbacbdf9ba5ee202bac631255be01fe508937a3db42e9c4b0c3ff8b
5
5
  SHA512:
6
- metadata.gz: 208418ef7fd3bf033813628cf7d04b149bae4989edf2004ec048c92f74f58459f03b5cf285435146a34284558c87a86e3b90195ee67cef24c8a8e380f2a1a6b6
7
- data.tar.gz: 7178c4808f32313ed4db189b4fae9473f589858d4f56692c4e8ceb9435558c3e8b5f0b50fed9ab3da2596eb2e4ed841eb71cafd6b399775431719c0196343394
6
+ metadata.gz: b33d4d650cc74b745c90d78855aadce1ef426f6c46bbd019d64742af714ddb982ad70dfeae722f83661ac2dbc5c49060c2109c53f875b30da5c010d2ad15cfbf
7
+ data.tar.gz: c928a574626cd5b2c01838d40be69d0246a3d12fdd0d4971537a616867b88956ef782b4745dee0ba96b996115b33d234d934ee970ef3748049514d30d77938b9
@@ -26,7 +26,13 @@ module SnsHelper
26
26
  end
27
27
 
28
28
  def raw_data
29
- request.body.respond_to?(:string) ? request.body.string : request.body
29
+ if request.body.respond_to?(:string)
30
+ request.body.string
31
+ elsif request.body.respond_to?(:read)
32
+ request.body.read
33
+ else
34
+ request.body
35
+ end
30
36
  end
31
37
 
32
38
  def sns_message_id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messaging_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-19 00:00:00.000000000 Z
11
+ date: 2022-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties