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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b663b3e0bc7fe1dcfe944f66f3e2e699af7d751
4
- data.tar.gz: b03aaffb816a849e545226dcf3f9f26991f04a78
3
+ metadata.gz: fb3a727f537107d3b71c0f2464d13a489b1329ee
4
+ data.tar.gz: a8ba85281625e4c8c2e4e06ec71c2511c03bc84b
5
5
  SHA512:
6
- metadata.gz: b3a49f4eb8e8c4badc9120694f85d79faaa60b8f880c2b4c8c0fc2f1b0726fa0daa4d7deee5755c82a8ca0413c5471d5989400d116f66e1e9bf2103a3304f543
7
- data.tar.gz: ef456f9d5d0f55de1dfce9c4154aa6c9259f6361bb2b071eee928c037881c75ef1e5876bd874034aa874a0faa159d6aeb2b372e5fa803edd779aa88356c58644
6
+ metadata.gz: 93db19133e9f4885617b297de4c89d64d3b473eea98558af1eda9128ba91a91bd6610924bf931375855b513dc4813434509e37235819c40e353ede3313c8dc67
7
+ data.tar.gz: 19b1386b7d79cd0c89d694d6ddf1b90b9d020a1e419f4faede3cc9bdce9fab836240ab6bdc84dd31bb6ee06e05e0a67c995ed3473ff843d67d9d9346b70eea2e
data/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.6 [April 2015]
2
+ * Add a lower timeout for the connection check
3
+
1
4
  ## 0.0.5 [April 2015]
2
5
  * Add the ability to delete a message
3
6
 
@@ -16,6 +16,7 @@ module VodemSms
16
16
  "Referer" => REFERRER_HEADER,
17
17
  Accept: "application/json"
18
18
  },
19
+ timeout: 3,
19
20
  body: {goformId: "CONNECT_NETWORK"},
20
21
  )
21
22
  sleep 10
@@ -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
@@ -1,3 +1,3 @@
1
1
  module VodemSms
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vodem_sms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Davey