action_smser 3.3.0 → 3.4.0

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
  SHA256:
3
- metadata.gz: 8f18ea3906e275b9c2d5fc2eb19fa78a7e695e5fdfd7b39aa64b87984bd47465
4
- data.tar.gz: a349ea35043ee41f61a22c31d1d091d530c6c3c723aa2b250b0a5446185b3a99
3
+ metadata.gz: 5425a318eda9666989a41c3b9a2d4fe76d5c74ce94a803958401e3fb7277a564
4
+ data.tar.gz: 90dcfd54c1e8555520e65e546a2a30f536c2dd625b86a15daa4422f1eb00bfd3
5
5
  SHA512:
6
- metadata.gz: 499f96f282125e32dc96c3cab6826c991a55ba2622bac3c2c2e1c3677c1aa8b5c7aad0500ff0d99ef8ac865264c27abb7db937f51da39387a3c0a5a69192fb32
7
- data.tar.gz: 9339fb23635714dee481cd65ef087d7476e7a7975a7bb1caaa8017df7be63069660618a55fde797e126ccaa607b7f032288ff50276d578703dd3857e3943e716
6
+ metadata.gz: cd1561a68d0805e9f1e4a5b0034a61caa929d481fda243dc067e737aabf7b602d9196f810bba58e3456dee0ab2afcb39c19b7e32e6bfbe20ab5e893861e82881
7
+ data.tar.gz: 0e2c0bd5f27b3a5f90fce5b82ed4b30f84fef21e30154774f82b40f992a43eb637680668786778926e89f568e4abad5441ad060915edb2065e95635318fe6043
data/README.md CHANGED
@@ -81,7 +81,7 @@ end
81
81
 
82
82
  ```
83
83
 
84
- **Nexmo** (http://nexmo.com/) is supported also.
84
+ **Vonage/Nexmo** (http://nexmo.com/) is supported. Nexmo was renamed to Vonage, but naming has not been updated this lib.
85
85
 
86
86
  ```
87
87
  ActionSmser.delivery_options[:delivery_method] = :nexmo
@@ -27,7 +27,7 @@ if defined?(ActiveRecord)
27
27
  def status=(stat, skip_log = false)
28
28
  self[:status] = stat
29
29
  self.status_updated_at = Time.now
30
- add_log("#{Time.now.to_s(:db)}: #{stat}") unless skip_log
30
+ add_log("#{Time.now.to_fs(:db)}: #{stat}") unless skip_log
31
31
  end
32
32
 
33
33
  def add_log(str)
@@ -39,7 +39,7 @@
39
39
 
40
40
 
41
41
  <h1>Delivery Reports Summary for
42
- (<span style="font-size: smaller"><%= "#{time_span.first.to_s(:db)} => #{time_span.last.to_s(:db)}" %></span>)
42
+ (<span style="font-size: smaller"><%= "#{time_span.first.to_fs(:db)} => #{time_span.last.to_fs(:db)}" %></span>)
43
43
  <%= "for #{params[:gateway]}" unless params[:gateway].blank? %>
44
44
  </h1>
45
45
 
@@ -46,7 +46,7 @@ module ActionSmser::DeliveryMethods
46
46
  end
47
47
 
48
48
  def self.deliver_path(sms, to, options)
49
- path = "/sms/json?username=#{options[:username]}&password=#{options[:password]}&ttl=#{sms.ttl_to_i*1000}&status-report-req=#{options[:status_report_req]}&from=#{sms.from_encoded}&to=#{to}&text=#{sms.body_escaped}"
49
+ path = "/sms/json?username=#{options[:username]}&password=#{options[:password]}&ttl=#{sms.ttl_to_i*1000}&status-report-req=#{options[:status_report_req]}&from=#{sms.from_escaped}&to=#{to}&text=#{sms.body_escaped}"
50
50
  path += "&type=#{options[:type]}" if options[:type]
51
51
  path
52
52
  end
@@ -1,3 +1,3 @@
1
1
  module ActionSmser
2
- VERSION = "3.3.0"
2
+ VERSION = "3.4.0"
3
3
  end