data_validator 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +1 -2
- data/lib/data_validator.rb +2 -2
- data/lib/data_validator/version.rb +1 -1
- metadata +9 -16
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2e1c0541ecf68091b1d55d12472f078ec0e52bd1
|
4
|
+
data.tar.gz: 47abe1ab99319f70e1be174429b356978d9e13d9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 30121001c5df8619c9c9725b3a899495f4e90a0e58d4c089bff4a4eeaed0b0b452ea016f0fc7496552261de8d5653c62bb078ca4e62e2a3b0b4aca50d625d685
|
7
|
+
data.tar.gz: f439c4769c7741781c7bfefea8daaa77ea36475fc88c21411542609873241cdc7167b44b41680972418ea8bc86561059050a9719be3e80cd5780b0c26b14fa4b
|
data/.travis.yml
CHANGED
data/lib/data_validator.rb
CHANGED
@@ -22,10 +22,10 @@ module DataValidator
|
|
22
22
|
next if @params[key].blank? && is_allow_blank
|
23
23
|
|
24
24
|
rule.each_pair do |validator, options|
|
25
|
-
klass = "#{validator.
|
25
|
+
klass = "#{validator.to_s.camelize}Validator"
|
26
26
|
constant = Object
|
27
27
|
constant = constant.const_get "DataValidator"
|
28
|
-
validation = constant.const_get(klass).new(key, @params[key], options, errors)
|
28
|
+
validation = constant.const_get(klass, false).new(key, @params[key], options, errors)
|
29
29
|
validation.check_validity!
|
30
30
|
validation.validate
|
31
31
|
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Spring_MT
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-03-11 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activesupport
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: i18n
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,14 +34,12 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0.6'
|
46
|
-
description:
|
47
|
-
|
48
|
-
'
|
41
|
+
description: |2
|
42
|
+
DataValidator has almost active_recorde validation methods.
|
49
43
|
email:
|
50
44
|
- today.is.sky.blue.sky@gmail.com
|
51
45
|
executables: []
|
@@ -83,27 +77,26 @@ files:
|
|
83
77
|
- spec/validations/presence_validation_spec.rb
|
84
78
|
homepage: https://github.com/SpringMT/data_validator
|
85
79
|
licenses: []
|
80
|
+
metadata: {}
|
86
81
|
post_install_message:
|
87
82
|
rdoc_options: []
|
88
83
|
require_paths:
|
89
84
|
- lib
|
90
85
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
86
|
requirements:
|
93
|
-
- -
|
87
|
+
- - '>='
|
94
88
|
- !ruby/object:Gem::Version
|
95
89
|
version: '0'
|
96
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
91
|
requirements:
|
99
|
-
- -
|
92
|
+
- - '>='
|
100
93
|
- !ruby/object:Gem::Version
|
101
94
|
version: '0'
|
102
95
|
requirements: []
|
103
96
|
rubyforge_project: data_validator
|
104
|
-
rubygems_version:
|
97
|
+
rubygems_version: 2.0.0
|
105
98
|
signing_key:
|
106
|
-
specification_version:
|
99
|
+
specification_version: 4
|
107
100
|
summary: DataValidator is validation anywhere
|
108
101
|
test_files:
|
109
102
|
- spec/data_validator_spec.rb
|