dohutil 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/doh/core_ext/bigdecimal.rb +8 -0
  2. metadata +2 -2
@@ -39,3 +39,11 @@ class BigDecimal
39
39
  retval
40
40
  end
41
41
  end
42
+
43
+ class NilClass
44
+ NIL_ZERO_BIGD = BigDecimal('0')
45
+
46
+ def to_d
47
+ NIL_ZERO_BIGD
48
+ end
49
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dohutil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
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-04-26 00:00:00.000000000 Z
13
+ date: 2013-05-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: dohroot