action_smser 3.3.0 → 3.4.1
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 +4 -4
- data/README.md +3 -3
- data/app/models/action_smser/delivery_report.rb +1 -1
- data/app/views/action_smser/delivery_reports/index.html.erb +1 -1
- data/lib/action_smser/delivery_methods/nexmo.rb +1 -1
- data/lib/action_smser/version.rb +1 -1
- data/test/dummy/log/test.log +7583 -52757
- data/test/test_helper.rb +2 -1
- data/test/unit/action_smser/delivery_methods/nexmo_test.rb +1 -1
- metadata +13 -17
- data/test/dummy/log/development.log +0 -37
- data/test/dummy/log/production.log +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 024d240d516cca96ce1b22bb43ed2763eb81a7fe163ef7c76519f2658dda238a
|
|
4
|
+
data.tar.gz: e65ce4c436a3254dff2bb736db184e917f913fc628172a4de8ab123bd01827d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83b67877c1bc55d5f4769c77a1bdac1bafd05a3d8081c26ee6d6568669e55fa5bbe62a9bd54f6ea2daad60f4e9aa3341880da91dbe7c896ed5b81f7e7de3ff2d
|
|
7
|
+
data.tar.gz: 67eb1ad1705aeb1e721f7d48f409fbc04b7f2ee1c50637e03e8c39b2a76d0a9486dc1da4784a20732d360274dc3112381b449d25b46748a21492fa30aa22e940
|
data/README.md
CHANGED
|
@@ -81,7 +81,7 @@ end
|
|
|
81
81
|
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
**Nexmo** (http://nexmo.com/) is supported
|
|
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
|
|
@@ -230,8 +230,8 @@ end
|
|
|
230
230
|
Submit suggestions or feature requests as a GitHub Issue or Pull Request. Remember to update tests. Tests are quite extensive.
|
|
231
231
|
|
|
232
232
|
Check github actions for what environments are supported: https://github.com/holli/action_smser/blob/master/.github/workflows/ci.yaml and
|
|
233
|
-
https://github.com/holli/action_smser/actions
|
|
234
|
-
|
|
233
|
+
https://github.com/holli/action_smser/actions . See https://github.com/holli/action_smser/blob/master/CHANGELOG.md for changes and to see what
|
|
234
|
+
version to use with older Rails versions.
|
|
235
235
|
|
|
236
236
|
|
|
237
237
|
### Similar gems
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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
|
data/lib/action_smser/version.rb
CHANGED