sms_traffic_sdk 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sms_traffic/client/deliver_reply.rb +2 -3
- data/lib/sms_traffic/sms.rb +1 -1
- data/lib/sms_traffic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eb747b3922af353ca77e265506afa922d1cf736d1b73e744ddaaee3fe0a2d4d
|
4
|
+
data.tar.gz: 261aa9a1507a0f72c438b0175f506eb2c12725dc22d27c246f5278418b609216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 640f165d9e8ed5e9a778e6f35b2e6a735b666e50510c401c75dc28ddfb642a471cbb64fcf1ca3eacfb64fba2e8b7e3e6185a383d2c46b2957041bba73059da09
|
7
|
+
data.tar.gz: 27e9bad83adcce3984164a924e37cce3ae6d6e9339e465f3eb6ce394abd905b97e2708b2574233ee2c51e0cace159dcf3a19e51beb57da3f883c308fb21a8c73
|
@@ -4,9 +4,7 @@ module SmsTraffic
|
|
4
4
|
OK_REPLY = 'OK'.freeze unless const_defined?(:OK_REPLY)
|
5
5
|
|
6
6
|
def ok?
|
7
|
-
|
8
|
-
rescue NoMethodError
|
9
|
-
false
|
7
|
+
result == OK_REPLY && message_infos
|
10
8
|
end
|
11
9
|
|
12
10
|
def error?
|
@@ -44,6 +42,7 @@ module SmsTraffic
|
|
44
42
|
message_info = fetch_value(message_infos, :message_info)
|
45
43
|
|
46
44
|
return [fetch_value(message_info, :sms_id)] if message_info&.size == 1
|
45
|
+
return [] if message_info.nil?
|
47
46
|
|
48
47
|
message_info.each_with_object({}) do |info, hash|
|
49
48
|
hash[fetch_value(info, :phone)] = fetch_value(info, :sms_id)
|
data/lib/sms_traffic/sms.rb
CHANGED
data/lib/sms_traffic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sms_traffic_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rybolovlev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|