validate_specific_value 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: db8cd053a31d1d618cc93d261a32b8c05502903f6cb61c8d71a5aa3288bcfbe9
4
- data.tar.gz: cfe3cea8ed7e9f8ce06006de38795ad16f9a51ce61431d13c80b479bc5047eee
3
+ metadata.gz: e3c96f327f719b1d16c259294c19ef5db4ebee2f5f3fd2a539e35a4077350032
4
+ data.tar.gz: f9a9743e778a4e0392fa1fe18134984d324a9662f0fc39aa9fb579cb9cc110c0
5
5
  SHA512:
6
- metadata.gz: 2f67678e4cb89f96858c2261a84b48da12453bc1bbba434730758838bc57721835630f3dedd3c507be50c20d5ab5eb0a4d9ab245609888075b86baa22802dd44
7
- data.tar.gz: 366fa4e698d17db7b77d5ae3f8233b3ab035ff935c022a2e52531702f13c566ba50fd82e42c1e998482acbc055e2434b954a472785f9c343e13dffc8613286ec
6
+ metadata.gz: e8a7b03ba09e1ed9ed1842c34d37bba57f99cdb0340d84f4bfa75848a5a005c52a5d6ea01fcfd4c2bf3d08eaadfc4c11d099a1c74a62d099e427e4a69d10f44d
7
+ data.tar.gz: 2b02d6d984a7ceab27e633b358b7fb7ff0119cc75a79e8344c5f2665e44bbbc0b6a64a95d2e2b91369a18bd636f065a21790486689d26d93807d7652ad5c8da4
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validate_specific_value (0.2.0)
5
- activesupport
4
+ validate_specific_value (0.2.1)
5
+ activerecord (>= 4.2, < 6.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This is a way to validate single attribute in Rails. :tada:
4
4
 
5
- - accessor methods
5
+ Sometimes there are validations that are quite expensive (e.g. validations that need to perform database queries). In that case you need to avoid using valid? because it simply does a lot more than you need. [link](https://stackoverflow.com/questions/4804591/rails-activerecord-validate-single-attribute)
6
6
 
7
7
  ## Getting Started
8
8
 
@@ -1,3 +1,3 @@
1
1
  module ValidateSpecificValue
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ["lib"]
33
33
 
34
- spec.add_dependency "activesupport"
34
+ spec.add_dependency "activerecord", [">= 4.2", "< 6.0"]
35
35
 
36
36
  spec.add_development_dependency "bundler"
37
37
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validate_specific_value
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ts-3156
@@ -11,19 +11,25 @@ cert_chain: []
11
11
  date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activesupport
14
+ name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '4.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '6.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '0'
29
+ version: '4.2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '6.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: bundler
29
35
  requirement: !ruby/object:Gem::Requirement