rentlinx 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rentlinx/validators/amount_validator.rb +1 -2
- data/lib/rentlinx/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7549025796e24f93530a7ace4d0c53cf963a235
|
4
|
+
data.tar.gz: 0df23be8cdf30f67b85aecd783ce9a6f5757cd6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2759f86e8890daf4c5ab23ab473f17d72ab1b08032ee6dd92effa268f1fa2bd0315a7d65c6acc68d8dbdcbcd100dae2244a1bf345f84db7e891250af067ae6b6
|
7
|
+
data.tar.gz: e0d3ee406855750d68059a1bc21c3edf693b2bd04e7af2b484bf2dd47cf1be69aad24de88ad2c339dcf4ccf81ef4efc3943fd2cb2a7a3fa7419ae2e85b820214
|
@@ -6,8 +6,7 @@ module Rentlinx
|
|
6
6
|
private
|
7
7
|
|
8
8
|
def validate
|
9
|
-
@value.
|
10
|
-
return if @value.to_s =~ /[1-9]\d*(\.\d{1,2})?/
|
9
|
+
return if !@value.nil? && @value.is_a?(Numeric) && @value >= 0
|
11
10
|
@error = "'#{@value}' is not a valid amount."
|
12
11
|
end
|
13
12
|
end
|
data/lib/rentlinx/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rentlinx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AppFolio, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|