validate-limits 1.0.3 → 1.0.4

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: 74e4eef808eea21a4ffcb4440d922a70d644e482
4
- data.tar.gz: ef28924e3acbaf3cd5c1cadac3e4e92e9f8ad0fe
3
+ metadata.gz: a86d7bdc8808957edf26a78f38fb064db91bb858
4
+ data.tar.gz: e69a08597013df490e6cfacfde7c05ba8ed4bd49
5
5
  SHA512:
6
- metadata.gz: db9ce1e23ce0f198cd93bd8d4ff689fca747696a7c8139175389dc298bb5668fd67d1b96274c8d9d588efa194b24426326568c14bcaeacfc916e4954ad8c5dd0
7
- data.tar.gz: 5c11ef0e9c4d77b997e5e23af89a637410e9d3606f6cbb6694d29548c8e8134d77696f9c28a92986fea20420a34ac881956a1be3dc019fae78309c69d54e7227
6
+ metadata.gz: 429ac6486f91d904f6feb92f7d5226ce1309da1896db0a1222a97e70db12d1aac91ddb09f9a01574947949285ce2a2ec44c9013d40a8dcbdc44d3be73e5b3c32
7
+ data.tar.gz: 493b9045d94e81821ea01f1a6690dd1f5b2fa6a727f037e991b97d59952f941970e94b8dd2c1f65bd0af5794267cae904161e79c27bd62f65562f0324dd2efce
@@ -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.name}?"
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.3'
5
+ VERSION = '1.0.4'
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.3
4
+ version: 1.0.4
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-04-09 00:00:00.000000000 Z
11
+ date: 2017-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.6.8
87
+ rubygems_version: 2.6.13
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Automatically validate limits for ActiveRecord attributes.