editx 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/editx.rb +4 -2
- metadata +2 -2
data/lib/editx.rb
CHANGED
@@ -13,7 +13,7 @@ module EDItX
|
|
13
13
|
module Version #:nodoc:
|
14
14
|
Major = 0
|
15
15
|
Minor = 1
|
16
|
-
Tiny =
|
16
|
+
Tiny = 2
|
17
17
|
|
18
18
|
String = [Major, Minor, Tiny].join('.')
|
19
19
|
end
|
@@ -21,7 +21,9 @@ module EDItX
|
|
21
21
|
class Formatters
|
22
22
|
def self.decimal
|
23
23
|
lambda do |val|
|
24
|
-
if val.
|
24
|
+
if val.nil?
|
25
|
+
nil
|
26
|
+
elsif val.kind_of?(BigDecimal)
|
25
27
|
val.to_s("F")
|
26
28
|
else
|
27
29
|
val.to_s
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: editx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Healy
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-05-31 00:00:00 +10:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|