vodem_sms 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +3 -0
- data/lib/vodem_sms/commands.rb +1 -0
- data/lib/vodem_sms/status_checker.rb +3 -0
- data/lib/vodem_sms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb3a727f537107d3b71c0f2464d13a489b1329ee
|
4
|
+
data.tar.gz: a8ba85281625e4c8c2e4e06ec71c2511c03bc84b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93db19133e9f4885617b297de4c89d64d3b473eea98558af1eda9128ba91a91bd6610924bf931375855b513dc4813434509e37235819c40e353ede3313c8dc67
|
7
|
+
data.tar.gz: 19b1386b7d79cd0c89d694d6ddf1b90b9d020a1e419f4faede3cc9bdce9fab836240ab6bdc84dd31bb6ee06e05e0a67c995ed3473ff843d67d9d9346b70eea2e
|
data/changelog.md
CHANGED
data/lib/vodem_sms/commands.rb
CHANGED
@@ -43,8 +43,11 @@ module VodemSms
|
|
43
43
|
"Referer" => REFERRER_HEADER,
|
44
44
|
Accept: "application/json"
|
45
45
|
},
|
46
|
+
timeout: 3,
|
46
47
|
params: {cmd: "ppp_status"},
|
47
48
|
)
|
49
|
+
return Status.new(DISCONNECTED) unless response.success?
|
50
|
+
|
48
51
|
Status.new(JSON.parse(response.body)[STATUS_FIELD])
|
49
52
|
end
|
50
53
|
end
|
data/lib/vodem_sms/version.rb
CHANGED