spicy_validation 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: adca10ddbd3676bc61ee4d78a3e5235f61305420981d94eb80d2dc617f24d51c
4
+ data.tar.gz: 3f4bb42d116517423f7b5b24c80017ee16efb6ebdfe9516b29cfc69089f86017
5
+ SHA512:
6
+ metadata.gz: b40c8c2cd9f538f1dbd11026cd984dec1c633ee3cf2b901ff944220000c01d8c95f1b5c9987febcef8413e7687c8f0c25b1d8bb23dcc192f3041607566eb5937
7
+ data.tar.gz: 13b0f54827475b77d7f4da39b1404bc43259ae8cc872a16aae7ae185402148c44a03e0e3b6f6dcc01360db46d207192ec217e88d4024120c20e6a9a92a95619d
@@ -0,0 +1,22 @@
1
+ name: Ruby
2
+
3
+ on: [push,pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Set up Database
10
+ run: |
11
+ sudo systemctl start mysql.service
12
+ mysql -uroot -h127.0.0.1 -proot -e 'CREATE DATABASE IF NOT EXISTS sample;'
13
+ - uses: actions/checkout@v2
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: 2.5.5
18
+ - name: Run the default task
19
+ run: |
20
+ gem install bundler -v 2.2.11
21
+ bundle install
22
+ bundle exec rake
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ Gemfile.lock
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,29 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.4
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
14
+
15
+ Style/Documentation:
16
+ Enabled: false
17
+
18
+ Style/SoleNestedConditional:
19
+ AllowModifier: true
20
+
21
+ Metrics/AbcSize:
22
+ Max: 22
23
+
24
+ CyclomaticComplexity:
25
+ Max: 9
26
+
27
+ Metrics/BlockLength:
28
+ Exclude:
29
+ - "spec/**/*"
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-02-26
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at nono19@students.desu.edu. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in spicy_validation.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Naoto Ono
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,82 @@
1
+ # SpicyValidation
2
+
3
+ Generate validation methods automatically from database schema.
4
+
5
+ **[important notice]** Your model file will be overwritten!
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'spicy_validation'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install spicy_validation
22
+
23
+ ## Usage
24
+
25
+ 1. Run `validation:generate` task
26
+ 2. Type a number you would like to generate validation
27
+ ```shell
28
+ % rails validation:generate
29
+ [warning] If you generate validation, model files will be overwritten.
30
+ {:"0"=>"samples", :"1"=>"users"}
31
+ Type a number you wanna generate validation > ex) 0
32
+ ```
33
+
34
+ ## Example
35
+
36
+ ```ruby
37
+ # db/migrate/20210227054155_create_users.rb
38
+ class CreateUsers < ActiveRecord::Migration[6.1]
39
+ def change
40
+ create_table :users do |t|
41
+ t.string :name, null: false
42
+ t.string :message, null: true
43
+ t.integer :age, null: false
44
+ t.integer :score
45
+ t.boolean :premium
46
+ t.timestamps
47
+ end
48
+ add_index :users, [:age, :name], unique: true
49
+ end
50
+ end
51
+
52
+ # app/models/user.rb
53
+ class User < ApplicationRecord
54
+
55
+ validates :message, presence: true
56
+ validates :age, numericality: true
57
+ validates :score, presence: true, numericality: true, allow_nil: true
58
+ validates :premium, presence: true
59
+ validates_uniqueness_of :age, scope: :name
60
+ end
61
+
62
+
63
+ ```
64
+ ## Development
65
+
66
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
67
+
68
+ ## Contributing
69
+
70
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/spicy_validation. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/spicy_validation/blob/master/CODE_OF_CONDUCT.md).
71
+
72
+ ## License
73
+
74
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
75
+
76
+ ## Code of Conduct
77
+
78
+ Everyone interacting in the SpicyValidation project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/spicy_validation/blob/master/CODE_OF_CONDUCT.md).
79
+
80
+ ## Reference
81
+
82
+ https://github.com/sinsoku/pretty_validation
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "spicy_validation"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
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,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails"
4
+ require_relative "spicy_validation/version"
5
+ require_relative "spicy_validation/railtie"
6
+ require_relative "spicy_validation/renderer"
7
+ require_relative "spicy_validation/schema"
8
+ require_relative "spicy_validation/validation"
9
+ require_relative "spicy_validation/monkey/new_hash_syntax"
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NewHashSyntax
4
+ refine Hash do
5
+ def format_hash
6
+ map { |k, v| "#{k}: #{v.inspect}" }.join(", ")
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SpicyValidation
4
+ class Railtie < Rails::Railtie
5
+ rake_tasks do
6
+ load "spicy_validation/tasks/validation.rake"
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,75 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "validation"
4
+ require_relative "schema"
5
+
6
+ module SpicyValidation
7
+ class Renderer
8
+ attr_reader :table_name
9
+
10
+ def initialize(table_name:)
11
+ @table_name = table_name
12
+ end
13
+
14
+ def self.generate(dry_run: false)
15
+ table = choose_table_name
16
+ object_table = new(table_name: table)
17
+ return if object_table.validations.empty?
18
+
19
+ object_table.write! if generate?(dry_run: dry_run)
20
+ end
21
+
22
+ def write!
23
+ File.write(model_path, content)
24
+ end
25
+
26
+ def self.generate?(dry_run:)
27
+ !dry_run
28
+ end
29
+
30
+ def self.choose_table_name
31
+ puts "\e[33m[warning] If you generate validation, model file will be overwritten.\e[0m"
32
+ hash_tables = Schema.table_names.map.with_index { |table, index| [index.to_s.to_sym, table] }.to_h
33
+ p hash_tables
34
+ while true
35
+ print "Type a number you wanna generate validation > "
36
+ num = $stdin.gets.chomp.to_sym
37
+ break if hash_tables.key?(num)
38
+
39
+ p "Type a number correctly!"
40
+ end
41
+
42
+ hash_tables[num]
43
+ end
44
+
45
+ def validations
46
+ normal_validations + unique_validations
47
+ end
48
+
49
+ def content
50
+ <<~MODEL
51
+ class #{model_name} < ApplicationRecord
52
+ #{validations.join("\n ")}
53
+ end
54
+ MODEL
55
+ end
56
+
57
+ def model_name
58
+ table_name.classify
59
+ end
60
+
61
+ private
62
+
63
+ def normal_validations
64
+ Validation.normal_validations(table_name: table_name)
65
+ end
66
+
67
+ def unique_validations
68
+ Validation.unique_validations(table_name: table_name)
69
+ end
70
+
71
+ def model_path
72
+ File.join(Rails.root.glob("app/models/**/#{model_name.underscore}.rb"))
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SpicyValidation
4
+ class Schema
5
+ def self.table_names
6
+ abstract_tables = [ActiveRecord::SchemaMigration.table_name, ActiveRecord::InternalMetadata.table_name]
7
+ ActiveRecord::Base
8
+ .connection.tables
9
+ .delete_if { |t| abstract_tables.include?(t) }
10
+ end
11
+
12
+ def self.columns(table_name:)
13
+ ActiveRecord::Base.connection.columns(table_name)
14
+ end
15
+
16
+ def self.indexes(table_name:)
17
+ ActiveRecord::Base.connection.indexes(table_name)
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :validation do
4
+ desc "Generate validations from database schema"
5
+ task generate: :environment do
6
+ require "spicy_validation/renderer"
7
+ dry_run = %w[true 1 on].include? ENV["DRY_RUN"]
8
+ SpicyValidation::Renderer.generate(dry_run: dry_run)
9
+ end
10
+ end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "monkey/new_hash_syntax"
4
+ module SpicyValidation
5
+ class Validation
6
+ using NewHashSyntax
7
+ attr_reader :method_name, :column_name, :options
8
+
9
+ def initialize(method_name:, column_name:, options:)
10
+ @method_name = method_name
11
+ @column_name = column_name
12
+ @options = options
13
+ end
14
+
15
+ def self.normal_validations(table_name:)
16
+ columns = Schema.columns(table_name: table_name)
17
+ columns = columns.reject { |x| x.name.in? %w[id created_at updated_at] }
18
+ columns.map do |column|
19
+ options = {}
20
+ options[:presence] = true unless column.null
21
+ options[:numericality] = true if column.type == :integer
22
+ options[:allow_nil] = true if column.null && (column.type == :integer)
23
+ Validation.new(method_name: "validates", column_name: column.name.to_sym, options: options) if options.present?
24
+ end.compact
25
+ end
26
+
27
+ def self.unique_validations(table_name:)
28
+ Schema.indexes(table_name: table_name).map do |index|
29
+ column_name = index.columns[0]
30
+ scope = index.columns[1..-1].map(&:to_sym)
31
+ options = if scope.size > 1
32
+ { scope: scope }
33
+ elsif scope.size == 1
34
+ { scope: scope[0] }
35
+ end
36
+ Validation.new(method_name: "validates_uniqueness_of", column_name: column_name.to_sym, options: options)
37
+ end
38
+ end
39
+
40
+ def to_s
41
+ if options.blank?
42
+ "#{method_name} #{column_name.inspect}"
43
+ else
44
+ "#{method_name} #{column_name.inspect}, #{options.format_hash}"
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SpicyValidation
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/spicy_validation/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "spicy_validation"
7
+ spec.version = SpicyValidation::VERSION
8
+ spec.authors = ["Naoto Ono"]
9
+ spec.email = ["nono19@students.desu.edu"]
10
+
11
+ spec.summary = "SpicyValidation generate validation from database schema."
12
+ spec.description = "SpicyValidation overwrite model file that user would like to generate validation."
13
+ spec.homepage = "https://github.com/ono-max/spicy_validation"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/ono-max/spicy_validation"
19
+ spec.metadata["changelog_uri"] = "https://github.com/ono-max/spicy_validation/blob/main/CHANGELOG.md"
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
25
+ end
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_dependency "rails"
31
+
32
+ spec.add_development_dependency "bundler"
33
+ spec.add_development_dependency "mysql2"
34
+ spec.add_development_dependency "rake"
35
+ spec.add_development_dependency "rspec"
36
+ spec.add_development_dependency "rubocop"
37
+ end
metadata ADDED
@@ -0,0 +1,153 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spicy_validation
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Naoto Ono
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-04-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: mysql2
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: SpicyValidation overwrite model file that user would like to generate
98
+ validation.
99
+ email:
100
+ - nono19@students.desu.edu
101
+ executables: []
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - ".github/workflows/main.yml"
106
+ - ".gitignore"
107
+ - ".rspec"
108
+ - ".rubocop.yml"
109
+ - CHANGELOG.md
110
+ - CODE_OF_CONDUCT.md
111
+ - Gemfile
112
+ - LICENSE.txt
113
+ - README.md
114
+ - Rakefile
115
+ - bin/console
116
+ - bin/setup
117
+ - lib/spicy_validation.rb
118
+ - lib/spicy_validation/monkey/new_hash_syntax.rb
119
+ - lib/spicy_validation/railtie.rb
120
+ - lib/spicy_validation/renderer.rb
121
+ - lib/spicy_validation/schema.rb
122
+ - lib/spicy_validation/tasks/validation.rake
123
+ - lib/spicy_validation/validation.rb
124
+ - lib/spicy_validation/version.rb
125
+ - spicy_validation.gemspec
126
+ homepage: https://github.com/ono-max/spicy_validation
127
+ licenses:
128
+ - MIT
129
+ metadata:
130
+ homepage_uri: https://github.com/ono-max/spicy_validation
131
+ source_code_uri: https://github.com/ono-max/spicy_validation
132
+ changelog_uri: https://github.com/ono-max/spicy_validation/blob/main/CHANGELOG.md
133
+ post_install_message:
134
+ rdoc_options: []
135
+ require_paths:
136
+ - lib
137
+ required_ruby_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: 2.4.0
142
+ required_rubygems_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ requirements: []
148
+ rubyforge_project:
149
+ rubygems_version: 2.7.6.2
150
+ signing_key:
151
+ specification_version: 4
152
+ summary: SpicyValidation generate validation from database schema.
153
+ test_files: []