lotus-validations 0.0.0 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{LICENSE.txt → LICENSE.md} +0 -0
- data/README.md +366 -3
- data/lib/lotus-validations.rb +1 -0
- data/lib/lotus/validations.rb +393 -2
- data/lib/lotus/validations/attribute_validator.rb +280 -0
- data/lib/lotus/validations/coercions.rb +30 -0
- data/lib/lotus/validations/error.rb +61 -0
- data/lib/lotus/validations/errors.rb +123 -0
- data/lib/lotus/validations/version.rb +2 -1
- data/lotus-validations.gemspec +15 -11
- metadata +41 -11
- data/.gitignore +0 -14
- data/Gemfile +0 -4
- data/Rakefile +0 -2
data/lotus-validations.gemspec
CHANGED
@@ -4,20 +4,24 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'lotus/validations/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'lotus-validations'
|
8
8
|
spec.version = Lotus::Validations::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
spec.summary = %q{
|
12
|
-
spec.description = %q{
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
9
|
+
spec.authors = ['Luca Guidi']
|
10
|
+
spec.email = ['me@lucaguidi.com']
|
11
|
+
spec.summary = %q{Validations for Lotus}
|
12
|
+
spec.description = %q{Validate attributes on a class and manage error messages accordingly}
|
13
|
+
spec.homepage = 'http://lotusrb.org'
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
|
-
spec.files = `git ls-files -
|
16
|
+
spec.files = `git ls-files -- lib/* LICENSE.md README.md lotus-validations.gemspec`.split($/)
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = [
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
spec.required_ruby_version = '>= 2.0.0'
|
20
21
|
|
21
|
-
spec.
|
22
|
-
|
22
|
+
spec.add_dependency 'lotus-utils', '~> 0.3'
|
23
|
+
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.6'
|
25
|
+
spec.add_development_dependency 'minitest', '~> 5'
|
26
|
+
spec.add_development_dependency 'rake', '~> 10'
|
23
27
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lotus-validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: lotus-utils
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.3'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -24,33 +38,49 @@ dependencies:
|
|
24
38
|
- - "~>"
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '1.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: rake
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
30
58
|
requirements:
|
31
59
|
- - "~>"
|
32
60
|
- !ruby/object:Gem::Version
|
33
|
-
version: '10
|
61
|
+
version: '10'
|
34
62
|
type: :development
|
35
63
|
prerelease: false
|
36
64
|
version_requirements: !ruby/object:Gem::Requirement
|
37
65
|
requirements:
|
38
66
|
- - "~>"
|
39
67
|
- !ruby/object:Gem::Version
|
40
|
-
version: '10
|
41
|
-
description:
|
68
|
+
version: '10'
|
69
|
+
description: Validate attributes on a class and manage error messages accordingly
|
42
70
|
email:
|
43
71
|
- me@lucaguidi.com
|
44
72
|
executables: []
|
45
73
|
extensions: []
|
46
74
|
extra_rdoc_files: []
|
47
75
|
files:
|
48
|
-
-
|
49
|
-
- Gemfile
|
50
|
-
- LICENSE.txt
|
76
|
+
- LICENSE.md
|
51
77
|
- README.md
|
52
|
-
-
|
78
|
+
- lib/lotus-validations.rb
|
53
79
|
- lib/lotus/validations.rb
|
80
|
+
- lib/lotus/validations/attribute_validator.rb
|
81
|
+
- lib/lotus/validations/coercions.rb
|
82
|
+
- lib/lotus/validations/error.rb
|
83
|
+
- lib/lotus/validations/errors.rb
|
54
84
|
- lib/lotus/validations/version.rb
|
55
85
|
- lotus-validations.gemspec
|
56
86
|
homepage: http://lotusrb.org
|
@@ -65,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
95
|
requirements:
|
66
96
|
- - ">="
|
67
97
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
98
|
+
version: 2.0.0
|
69
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
100
|
requirements:
|
71
101
|
- - ">="
|
@@ -76,6 +106,6 @@ rubyforge_project:
|
|
76
106
|
rubygems_version: 2.2.2
|
77
107
|
signing_key:
|
78
108
|
specification_version: 4
|
79
|
-
summary:
|
109
|
+
summary: Validations for Lotus
|
80
110
|
test_files: []
|
81
111
|
has_rdoc:
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED