validate-limits 1.0.1 → 1.0.2

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: fa2a747e4128c8fa5130824a31adbd280e1840d3
4
- data.tar.gz: a43a864d08623c8898a1f3eddef5dce38dedf03f
3
+ metadata.gz: a76761eab4bd35780c0334ed9cd0d47261632d74
4
+ data.tar.gz: 3ce9824a529008e2639a421ae5c52d8eaf6e9b5c
5
5
  SHA512:
6
- metadata.gz: e33da224b26b09ab66587a73ab6069e95b484692164cc8e824bb8419a88b734d4d3df70f5a253fceac760bdf1e81274ab05801c8c881dfc2625efb1d89dabb17
7
- data.tar.gz: bfd8bf74b9a17e4e7d9e289934590de34463ff923c5380bb69f48b96d7040ff16070395342b6add0fa465eecb1e44f467aaa728154d9b0edb8e555af16ac79c3
6
+ metadata.gz: a3ea3ce5bba897e9970dffd8391d50b851fe0cd72f781982fbcf21a19c2fee160e91acf557efd91db1df2f70f82b21482ccf0ffd6912a40e65f5a3646239e054
7
+ data.tar.gz: 9eac0f76efba5aef50d4a1a2a4b5aba8227d709f18a632c9932025817afce3d35209be8df4ae3cee115a11d0ed400628cf29c06154220517c5b22755e45c1062
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validate-limits (1.0.0)
4
+ validate-limits (1.0.1)
5
5
  activerecord (>= 3.0, < 6.0)
6
6
  activesupport (>= 3.0, < 6.0)
7
7
 
@@ -40,7 +40,7 @@ module ValidateLimits
40
40
  max = +(2**(bits-1))-1
41
41
  validates_numericality_of column.name, greater_than_or_equal_to: min,
42
42
  less_than_or_equal_to: max,
43
- allow_nil: column.null
43
+ if: "#{column}?"
44
44
  end
45
45
  end
46
46
  end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module ValidateLimits
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validate-limits
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Konoplov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2017-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport