messaging_client 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/helpers/sns_helper.rb +6 -2
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 62c9c566908c290110e41c455e63a5650dad343d733674dae90c203787bb2608
|
4
|
+
data.tar.gz: 1583cb8c8a557b213ae6762f45d2c775ed1dfb915a08e0881dd99232c12f45fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65f32df0c7bf46c68a01fedfd8f0be70d4a6a259138ff9f0dd99f3f00e4e118ea5286acf07535a9ec46c39a5f150e0c86c20e0a19fac7c6626cf73c42952c557
|
7
|
+
data.tar.gz: 93f53d8b2f163fe32f52c765fea8e616482f88d9c1198b649dabd337efaad9719c44bc1e46f3e12e6e100583067e9ccd36336b91dcacd52b0ec2c4383fcaeda3
|
data/app/helpers/sns_helper.rb
CHANGED
@@ -22,7 +22,11 @@ module SnsHelper
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def sns_data
|
25
|
-
@sns_data ||= ActiveSupport::JSON.decode(
|
25
|
+
@sns_data ||= ActiveSupport::JSON.decode(raw_data).symbolize_keys!
|
26
|
+
end
|
27
|
+
|
28
|
+
def raw_data
|
29
|
+
request.body.respond_to?(:string) ? request.body.string : request.body
|
26
30
|
end
|
27
31
|
|
28
32
|
def sns_message_id
|
@@ -36,4 +40,4 @@ module SnsHelper
|
|
36
40
|
def sns_duplicate_submission?
|
37
41
|
Rails.cache.read(sns_message_id)
|
38
42
|
end
|
39
|
-
end
|
43
|
+
end
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dwayne Macgowan
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -69,7 +69,7 @@ files:
|
|
69
69
|
homepage: ''
|
70
70
|
licenses: []
|
71
71
|
metadata: {}
|
72
|
-
post_install_message:
|
72
|
+
post_install_message:
|
73
73
|
rdoc_options: []
|
74
74
|
require_paths:
|
75
75
|
- lib
|
@@ -84,9 +84,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
|
88
|
-
|
89
|
-
signing_key:
|
87
|
+
rubygems_version: 3.0.1
|
88
|
+
signing_key:
|
90
89
|
specification_version: 4
|
91
90
|
summary: Client library for padma-messaging-ws
|
92
91
|
test_files: []
|