xeroizer-float 2.15.3.15 → 2.15.3.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/xeroizer/models/invoice.rb +5 -1
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.15.3.15
1
+ 2.15.3.16
@@ -113,7 +113,11 @@ module Xeroizer
113
113
 
114
114
  def currency_rate
115
115
  if attributes[:currency_rate]
116
- BigDecimal.new(attributes[:currency_rate])
116
+ if attributes[:currency_rate].is_a? BigDecimal
117
+ attributes[:currency_rate]
118
+ else
119
+ BigDecimal.new(attributes[:currency_rate])
120
+ end
117
121
  else
118
122
  BigDecimal.new('1.0')
119
123
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xeroizer-float
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.3.15
4
+ version: 2.15.3.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-03 00:00:00.000000000 Z
13
+ date: 2013-06-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: builder