action_smser 2.2.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/app/controllers/action_smser/delivery_reports_controller.rb +1 -1
- data/lib/action_smser/delivery_methods/nexmo.rb +2 -1
- data/lib/action_smser/version.rb +1 -1
- data/test/dummy/log/test.log +7371 -0
- data/test/functional/action_smser/delivery_reports_controller_test.rb +2 -1
- data/test/test_helper.rb +1 -1
- data/test/unit/action_smser/delivery_methods/nexmo_test.rb +5 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 403d072821666426ee99e95505eb5fde76e6d379
|
4
|
+
data.tar.gz: 9c1103fb3fba5714de9e0a96b4a370d5f07c6743
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84856f1011de1c6740307cd53247c0261208a6725829c26480f9462d8a185962d7aebd8cc6a6286e694aaaf3253df7a5398f20009e525de2403a01a343354b03
|
7
|
+
data.tar.gz: 1e11f7071961f3a3ff3955f8c713fb2fed5bbcb187448d9cdb7b0b500f4237095f0db2e9b5b5e362de4f91127e2fb5821b374bf2af51af4eaaafdea93f44713b
|
data/README.md
CHANGED
@@ -136,7 +136,8 @@ class ActionSmserConfigExample
|
|
136
136
|
end
|
137
137
|
|
138
138
|
# This has to return array of hashes. In hash msg_id is the key and other params are updated to db
|
139
|
-
def self.process_delivery_report(
|
139
|
+
def self.process_delivery_report(request)
|
140
|
+
params = request.params
|
140
141
|
processable_array = []
|
141
142
|
if params["DeliveryReport"] && params["DeliveryReport"]["message"]
|
142
143
|
reports = params["DeliveryReport"]["message"]
|
@@ -11,7 +11,7 @@ module ActionSmser
|
|
11
11
|
|
12
12
|
ActionSmser::Logger.info("Gateway_commit found parser for gateway: #{params['gateway']}")
|
13
13
|
|
14
|
-
dr_var_array = ActionSmser.delivery_options[:gateway_commit][params['gateway']].send(:process_delivery_report,
|
14
|
+
dr_var_array = ActionSmser.delivery_options[:gateway_commit][params['gateway']].send(:process_delivery_report, request)
|
15
15
|
dr_array = []
|
16
16
|
|
17
17
|
if !dr_var_array.blank?
|
@@ -53,7 +53,8 @@ module ActionSmser::DeliveryMethods
|
|
53
53
|
|
54
54
|
# Callback message status handling
|
55
55
|
# This has to return array of hashes. In hash msg_id is the key and other params are updated to db
|
56
|
-
def self.process_delivery_report(
|
56
|
+
def self.process_delivery_report(request)
|
57
|
+
params = request.params
|
57
58
|
processable_array = []
|
58
59
|
if msg_id = params["messageId"]
|
59
60
|
processable_array << {'msg_id' => params["messageId"], 'status' => params['status']}
|
data/lib/action_smser/version.rb
CHANGED