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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69d7612df36321fcd1ae32de00af371fcab4aede
4
- data.tar.gz: 316c482582a27996855059e025bffda752befa63
3
+ metadata.gz: f7549025796e24f93530a7ace4d0c53cf963a235
4
+ data.tar.gz: 0df23be8cdf30f67b85aecd783ce9a6f5757cd6e
5
5
  SHA512:
6
- metadata.gz: 70825b8c48a50563b8ac389e71424ce6535d920bd140a7527d4717a74b9ba5f8a557394570e741296f0200d7785931de0edf120c385f1d4022620ba64862cb5d
7
- data.tar.gz: 7ec6922c7230fb17d9e4d89c1c02091e0ed99d5f4b3869175bb7568f9450a988930026fc931dd3cd7e3483a568ca328101deb96fbfd5b621acf8287af922b49d
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.sub!(/^0+/, '') unless @value.nil?
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
@@ -1,5 +1,5 @@
1
1
  # This is the main rentlinx module. All Rentlinx objects
2
2
  # and methods are namespaced under this module.
3
3
  module Rentlinx
4
- VERSION = '0.9.4'
4
+ VERSION = '0.9.5'
5
5
  end
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
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-19 00:00:00.000000000 Z
11
+ date: 2015-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient