validate_attributes 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/validate_attributes.rb +5 -0
- data/lib/validate_attributes/version.rb +1 -1
- data/validate_attributes.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff499dec8719ed7916e53993c9bc7ac0e4e69d18
|
4
|
+
data.tar.gz: b6ef8c6c1ae01ac6590cd644de6ac56e797354f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '084c346e671be92c56311b61a33849f2b1ded9813af96beef6414db2c9622ec896682ccc49154566e6e6f9a2149db46f058b728be55fdd5bfac838a39f574e9f'
|
7
|
+
data.tar.gz: 3494d7962e7f6527fa2ac0d5d5b2e7014481b3803f38f0cd0eba2883b04dc913075f1956092b5543ab205701bfbde2ca6357cf104acb26629ab03344614bbd61
|
data/lib/validate_attributes.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'active_model'
|
2
|
+
require 'active_record'
|
2
3
|
require "validate_attributes/version"
|
3
4
|
|
4
5
|
module ValidateAttributes
|
@@ -63,3 +64,7 @@ end
|
|
63
64
|
module ActiveModel::Validations
|
64
65
|
include ValidateAttributes
|
65
66
|
end
|
67
|
+
|
68
|
+
class ActiveRecord::Base
|
69
|
+
include ValidateAttributes
|
70
|
+
end
|
data/validate_attributes.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_dependency('
|
20
|
+
spec.add_dependency('activerecord', '>= 3.0.0')
|
21
21
|
|
22
22
|
spec.add_development_dependency "bundler", "~> 1.7"
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validate_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Rios
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
133
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.
|
134
|
+
rubygems_version: 2.6.11
|
135
135
|
signing_key:
|
136
136
|
specification_version: 4
|
137
137
|
summary: Allow for validation of only some attributes
|