hanami-validations 0.0.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +89 -0
- data/LICENSE.md +22 -0
- data/README.md +559 -7
- data/hanami-validations.gemspec +16 -12
- data/lib/hanami-validations.rb +1 -0
- data/lib/hanami/validations.rb +300 -2
- data/lib/hanami/validations/attribute.rb +252 -0
- data/lib/hanami/validations/attribute_definer.rb +526 -0
- data/lib/hanami/validations/blank_value_checker.rb +55 -0
- data/lib/hanami/validations/coercions.rb +31 -0
- data/lib/hanami/validations/error.rb +95 -0
- data/lib/hanami/validations/errors.rb +155 -0
- data/lib/hanami/validations/nested_attributes.rb +22 -0
- data/lib/hanami/validations/validation_set.rb +81 -0
- data/lib/hanami/validations/validator.rb +29 -0
- data/lib/hanami/validations/version.rb +2 -1
- metadata +57 -16
- data/.gitignore +0 -9
- data/Gemfile +0 -4
- data/Rakefile +0 -2
- data/bin/console +0 -14
- data/bin/setup +0 -8
metadata
CHANGED
@@ -1,61 +1,101 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
|
+
- Trung Lê
|
9
|
+
- Alfonso Uceda
|
8
10
|
autorequire:
|
9
|
-
bindir:
|
11
|
+
bindir: bin
|
10
12
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
13
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
12
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: hanami-utils
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - "~>"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.7'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '0.7'
|
13
29
|
- !ruby/object:Gem::Dependency
|
14
30
|
name: bundler
|
15
31
|
requirement: !ruby/object:Gem::Requirement
|
16
32
|
requirements:
|
17
33
|
- - "~>"
|
18
34
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
35
|
+
version: '1.6'
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '1.6'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: minitest
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '5'
|
20
50
|
type: :development
|
21
51
|
prerelease: false
|
22
52
|
version_requirements: !ruby/object:Gem::Requirement
|
23
53
|
requirements:
|
24
54
|
- - "~>"
|
25
55
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
56
|
+
version: '5'
|
27
57
|
- !ruby/object:Gem::Dependency
|
28
58
|
name: rake
|
29
59
|
requirement: !ruby/object:Gem::Requirement
|
30
60
|
requirements:
|
31
61
|
- - "~>"
|
32
62
|
- !ruby/object:Gem::Version
|
33
|
-
version: '10
|
63
|
+
version: '10'
|
34
64
|
type: :development
|
35
65
|
prerelease: false
|
36
66
|
version_requirements: !ruby/object:Gem::Requirement
|
37
67
|
requirements:
|
38
68
|
- - "~>"
|
39
69
|
- !ruby/object:Gem::Version
|
40
|
-
version: '10
|
41
|
-
description:
|
70
|
+
version: '10'
|
71
|
+
description: Validations mixin for Ruby objects and support for Hanami
|
42
72
|
email:
|
43
73
|
- me@lucaguidi.com
|
74
|
+
- trung.le@ruby-journal.com
|
75
|
+
- uceda73@gmail.com
|
44
76
|
executables: []
|
45
77
|
extensions: []
|
46
78
|
extra_rdoc_files: []
|
47
79
|
files:
|
48
|
-
-
|
49
|
-
-
|
80
|
+
- CHANGELOG.md
|
81
|
+
- LICENSE.md
|
50
82
|
- README.md
|
51
|
-
- Rakefile
|
52
|
-
- bin/console
|
53
|
-
- bin/setup
|
54
83
|
- hanami-validations.gemspec
|
84
|
+
- lib/hanami-validations.rb
|
55
85
|
- lib/hanami/validations.rb
|
86
|
+
- lib/hanami/validations/attribute.rb
|
87
|
+
- lib/hanami/validations/attribute_definer.rb
|
88
|
+
- lib/hanami/validations/blank_value_checker.rb
|
89
|
+
- lib/hanami/validations/coercions.rb
|
90
|
+
- lib/hanami/validations/error.rb
|
91
|
+
- lib/hanami/validations/errors.rb
|
92
|
+
- lib/hanami/validations/nested_attributes.rb
|
93
|
+
- lib/hanami/validations/validation_set.rb
|
94
|
+
- lib/hanami/validations/validator.rb
|
56
95
|
- lib/hanami/validations/version.rb
|
57
96
|
homepage: http://hanamirb.org
|
58
|
-
licenses:
|
97
|
+
licenses:
|
98
|
+
- MIT
|
59
99
|
metadata: {}
|
60
100
|
post_install_message:
|
61
101
|
rdoc_options: []
|
@@ -65,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
105
|
requirements:
|
66
106
|
- - ">="
|
67
107
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
108
|
+
version: 2.0.0
|
69
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
110
|
requirements:
|
71
111
|
- - ">="
|
@@ -76,5 +116,6 @@ rubyforge_project:
|
|
76
116
|
rubygems_version: 2.5.1
|
77
117
|
signing_key:
|
78
118
|
specification_version: 4
|
79
|
-
summary:
|
119
|
+
summary: Validations mixin for Ruby objects
|
80
120
|
test_files: []
|
121
|
+
has_rdoc:
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "hanami/validations"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|