i_miss_validator 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: db2ed19ada7c81503f82f370d53b5f49da78b11f582ffe900b8772c8d36649e1
4
+ data.tar.gz: 48b84d49b5907f8ebdc417124fcbafea2b04c78078e726e1175c108d8af828e4
5
+ SHA512:
6
+ metadata.gz: b4660f06c92b659da9d2d52ae93456ae4001fc383e7cc9fd1d9ef118fd6216adc3495afee7b403e071b475e60895a5255b628bcb9e640b7ad823f8b2f1e34f70
7
+ data.tar.gz: 0c207202bd01f2d5817008aaefce5af8313d9d996a77022cfb20b05002c9ab5913d84b398bf9090e6af29067252ebb11f8b5757b6ce5f5c7a4bdedf3d6153c7e
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /vendor
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.4
5
+ before_install: gem install bundler -v 1.16.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at y.wakahara@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in i_miss_validator.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,43 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ i_miss_validator (0.1.0)
5
+ activerecord (>= 4.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (5.2.0)
11
+ activesupport (= 5.2.0)
12
+ activerecord (5.2.0)
13
+ activemodel (= 5.2.0)
14
+ activesupport (= 5.2.0)
15
+ arel (>= 9.0)
16
+ activesupport (5.2.0)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 0.7, < 2)
19
+ minitest (~> 5.1)
20
+ tzinfo (~> 1.1)
21
+ arel (9.0.0)
22
+ concurrent-ruby (1.0.5)
23
+ i18n (1.0.1)
24
+ concurrent-ruby (~> 1.0)
25
+ minitest (5.11.3)
26
+ mysql2 (0.3.21)
27
+ rake (10.5.0)
28
+ thread_safe (0.3.6)
29
+ tzinfo (1.2.5)
30
+ thread_safe (~> 0.1)
31
+
32
+ PLATFORMS
33
+ ruby
34
+
35
+ DEPENDENCIES
36
+ bundler (~> 1.16)
37
+ i_miss_validator!
38
+ minitest (~> 5.0)
39
+ mysql2 (>= 0.3, < 0.4)
40
+ rake (~> 10.0)
41
+
42
+ BUNDLED WITH
43
+ 1.16.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 yo_waka
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,58 @@
1
+ # IMissValidator
2
+
3
+ This library discover validation that is not defined in the model.
4
+ It will suggest you undefined validations like this.
5
+
6
+ ```
7
+ Model: User
8
+ Column: name
9
+ Missing: presence: true
10
+ Missing: length: { maximum: 255 }
11
+ Column: age
12
+ Missing: numericality: { only_integer: true, less_than_or_equal_to: -2147483648, greater_then_or_equal_to: 2147483648 }
13
+ Column: authorized
14
+ Missing: acceptance: true or acceptance: { accept: 'true', 'false' }
15
+ Column: bank_id
16
+ Missing: presence: true
17
+ ```
18
+
19
+ ## Installation
20
+
21
+ Add this line to your application's Gemfile:
22
+
23
+ ```ruby
24
+ gem 'i_miss_validator'
25
+ ```
26
+
27
+ And then execute:
28
+
29
+ $ bundle
30
+
31
+ Or install it yourself as:
32
+
33
+ $ gem install i_miss_validator
34
+
35
+ ## Usage
36
+
37
+ ```
38
+ $ cd RAILS_APP_ROOT_DIR
39
+ $ bundle exec i_miss_validator
40
+ ```
41
+
42
+ ## Development
43
+
44
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
45
+
46
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
47
+
48
+ ## Contributing
49
+
50
+ Bug reports and pull requests are welcome on GitHub at https://github.com/waka/i_miss_validator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
51
+
52
+ ## License
53
+
54
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
55
+
56
+ ## Code of Conduct
57
+
58
+ Everyone interacting in the IMissValidator project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/waka/i_miss_validator/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "i_miss_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(__FILE__)
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ begin
4
+ require File.join(Dir.pwd, 'config', 'boot')
5
+ require File.join(Dir.pwd, 'config', 'environment')
6
+ rescue LoadError
7
+ raise 'Must be in the root dir on rails app'
8
+ end
9
+
10
+ require 'bundler/setup'
11
+ require 'i_miss_validator'
12
+
13
+ IMissValidator.run
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,29 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "i_miss_validator/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "i_miss_validator"
7
+ spec.version = IMissValidator::VERSION
8
+ spec.authors = ["yo_waka"]
9
+ spec.email = ["y.wakahara@gmail.com"]
10
+
11
+ spec.summary = %q{Check missing validators by database schema.}
12
+ spec.description = %q{Check missing validators by database schema.}
13
+ spec.homepage = "https://github.com/waka/i_miss_validator"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = "bin"
20
+ spec.executables = ["i_miss_validator".freeze]
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.16"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "minitest", "~> 5.0"
26
+ spec.add_development_dependency "mysql2", ">= 0.3", "< 0.4"
27
+
28
+ spec.add_dependency "activerecord", ">= 4.2"
29
+ end
@@ -0,0 +1,37 @@
1
+ require 'i_miss_validator/inspector'
2
+ require 'i_miss_validator/inspector/acceptance_inspector'
3
+ require 'i_miss_validator/inspector/length_inspector'
4
+ require 'i_miss_validator/inspector/numericality_inspector'
5
+ require 'i_miss_validator/inspector/presence_inspector'
6
+ require 'i_miss_validator/reporter'
7
+ require 'i_miss_validator/version'
8
+
9
+ module IMissValidator
10
+ def self.run(inspectors = [])
11
+ inspector = IMissValidator::Inspector.new(
12
+ default_models_path,
13
+ default_inspectors + inspectors
14
+ )
15
+ inspector.inspect
16
+
17
+ IMissValidator::Reporter.report(inspector.results)
18
+
19
+ true
20
+ rescue => ex
21
+ puts ex.message
22
+ false
23
+ end
24
+
25
+ def self.default_models_path
26
+ File.join(Dir.pwd, 'app', 'models')
27
+ end
28
+
29
+ def self.default_inspectors
30
+ [
31
+ IMissValidator::Inspector::AcceptanceInspector,
32
+ IMissValidator::Inspector::LengthInspector,
33
+ IMissValidator::Inspector::NumericalityInspector,
34
+ IMissValidator::Inspector::PresenceInspector
35
+ ]
36
+ end
37
+ end
@@ -0,0 +1,43 @@
1
+ require 'active_record'
2
+
3
+ class IMissValidator::Inspector
4
+ attr_reader :results
5
+
6
+ def initialize(models_path, inspectors = [])
7
+ @models_path = models_path
8
+ @inspectors = inspectors
9
+ @results = []
10
+ end
11
+
12
+ def models
13
+ Dir.glob(File.join(@models_path, "**", "*.rb")).sort.each do |filename|
14
+ begin
15
+ Kernel.require_dependency filename
16
+ rescue
17
+ puts "Not a class #{filename}"
18
+ end
19
+ end
20
+
21
+ ActiveRecord::Base.descendants.sort_by(&:name)
22
+ end
23
+
24
+ def inspect
25
+ models.each do |model|
26
+ begin
27
+ model.columns
28
+ rescue
29
+ puts "No schema in model class #{model.to_s}"
30
+ next
31
+ end
32
+
33
+ problems = @inspectors.map do |inspector|
34
+ inspector.inspect(model)
35
+ end
36
+
37
+ @results << {
38
+ model: model.to_s,
39
+ problems: problems.flatten.compact.group_by {|pb| pb[:column] }
40
+ }
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,35 @@
1
+ require 'active_record'
2
+
3
+ #
4
+ # Check columns if defined as integer, but no validator.
5
+ #
6
+ class IMissValidator::Inspector::AcceptanceInspector
7
+ def self.columns(model)
8
+ model.columns.select do |column|
9
+ column.type == :boolean
10
+ end
11
+ end
12
+
13
+ def self.validators(model)
14
+ model.validators.select do |validator|
15
+ validator.class == ActiveModel::Validations::AcceptanceValidator
16
+ end
17
+ end
18
+
19
+ def self.missing_columns(model)
20
+ validated_columns = validators(model).map(&:attributes).flatten.uniq
21
+ columns(model).select do |column|
22
+ validated_columns.include?(column.name.to_sym) == false
23
+ end
24
+ end
25
+
26
+ def self.inspect(model)
27
+ missing_columns(model).map do |column|
28
+ {
29
+ column: column.name,
30
+ missing_validator: :acceptance_validator,
31
+ message: "acceptance: true or acceptance: { accept: 'true', 'false' }"
32
+ }
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,35 @@
1
+ require 'active_record'
2
+
3
+ #
4
+ # Check columns if defined limit, but no validator.
5
+ #
6
+ class IMissValidator::Inspector::LengthInspector
7
+ def self.columns(model)
8
+ model.columns.select do |column|
9
+ column.text?
10
+ end
11
+ end
12
+
13
+ def self.validators(model)
14
+ model.validators.select do |validator|
15
+ validator.class == ActiveModel::Validations::LengthValidator
16
+ end
17
+ end
18
+
19
+ def self.missing_columns(model)
20
+ validated_columns = validators(model).map(&:attributes).flatten.uniq
21
+ columns(model).select do |column|
22
+ validated_columns.include?(column.name.to_sym) == false
23
+ end
24
+ end
25
+
26
+ def self.inspect(model)
27
+ missing_columns(model).map do |column|
28
+ {
29
+ column: column.name,
30
+ missing_validator: :length_validator,
31
+ message: "length: { maximum: #{column.limit} }"
32
+ }
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,40 @@
1
+ require 'active_record'
2
+
3
+ #
4
+ # Check columns if defined as integer, but no validator.
5
+ #
6
+ class IMissValidator::Inspector::NumericalityInspector
7
+ IGNORE_COLUMN_NAMES = ['id', 'lock_version']
8
+
9
+ def self.columns(model)
10
+ model.columns.select do |column|
11
+ column.type == :integer &&
12
+ IGNORE_COLUMN_NAMES.include?(column.name) == false &&
13
+ (column.name =~ /.*id$/) == nil
14
+ end
15
+ end
16
+
17
+ def self.validators(model)
18
+ model.validators.select do |validator|
19
+ validator.class == ActiveModel::Validations::NumericalityValidator
20
+ end
21
+ end
22
+
23
+ def self.missing_columns(model)
24
+ validated_columns = validators(model).map(&:attributes).flatten.uniq
25
+ columns(model).select do |column|
26
+ !validated_columns.include?(column.name.to_sym)
27
+ end
28
+ end
29
+
30
+ def self.inspect(model)
31
+ missing_columns(model).map do |column|
32
+ range = column.cast_type.send(:range)
33
+ {
34
+ column: column.name,
35
+ missing_validator: :numericality_validator,
36
+ message: "numericality: { only_integer: true, less_than_or_equal_to: #{range.first}, greater_then_or_equal_to: #{range.last} }"
37
+ }
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,37 @@
1
+ require 'active_record'
2
+
3
+ #
4
+ # Check columns if defined not null, but no validator.
5
+ #
6
+ class IMissValidator::Inspector::PresenceInspector
7
+ IGNORE_COLUMN_NAMES = ['id', 'lock_version']
8
+
9
+ def self.columns(model)
10
+ model.columns.select do |column|
11
+ column.null == false && IGNORE_COLUMN_NAMES.include?(column.name) == false
12
+ end
13
+ end
14
+
15
+ def self.validators(model)
16
+ model.validators.select do |validator|
17
+ validator.class == ActiveRecord::Validations::PresenceValidator
18
+ end
19
+ end
20
+
21
+ def self.missing_columns(model)
22
+ validated_columns = validators(model).map(&:attributes).flatten.uniq
23
+ columns(model).select do |column|
24
+ validated_columns.include?(column.name.to_sym) == false
25
+ end
26
+ end
27
+
28
+ def self.inspect(model)
29
+ missing_columns(model).map do |column|
30
+ {
31
+ column: column.name,
32
+ missing_validator: :presence_validator,
33
+ message: 'presence: true'
34
+ }
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,40 @@
1
+ class IMissValidator::Reporter
2
+ module Colorize
3
+ refine String do
4
+ def red
5
+ "\e[36m#{self}\e[0m"
6
+ end
7
+
8
+ def yellow
9
+ "\e[33m#{self}\e[0m"
10
+ end
11
+
12
+ def pink
13
+ "\e[35m#{self}\e[0m"
14
+ end
15
+ end
16
+ end
17
+
18
+ using Colorize
19
+
20
+ def self.report(results = [])
21
+ results.each do |result|
22
+ next if result[:problems].keys.size == 0
23
+
24
+ print_with_indent(1, "Model".red + ": #{result[:model]}")
25
+
26
+ result[:problems].each do |column, problems|
27
+ print_with_indent(2, "Column".pink + ": #{column}")
28
+
29
+ problems.each do |problem|
30
+ print_with_indent(3, "Missing".yellow + ": #{problem[:message]}")
31
+ end
32
+ end
33
+ end
34
+ end
35
+
36
+ def self.print_with_indent(level, str = "")
37
+ level = 1 if 1 > level
38
+ puts " " * (level - 1) + str
39
+ end
40
+ end
@@ -0,0 +1,3 @@
1
+ module IMissValidator
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: i_miss_validator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - yo_waka
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-06-29 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.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
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.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mysql2
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0.3'
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '0.4'
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0.3'
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '0.4'
75
+ - !ruby/object:Gem::Dependency
76
+ name: activerecord
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '4.2'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '4.2'
89
+ description: Check missing validators by database schema.
90
+ email:
91
+ - y.wakahara@gmail.com
92
+ executables:
93
+ - i_miss_validator
94
+ extensions: []
95
+ extra_rdoc_files: []
96
+ files:
97
+ - ".gitignore"
98
+ - ".travis.yml"
99
+ - CODE_OF_CONDUCT.md
100
+ - Gemfile
101
+ - Gemfile.lock
102
+ - LICENSE.txt
103
+ - README.md
104
+ - Rakefile
105
+ - bin/console
106
+ - bin/i_miss_validator
107
+ - bin/setup
108
+ - i_miss_validator.gemspec
109
+ - lib/i_miss_validator.rb
110
+ - lib/i_miss_validator/inspector.rb
111
+ - lib/i_miss_validator/inspector/acceptance_inspector.rb
112
+ - lib/i_miss_validator/inspector/length_inspector.rb
113
+ - lib/i_miss_validator/inspector/numericality_inspector.rb
114
+ - lib/i_miss_validator/inspector/presence_inspector.rb
115
+ - lib/i_miss_validator/reporter.rb
116
+ - lib/i_miss_validator/version.rb
117
+ homepage: https://github.com/waka/i_miss_validator
118
+ licenses:
119
+ - MIT
120
+ metadata: {}
121
+ post_install_message:
122
+ rdoc_options: []
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubyforge_project:
137
+ rubygems_version: 2.7.6
138
+ signing_key:
139
+ specification_version: 4
140
+ summary: Check missing validators by database schema.
141
+ test_files: []