api_validator 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +83 -0
- data/Rakefile +2 -0
- data/api_validator.gemspec +24 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/api_validator.rb +112 -0
- data/lib/api_validator/engine.rb +4 -0
- data/lib/api_validator/version.rb +3 -0
- data/lib/generators/api_validator/install/install_generator.rb +29 -0
- data/lib/generators/api_validator/install/templates/validate_api.yml.erb +42 -0
- metadata +86 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: eb08a7dc94d65c72fc5a97a70fc72508b441642fb92d156cb7c0360cac6dcb6c
|
4
|
+
data.tar.gz: 63b76ba48e8b2630ede2cd461cb624a9699c378b60fbb0abd2d9c581ff52434a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c41ddb3e977290e011cd01616330a8272169c1cb004eff77ff82f934e72c18c377655d0f4cbb1b3c5eecd96801ba7baa2757e5973a16d6f29119c8d507f9515e
|
7
|
+
data.tar.gz: a15f93d098661c191b568bcd1eb9db42354011642a4db4b75823ca7389837c44691d1e981e200865cc5dcf453b6a4dcd6db40903f014c31b48fa4abbc69fb184
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at sandipkaranjekar@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Sandip Karanjekar
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
# api_validator
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/api_validator.svg)](https://badge.fury.io/rb/api_validator)
|
3
|
+
|
4
|
+
This gem helpful to validate api calls. You need to set rules and messages in yml file and rest of the things are handle by gem.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'api_validator'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install api_validator
|
21
|
+
|
22
|
+
Also you need to run generator to set the files -
|
23
|
+
|
24
|
+
$ rails g api_validator:install api_validator
|
25
|
+
|
26
|
+
Note : Here you can pass any name you want to set for initilizer file and validation yml file, instead of 'api_validator'.
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
Before use of this gem you need to set ``` before_action :request_validation ``` in controller where you want to validate request before reach to controller's method.
|
31
|
+
|
32
|
+
Also you need to set rules in the api_validator.yml.erb file. Example are mentioned in yml file.
|
33
|
+
|
34
|
+
Sample pattern for validation as follows -
|
35
|
+
|
36
|
+
```yaml
|
37
|
+
controller_name:
|
38
|
+
method_name:
|
39
|
+
param1:
|
40
|
+
rules:
|
41
|
+
presence: true
|
42
|
+
integer: true
|
43
|
+
min_length: 5
|
44
|
+
max_length: 15
|
45
|
+
pattern: <%= /\A^[a-zA-Z\s'.-]*$\Z/.source %>
|
46
|
+
inclusion: "1..10"
|
47
|
+
messages:
|
48
|
+
presence: "Param1 must present."
|
49
|
+
integer: "Param1 must contain integer only."
|
50
|
+
min_length: "Param1 must have minimum length of 5."
|
51
|
+
max_length: "Param1 must have maximum length of 15."
|
52
|
+
pattern: "Invalid Param1"
|
53
|
+
inclusion: "The param1 must be between 1 and 10"
|
54
|
+
```
|
55
|
+
|
56
|
+
Sample validation for JSON value in request parameter -
|
57
|
+
|
58
|
+
```yaml
|
59
|
+
controller_name:
|
60
|
+
method_name:
|
61
|
+
param1:
|
62
|
+
rules:
|
63
|
+
presence: true
|
64
|
+
json_string: true
|
65
|
+
messages:
|
66
|
+
presence: "Param1 must present."
|
67
|
+
json_string: "Invalid json string."
|
68
|
+
paramters:
|
69
|
+
json_1st_param:
|
70
|
+
rules:
|
71
|
+
presence: true
|
72
|
+
messages:
|
73
|
+
presence: "Json first param must prresent."
|
74
|
+
json_2nd_param:
|
75
|
+
rules:
|
76
|
+
integer: true
|
77
|
+
messages:
|
78
|
+
integer: "Json second param must be integer only."
|
79
|
+
```
|
80
|
+
## License
|
81
|
+
|
82
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
83
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'api_validator/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "api_validator"
|
8
|
+
spec.version = ApiValidator::VERSION
|
9
|
+
spec.authors = ["sandipkaranjekar"]
|
10
|
+
spec.email = ["sandipkaranjekar@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{RubyGem for API validation}
|
13
|
+
spec.description = %q{RubyGem for API validation. Here you need to set rules and messages in yml, rest of the things are handle by gem.}
|
14
|
+
spec.homepage = "https://github.com/sandipkaranjekar/api_validator"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
23
|
+
spec.add_development_dependency "rake", "~> 12.3.3"
|
24
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "api_validator"
|
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
|
data/bin/setup
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
require "api_validator/version"
|
2
|
+
|
3
|
+
module ApiValidator
|
4
|
+
INTEGER_REGEX = /^[1-9]([0-9]*)?$/
|
5
|
+
# request validation method
|
6
|
+
# Input - request params
|
7
|
+
# Process - Validate params with there rules & defination
|
8
|
+
# Output - report error on invalidity
|
9
|
+
def request_validation
|
10
|
+
if is_api_validator_applicable?(params[:controller], params[:action])
|
11
|
+
# validation - parameters defination
|
12
|
+
validation_pd = VALIDATION_CONFIG[params[:controller]][params[:action]]
|
13
|
+
|
14
|
+
validation_pd.keys.each do |key|
|
15
|
+
next if params.has_key?(key) == false && validation_pd[key]["rules"].has_key?("presence") == false
|
16
|
+
validation_pd[key]["rules"].each do |rule, defination|
|
17
|
+
# when param's value is JSON string then parse it and validate parameters
|
18
|
+
if (rule == "json_string" and defination == true)
|
19
|
+
begin
|
20
|
+
json_data = JSON.parse(params[key])
|
21
|
+
json_data = [json_data] unless json_data.class == Array
|
22
|
+
json_data.each do |data|
|
23
|
+
data.keys.each do |json_data_key|
|
24
|
+
if validation_pd[key].has_key?("parameters")
|
25
|
+
next unless validation_pd[key]["parameters"].has_key?(json_data_key)
|
26
|
+
validation_pd[key]["parameters"][json_data_key]["rules"].each do |json_data_rule, json_data_defination|
|
27
|
+
#CAUTION: if nested JSON, this should be recursive
|
28
|
+
return error_response(validation_pd[key]["parameters"][json_data_key]["messages"][json_data_rule]) if validate?(json_data_key, data[json_data_key], json_data_rule, json_data_defination, validation_pd[key]["parameters"][json_data_key])
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
rescue JSON::ParserError => e
|
34
|
+
return error_response(validation_pd[key]["messages"][rule], 422)
|
35
|
+
end
|
36
|
+
# when param's value is NOT JSON
|
37
|
+
else
|
38
|
+
return error_response(validation_pd[key]["messages"][rule]) if validate?(key, params[key], rule, defination, validation_pd[key])
|
39
|
+
end
|
40
|
+
end # param rule loop end
|
41
|
+
end # params list loop end
|
42
|
+
end # main if end
|
43
|
+
end
|
44
|
+
|
45
|
+
def is_api_validator_applicable?(controller, action)
|
46
|
+
VALIDATION_CONFIG[controller].present? && VALIDATION_CONFIG[controller][action].present?
|
47
|
+
end
|
48
|
+
|
49
|
+
def error_response(message = nil, status = 400)
|
50
|
+
response = {status: 'error', message: message}
|
51
|
+
render json: response, status: status
|
52
|
+
end
|
53
|
+
|
54
|
+
def is_integer?(value)
|
55
|
+
!!(value =~ INTEGER_REGEX)
|
56
|
+
end
|
57
|
+
|
58
|
+
def is_pattern_match?(value, pattern)
|
59
|
+
!!(value =~ pattern)
|
60
|
+
end
|
61
|
+
|
62
|
+
def is_in_inclusion?(defination, value)
|
63
|
+
range = defination.split("..").map(&:to_i)
|
64
|
+
Range.new(range[0], range[-1]) === value.to_i
|
65
|
+
end
|
66
|
+
|
67
|
+
def validate_array_string?(value, separator)
|
68
|
+
parameter_ids = value.split(separator)
|
69
|
+
parameter_ids.each do |parameter|
|
70
|
+
return false unless !!(parameter =~ INTEGER_REGEX)
|
71
|
+
end
|
72
|
+
return true
|
73
|
+
end
|
74
|
+
|
75
|
+
def validate?(key, value, rule, defination, dtd)
|
76
|
+
is_error_found = false
|
77
|
+
case
|
78
|
+
when (rule == "ignore_if_present" and defination.present?)
|
79
|
+
# return error if not present & defination absence
|
80
|
+
is_error_found = true if value.present? == false and params[defination].present? == false
|
81
|
+
when (rule == "presence" and defination == true)
|
82
|
+
# return error if not present
|
83
|
+
is_error_found = true unless value.present?
|
84
|
+
when (rule == "array_string" and defination.present?)
|
85
|
+
# return error if array string invalid
|
86
|
+
is_error_found = true unless validate_array_string?(value, defination)
|
87
|
+
when (rule == "integer" and defination == true)
|
88
|
+
# return error if not match with integer
|
89
|
+
is_error_found = true unless is_integer?(value)
|
90
|
+
when (rule == "min_length" and defination > 0)
|
91
|
+
# return error if minimum length is not achived
|
92
|
+
is_error_found = true unless value.length >= defination
|
93
|
+
when (rule == "max_length" and defination > 0)
|
94
|
+
# return error if maximum length is not achived
|
95
|
+
is_error_found = true unless value.length <= defination
|
96
|
+
when (rule == "max_value" and defination > 0)
|
97
|
+
# return error if param's value is less or equal to defination
|
98
|
+
is_error_found = true unless value.to_f <= defination
|
99
|
+
when (rule=="inclusion" and defination.present?)
|
100
|
+
# return error if param's value is not in between defination
|
101
|
+
is_error_found = true unless is_in_inclusion?(defination, value)
|
102
|
+
when (rule == "pattern" and defination.present?)
|
103
|
+
# return error if pattern doesn't match
|
104
|
+
if dtd["rules"].has_key?("presence") == true || value.present?
|
105
|
+
is_error_found = true unless is_pattern_match?(value, Regexp.new(defination))
|
106
|
+
end
|
107
|
+
end
|
108
|
+
return is_error_found
|
109
|
+
end
|
110
|
+
end
|
111
|
+
# Require our engine
|
112
|
+
require "api_validator/engine"
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module ApiValidator
|
4
|
+
module Generators
|
5
|
+
class InstallGenerator < Rails::Generators::NamedBase
|
6
|
+
def self.source_root
|
7
|
+
source_root ||= File.join(File.dirname(__FILE__), 'templates/')
|
8
|
+
end
|
9
|
+
|
10
|
+
def copy_initializer_file
|
11
|
+
create_file "config/initializers/#{file_name}.rb", <<-FILE
|
12
|
+
validation_template = ERB.new(File.new(File.expand_path('../../#{file_name}.yml.erb', __FILE__)).read)
|
13
|
+
VALIDATION_CONFIG = HashWithIndifferentAccess.new(YAML.load(validation_template.result(binding)))
|
14
|
+
FILE
|
15
|
+
end
|
16
|
+
|
17
|
+
def copy_validate_api_yml_file
|
18
|
+
copy_file "validate_api.yml.erb", "config/#{file_name}.yml.erb"
|
19
|
+
end
|
20
|
+
|
21
|
+
def add_module
|
22
|
+
line = "class ApplicationController < ActionController::Base"
|
23
|
+
gsub_file 'app/controllers/application_controller.rb', /(#{Regexp.escape(line)})/mi do |match|
|
24
|
+
"#{match}\n include ApiValidator\n"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# This yml used to specify your rules ans messages of parameters
|
2
|
+
# You need to follow following pattern to make it applicable
|
3
|
+
# controller_name:
|
4
|
+
# method_name:
|
5
|
+
# param1:
|
6
|
+
# rules:
|
7
|
+
# presence: true
|
8
|
+
# integer: true
|
9
|
+
# min_length: 5
|
10
|
+
# max_length: 15
|
11
|
+
# pattern: <%#= "/\A^[a-zA-Z\s'.-]*$\Z/".source %>
|
12
|
+
# inclusion: "1..10"
|
13
|
+
# messages:
|
14
|
+
# presence: "Param1 must present."
|
15
|
+
# integer: "Param1 must contain integer only."
|
16
|
+
# min_length: "Param1 must have minimum length of 5."
|
17
|
+
# max_length: "Param1 must have maximum length of 15."
|
18
|
+
# pattern: "Invalid Param1"
|
19
|
+
# inclusion: "The param1 must be between 1 and 10"
|
20
|
+
#
|
21
|
+
# Also if have some paramters which accepts json as value and that json have some
|
22
|
+
# which need to be validate you need to follow following pattern to make it applicable
|
23
|
+
# controller_name:
|
24
|
+
# method_name:
|
25
|
+
# param1:
|
26
|
+
# rules:
|
27
|
+
# presence: true
|
28
|
+
# json_string: true
|
29
|
+
# messages:
|
30
|
+
# presence: "Param1 must present."
|
31
|
+
# json_string: "Invalid json string."
|
32
|
+
# paramters:
|
33
|
+
# json_1st_param:
|
34
|
+
# rules:
|
35
|
+
# presence: true
|
36
|
+
# messages:
|
37
|
+
# presence: "Json first param must prresent."
|
38
|
+
# json_2nd_param:
|
39
|
+
# rules:
|
40
|
+
# integer: true
|
41
|
+
# messages:
|
42
|
+
# integer: "Json second param must be integer only."
|
metadata
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: api_validator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- sandipkaranjekar
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-05-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 12.3.3
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 12.3.3
|
41
|
+
description: RubyGem for API validation. Here you need to set rules and messages in
|
42
|
+
yml, rest of the things are handle by gem.
|
43
|
+
email:
|
44
|
+
- sandipkaranjekar@gmail.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- ".gitignore"
|
50
|
+
- CODE_OF_CONDUCT.md
|
51
|
+
- Gemfile
|
52
|
+
- LICENSE.txt
|
53
|
+
- README.md
|
54
|
+
- Rakefile
|
55
|
+
- api_validator.gemspec
|
56
|
+
- bin/console
|
57
|
+
- bin/setup
|
58
|
+
- lib/api_validator.rb
|
59
|
+
- lib/api_validator/engine.rb
|
60
|
+
- lib/api_validator/version.rb
|
61
|
+
- lib/generators/api_validator/install/install_generator.rb
|
62
|
+
- lib/generators/api_validator/install/templates/validate_api.yml.erb
|
63
|
+
homepage: https://github.com/sandipkaranjekar/api_validator
|
64
|
+
licenses:
|
65
|
+
- MIT
|
66
|
+
metadata: {}
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubygems_version: 3.0.8
|
83
|
+
signing_key:
|
84
|
+
specification_version: 4
|
85
|
+
summary: RubyGem for API validation
|
86
|
+
test_files: []
|