ci_power 0.0.30 → 0.0.31

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.
@@ -34,11 +34,11 @@ module CiPower
34
34
  end
35
35
 
36
36
  def amount
37
- @amount.abs
37
+ @amount.to_f.abs
38
38
  end
39
39
 
40
40
  def amount_type
41
- @amount_type ||= @amount < 0 ? 'GU-GL' : 'RG-GL'
41
+ @amount_type ||= @amount.to_f < 0 ? 'GU-GL' : 'RG-GL'
42
42
  end
43
43
 
44
44
  def to_cip(with_line_terminator = true)
@@ -1,3 +1,3 @@
1
1
  module CiPower
2
- VERSION = "0.0.30"
2
+ VERSION = "0.0.31"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ci_power
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.30
5
+ version: 0.0.31
6
6
  platform: ruby
7
7
  authors:
8
8
  - Maik Duff
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2013-01-22 00:00:00 +01:00
13
+ date: 2013-02-28 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency