lightwaverf 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. data/lib/lightwaverf.rb +2 -5
  2. metadata +1 -1
data/lib/lightwaverf.rb CHANGED
@@ -119,11 +119,8 @@ class LightWaveRF
119
119
 
120
120
  def energy
121
121
  data = self.raw '666,@?'
122
- begin
123
- /W=(?<usage>\d+),(?<max>\d+),(?<today>\d+),(?<yesterday>\d+)/.match( data )
124
- rescue
125
- data
126
- end
122
+ # /W=(?<usage>\d+),(?<max>\d+),(?<today>\d+),(?<yesterday>\d+)/.match( data ) # ruby 1.9 only?
123
+ /W=(\d+),(\d+),(\d+),(\d+)/.match( data )
127
124
  end
128
125
 
129
126
  def raw command
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightwaverf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: