sms_sender_cbf 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75e9afbd0a829794a203ada975c2bc2a232edfb3
4
- data.tar.gz: 476842fc836b6948846f1557140fb4f90f6061e7
3
+ metadata.gz: 6a566e02be206e3a7ce03176638f8edf51f84dda
4
+ data.tar.gz: 757eeac2440ee762bae287abd7a3c6fced5a51a3
5
5
  SHA512:
6
- metadata.gz: 7bee8ac1c6036d05258bdd1b9fe75ddd71d43567eadfb0870648b7798ed4eb9e0945a29b36acb2aeeee75fe2fdc8e9f36a76a5ec2a3eacdef2d99a06264c269e
7
- data.tar.gz: f5cc437ad6b626751cc9c310a55dc80bebd6b318faec904cfdc8cc16f7bc26ba67d313b50bb849dadc13b669453ba32f92477d890cd911d02b66b349b6781a42
6
+ metadata.gz: a4a0f7899794eabf0eb1b5e653203f8350b0abe962f940ac14b99f4b5d7b76a25dbda402927430fe682aa8681602861b698deada4c3b0c6b81afaaf06e5ff763
7
+ data.tar.gz: 58ab6531e977b8f713a7e8bdf09fa33a5466d9bc47de3147c69924bb4c89a4dba15903657cb2d4153e45b11897c7482ae8be89cc399e4ba84c4bfdca1c26147f
@@ -21,7 +21,10 @@ module SmsSenderCbf
21
21
  'DA' => mobile_number_normalized,
22
22
  'SA' => sender_normalized,
23
23
  'M' => message_normalized,
24
- 'DR' => '2'
24
+ # However according to documentation this parameter should be set to 2,
25
+ # based on personal test i've come to conclusion that setting it to 1
26
+ # works correctly.
27
+ 'DR' => '1'
25
28
  }
26
29
  params.merge!({ 'DC' => '4' }) unless message.ascii_only?
27
30
  body=URI.encode_www_form(params)
@@ -1,3 +1,3 @@
1
1
  module SmsSenderCbf
2
- VERSION = "1.5.2"
2
+ VERSION = "1.5.3"
3
3
  end
@@ -268,3 +268,21 @@ SmsSenderCbfTest: test_query_deliveries_test
268
268
  --------------------------------
269
269
  SmsSenderCbfTest: test_send_test
270
270
  --------------------------------
271
+ -----------------------------------------------------------------------------------
272
+ SmsSenderCbfTest: test_module_should_respod_to_supported_methods_with_proper_values
273
+ -----------------------------------------------------------------------------------
274
+ --------------------------------------------
275
+ SmsSenderCbfTest: test_query_deliveries_test
276
+ --------------------------------------------
277
+ --------------------------------
278
+ SmsSenderCbfTest: test_send_test
279
+ --------------------------------
280
+ -----------------------------------------------------------------------------------
281
+ SmsSenderCbfTest: test_module_should_respod_to_supported_methods_with_proper_values
282
+ -----------------------------------------------------------------------------------
283
+ --------------------------------------------
284
+ SmsSenderCbfTest: test_query_deliveries_test
285
+ --------------------------------------------
286
+ --------------------------------
287
+ SmsSenderCbfTest: test_send_test
288
+ --------------------------------
@@ -14,7 +14,7 @@ class SmsSenderCbfTest < ActiveSupport::TestCase
14
14
  else
15
15
  # Config webmock for sending messages
16
16
  test_messages.each do |m|
17
- request_body_header = {:body => {'S' => 'H', 'UN' => ENV['username'], 'P' => ENV['password'], 'DA' => SmsSenderCbf::Normalizer.normalize_number(ENV['mobile_number']), 'M' => SmsSenderCbf::Normalizer.normalize_message(m), 'DR' => '2'}, :headers => {'Content-Type'=>'application/x-www-form-urlencoded'}}
17
+ request_body_header = {:body => {'S' => 'H', 'UN' => ENV['username'], 'P' => ENV['password'], 'DA' => SmsSenderCbf::Normalizer.normalize_number(ENV['mobile_number']), 'M' => SmsSenderCbf::Normalizer.normalize_message(m), 'DR' => '1'}, :headers => {'Content-Type'=>'application/x-www-form-urlencoded'}}
18
18
  request_body_header[:body]['SA'] = ENV['sender'] if !ENV['sender'].blank?
19
19
  request_body_header[:body]['DC'] = '4' if !m.ascii_only?
20
20
  WebMock::API.stub_request(:post, 'sms1.cardboardfish.com:9001/HTTPSMS').
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sms_sender_cbf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mojtaba Ghorbanalibeik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-23 00:00:00.000000000 Z
12
+ date: 2016-07-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Send sms via cardboadrfish.com
15
15
  email: