validate-limits 1.0.2 → 1.0.3

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: a76761eab4bd35780c0334ed9cd0d47261632d74
4
- data.tar.gz: 3ce9824a529008e2639a421ae5c52d8eaf6e9b5c
3
+ metadata.gz: 74e4eef808eea21a4ffcb4440d922a70d644e482
4
+ data.tar.gz: ef28924e3acbaf3cd5c1cadac3e4e92e9f8ad0fe
5
5
  SHA512:
6
- metadata.gz: a3ea3ce5bba897e9970dffd8391d50b851fe0cd72f781982fbcf21a19c2fee160e91acf557efd91db1df2f70f82b21482ccf0ffd6912a40e65f5a3646239e054
7
- data.tar.gz: 9eac0f76efba5aef50d4a1a2a4b5aba8227d709f18a632c9932025817afce3d35209be8df4ae3cee115a11d0ed400628cf29c06154220517c5b22755e45c1062
6
+ metadata.gz: db9ce1e23ce0f198cd93bd8d4ff689fca747696a7c8139175389dc298bb5668fd67d1b96274c8d9d588efa194b24426326568c14bcaeacfc916e4954ad8c5dd0
7
+ data.tar.gz: 5c11ef0e9c4d77b997e5e23af89a637410e9d3606f6cbb6694d29548c8e8134d77696f9c28a92986fea20420a34ac881956a1be3dc019fae78309c69d54e7227
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validate-limits (1.0.1)
4
+ validate-limits (1.0.3)
5
5
  activerecord (>= 3.0, < 6.0)
6
6
  activesupport (>= 3.0, < 6.0)
7
7
 
@@ -24,7 +24,7 @@ GEM
24
24
  i18n (0.8.1)
25
25
  minitest (5.10.1)
26
26
  thread_safe (0.3.6)
27
- tzinfo (1.2.2)
27
+ tzinfo (1.2.3)
28
28
  thread_safe (~> 0.1)
29
29
 
30
30
  PLATFORMS
@@ -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
- if: "#{column}?"
43
+ if: "#{column.name}?"
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.2'
5
+ VERSION = '1.0.3'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validate-limits
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Konoplov