validate-rb 0.1.0.pre → 1.0.0.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +4 -4
- data/lib/validate.rb +75 -1
- data/lib/validate/arguments.rb +93 -0
- data/lib/validate/assertions.rb +27 -0
- data/lib/validate/ast.rb +381 -0
- data/lib/validate/compare.rb +79 -0
- data/lib/validate/constraint.rb +231 -0
- data/lib/validate/constraints.rb +337 -0
- data/lib/validate/constraints/validation_context.rb +167 -0
- data/lib/validate/errors.rb +40 -0
- data/lib/validate/helpers.rb +11 -0
- data/lib/validate/scope.rb +48 -0
- data/lib/validate/validators.rb +7 -0
- data/lib/validate/validators/dsl.rb +44 -0
- data/lib/validate/version.rb +1 -1
- metadata +122 -21
- data/.gitignore +0 -12
- data/.rspec +0 -3
- data/.ruby-version +0 -1
- data/.travis.yml +0 -6
- data/Gemfile +0 -7
- data/Rakefile +0 -6
- data/bin/console +0 -7
- data/bin/setup +0 -6
- data/lib/validate-rb.rb +0 -3
- data/validate-rb.gemspec +0 -30
data/.gitignore
DELETED
data/.rspec
DELETED
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.6.6
|
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
data/bin/console
DELETED
data/bin/setup
DELETED
data/lib/validate-rb.rb
DELETED
data/validate-rb.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'lib/validate/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'validate-rb'
|
7
|
-
spec.version = Validate::VERSION
|
8
|
-
spec.authors = ['Bulat Shakirzyanov']
|
9
|
-
spec.email = ['bulat.shakirzyanov@gusto.com']
|
10
|
-
|
11
|
-
spec.summary = 'Yummy constraint validations for Ruby'
|
12
|
-
spec.description = 'Simple, powerful, and constraint-based validation'
|
13
|
-
spec.homepage = 'https://github.com/Gusto/validaterb'
|
14
|
-
spec.license = 'MIT'
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
16
|
-
|
17
|
-
spec.metadata = {
|
18
|
-
'homepage_uri' => 'https://github.com/Gusto/validaterb',
|
19
|
-
'changelog_uri' => 'https://github.com/Gusto/validaterb/releases',
|
20
|
-
'source_code_uri' => 'https://github.com/Gusto/validaterb',
|
21
|
-
'bug_tracker_uri' => 'https://github.com/Gusto/validaterb/issues',
|
22
|
-
}
|
23
|
-
|
24
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
25
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
-
end
|
27
|
-
spec.bindir = 'exe'
|
28
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
-
spec.require_paths = ['lib']
|
30
|
-
end
|