smartware 0.1.19 → 0.1.20

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.
@@ -49,12 +49,13 @@ module Smartware
49
49
  def self.poll_status!
50
50
  t = Thread.new do
51
51
  loop do
52
+ @status = {}
52
53
  @status[:signal_level] = @device.signal_level
53
54
  @status[:model] = @device.model
54
55
  @status[:error] = @device.error
55
56
 
56
57
  balance = @device.ussd("*100#")
57
- @status[:balance] = balance unless balance
58
+ @status[:balance] = balance if balance
58
59
  sleep 5
59
60
  end
60
61
  end
@@ -1,3 +1,3 @@
1
1
  module Smartware
2
- VERSION = "0.1.19"
2
+ VERSION = "0.1.20"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartware
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: