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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/app/helpers/sns_helper.rb +6 -2
  3. metadata +6 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ff630975222040900c94df5779d374cd2ef58dd6
4
- data.tar.gz: 68024fa7360cbc6a943e3336decbefce4bc7cc6f
2
+ SHA256:
3
+ metadata.gz: 62c9c566908c290110e41c455e63a5650dad343d733674dae90c203787bb2608
4
+ data.tar.gz: 1583cb8c8a557b213ae6762f45d2c775ed1dfb915a08e0881dd99232c12f45fb
5
5
  SHA512:
6
- metadata.gz: d239a092b92df8472432c90baaf47dcd75e18cd30863e9c5454a9e535559f7dbb7379d6d9014e1853a9f2f51eb9025ab60b58ef7968db6182ac4572815be7a87
7
- data.tar.gz: e3d5ca5cbff5325739f39905eef7ba91af8e4f4a24642d95d3239d140b72e4531107d98dbd241b7538ec63040a277a23a599f2646bd78c1e6f27f993d03e3153
6
+ metadata.gz: 65f32df0c7bf46c68a01fedfd8f0be70d4a6a259138ff9f0dd99f3f00e4e118ea5286acf07535a9ec46c39a5f150e0c86c20e0a19fac7c6626cf73c42952c557
7
+ data.tar.gz: 93f53d8b2f163fe32f52c765fea8e616482f88d9c1198b649dabd337efaad9719c44bc1e46f3e12e6e100583067e9ccd36336b91dcacd52b0ec2c4383fcaeda3
@@ -22,7 +22,11 @@ module SnsHelper
22
22
  end
23
23
 
24
24
  def sns_data
25
- @sns_data ||= ActiveSupport::JSON.decode(request.body).symbolize_keys!
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.0
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: 2018-03-28 00:00:00.000000000 Z
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
- rubyforge_project:
88
- rubygems_version: 2.6.11
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: []