eav_model 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: 745fe9e1754d04c01e9974cfc144b7b18e4919d9874607e921e45995437780c7
4
+ data.tar.gz: 3adb488f00f1aa0448849b34a27702f3da18c8ec0b45c20f1902ebd502659427
5
+ SHA512:
6
+ metadata.gz: c3394942af58c108a3e7368763c157c945cd1b48aaf01b10d937acb11690cd81216b34d3f32890c281a01a687090c8a43098ec2fcb0a22f79a6feddbfe082f1c
7
+ data.tar.gz: '096b95de13b79c9046d712cb85939c2b950f71d260369ed1b8c941e33cf907ea18c1882f2106d547ae1600f6acfaf9ea5672c0085ae083fb59bef72d83455379'
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
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
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2023-07-29
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 derekcrosson18@gmail.com. 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,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in eav_model.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "minitest", "~> 5.0"
11
+
12
+ gem "rubocop", "~> 1.21"
data/Gemfile.lock ADDED
@@ -0,0 +1,183 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ eav_model (0.1.0)
5
+ rails (~> 7.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (7.0.6)
11
+ actionpack (= 7.0.6)
12
+ activesupport (= 7.0.6)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (7.0.6)
16
+ actionpack (= 7.0.6)
17
+ activejob (= 7.0.6)
18
+ activerecord (= 7.0.6)
19
+ activestorage (= 7.0.6)
20
+ activesupport (= 7.0.6)
21
+ mail (>= 2.7.1)
22
+ net-imap
23
+ net-pop
24
+ net-smtp
25
+ actionmailer (7.0.6)
26
+ actionpack (= 7.0.6)
27
+ actionview (= 7.0.6)
28
+ activejob (= 7.0.6)
29
+ activesupport (= 7.0.6)
30
+ mail (~> 2.5, >= 2.5.4)
31
+ net-imap
32
+ net-pop
33
+ net-smtp
34
+ rails-dom-testing (~> 2.0)
35
+ actionpack (7.0.6)
36
+ actionview (= 7.0.6)
37
+ activesupport (= 7.0.6)
38
+ rack (~> 2.0, >= 2.2.4)
39
+ rack-test (>= 0.6.3)
40
+ rails-dom-testing (~> 2.0)
41
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
42
+ actiontext (7.0.6)
43
+ actionpack (= 7.0.6)
44
+ activerecord (= 7.0.6)
45
+ activestorage (= 7.0.6)
46
+ activesupport (= 7.0.6)
47
+ globalid (>= 0.6.0)
48
+ nokogiri (>= 1.8.5)
49
+ actionview (7.0.6)
50
+ activesupport (= 7.0.6)
51
+ builder (~> 3.1)
52
+ erubi (~> 1.4)
53
+ rails-dom-testing (~> 2.0)
54
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
55
+ activejob (7.0.6)
56
+ activesupport (= 7.0.6)
57
+ globalid (>= 0.3.6)
58
+ activemodel (7.0.6)
59
+ activesupport (= 7.0.6)
60
+ activerecord (7.0.6)
61
+ activemodel (= 7.0.6)
62
+ activesupport (= 7.0.6)
63
+ activestorage (7.0.6)
64
+ actionpack (= 7.0.6)
65
+ activejob (= 7.0.6)
66
+ activerecord (= 7.0.6)
67
+ activesupport (= 7.0.6)
68
+ marcel (~> 1.0)
69
+ mini_mime (>= 1.1.0)
70
+ activesupport (7.0.6)
71
+ concurrent-ruby (~> 1.0, >= 1.0.2)
72
+ i18n (>= 1.6, < 2)
73
+ minitest (>= 5.1)
74
+ tzinfo (~> 2.0)
75
+ ast (2.4.2)
76
+ builder (3.2.4)
77
+ concurrent-ruby (1.2.2)
78
+ crass (1.0.6)
79
+ date (3.3.3)
80
+ erubi (1.12.0)
81
+ globalid (1.1.0)
82
+ activesupport (>= 5.0)
83
+ i18n (1.14.1)
84
+ concurrent-ruby (~> 1.0)
85
+ json (2.6.3)
86
+ loofah (2.21.3)
87
+ crass (~> 1.0.2)
88
+ nokogiri (>= 1.12.0)
89
+ mail (2.8.1)
90
+ mini_mime (>= 0.1.1)
91
+ net-imap
92
+ net-pop
93
+ net-smtp
94
+ marcel (1.0.2)
95
+ method_source (1.0.0)
96
+ mini_mime (1.1.2)
97
+ minitest (5.19.0)
98
+ net-imap (0.3.7)
99
+ date
100
+ net-protocol
101
+ net-pop (0.1.2)
102
+ net-protocol
103
+ net-protocol (0.2.1)
104
+ timeout
105
+ net-smtp (0.3.3)
106
+ net-protocol
107
+ nio4r (2.5.9)
108
+ nokogiri (1.15.3-x86_64-darwin)
109
+ racc (~> 1.4)
110
+ parallel (1.23.0)
111
+ parser (3.2.2.3)
112
+ ast (~> 2.4.1)
113
+ racc
114
+ racc (1.7.1)
115
+ rack (2.2.7)
116
+ rack-test (2.1.0)
117
+ rack (>= 1.3)
118
+ rails (7.0.6)
119
+ actioncable (= 7.0.6)
120
+ actionmailbox (= 7.0.6)
121
+ actionmailer (= 7.0.6)
122
+ actionpack (= 7.0.6)
123
+ actiontext (= 7.0.6)
124
+ actionview (= 7.0.6)
125
+ activejob (= 7.0.6)
126
+ activemodel (= 7.0.6)
127
+ activerecord (= 7.0.6)
128
+ activestorage (= 7.0.6)
129
+ activesupport (= 7.0.6)
130
+ bundler (>= 1.15.0)
131
+ railties (= 7.0.6)
132
+ rails-dom-testing (2.1.1)
133
+ activesupport (>= 5.0.0)
134
+ minitest
135
+ nokogiri (>= 1.6)
136
+ rails-html-sanitizer (1.6.0)
137
+ loofah (~> 2.21)
138
+ nokogiri (~> 1.14)
139
+ railties (7.0.6)
140
+ actionpack (= 7.0.6)
141
+ activesupport (= 7.0.6)
142
+ method_source
143
+ rake (>= 12.2)
144
+ thor (~> 1.0)
145
+ zeitwerk (~> 2.5)
146
+ rainbow (3.1.1)
147
+ rake (13.0.6)
148
+ regexp_parser (2.8.1)
149
+ rexml (3.2.6)
150
+ rubocop (1.52.1)
151
+ json (~> 2.3)
152
+ parallel (~> 1.10)
153
+ parser (>= 3.2.2.3)
154
+ rainbow (>= 2.2.2, < 4.0)
155
+ regexp_parser (>= 1.8, < 3.0)
156
+ rexml (>= 3.2.5, < 4.0)
157
+ rubocop-ast (>= 1.28.0, < 2.0)
158
+ ruby-progressbar (~> 1.7)
159
+ unicode-display_width (>= 2.4.0, < 3.0)
160
+ rubocop-ast (1.29.0)
161
+ parser (>= 3.2.1.0)
162
+ ruby-progressbar (1.13.0)
163
+ thor (1.2.2)
164
+ timeout (0.4.0)
165
+ tzinfo (2.0.6)
166
+ concurrent-ruby (~> 1.0)
167
+ unicode-display_width (2.4.2)
168
+ websocket-driver (0.7.6)
169
+ websocket-extensions (>= 0.1.0)
170
+ websocket-extensions (0.1.5)
171
+ zeitwerk (2.6.9)
172
+
173
+ PLATFORMS
174
+ x86_64-darwin-22
175
+
176
+ DEPENDENCIES
177
+ eav_model!
178
+ minitest (~> 5.0)
179
+ rake (~> 13.0)
180
+ rubocop (~> 1.21)
181
+
182
+ BUNDLED WITH
183
+ 2.4.12
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Derek Crosson
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
+ # EAV Model
2
+
3
+ EAV Model is a Rails gem for adding an Entity-Attribute-Value (EAV) model to your Rails application.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```zsh
10
+ gem 'eav_model'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ ```zsh
16
+ bundle install
17
+ ```
18
+
19
+ Or install it yourself with the following command:
20
+
21
+ ```zsh
22
+ gem install eav_model
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ In your Rails model:
28
+
29
+ ```ruby
30
+ class Product < ApplicationRecord
31
+ include EavModel
32
+ eav_model_for :attributes, :values
33
+ end
34
+ ```
35
+
36
+ This will set up has_many :attributes and has_many :values, through: :attributes associations on the Product model.
37
+
38
+ Next, run the following command to create the necessary migration:
39
+
40
+ ```zsh
41
+ rails generate eav_model:migration
42
+ ```
43
+
44
+ And then migrate the database:
45
+
46
+ ```zsh
47
+ rails db:migrate
48
+ ```
49
+
50
+ Now, you can use the attributes association to add attributes to your Product model. Each attribute can have an
51
+ IntegerValue, StringValue, or BooleanValue.
52
+
53
+ Here is an example:
54
+
55
+ ```ruby
56
+ product = Product.create(name: 'Smartphone')
57
+
58
+ # Create an attribute
59
+ attribute = product.attributes.create(name: 'Color')
60
+
61
+ # Create a string value for the attribute
62
+ StringValue.create(value: 'Black', attribute: attribute)
63
+
64
+ # Fetch the values for an attribute
65
+ attribute.string_values # Returns a collection of string values
66
+ attribute.integer_values # Returns a collection of integer values
67
+ attribute.boolean_values # Returns a collection of boolean values
68
+ ```
69
+
70
+ ## Contributing
71
+
72
+ Bug reports and pull requests are welcome on GitHub at https://github.com/DerekCrosson/eav_model. This project is
73
+ intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
74
+ [code of conduct](https://github.com/DerekCrosson/eav_model/blob/main/CODE_OF_CONDUCT.md).
75
+
76
+ ## License
77
+
78
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
79
+
80
+ ## Code of Conduct
81
+
82
+ Everyone interacting in the EAV Model project's codebases, issue trackers, chat rooms and mailing lists is expected to
83
+ follow the [code of conduct](https://github.com/DerekCrosson/eav_model/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/test_*.rb"]
10
+ end
11
+
12
+ require "rubocop/rake_task"
13
+
14
+ RuboCop::RakeTask.new
15
+
16
+ task default: %i[test rubocop]
data/eav_model.gemspec ADDED
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/eav_model/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "eav_model"
7
+ spec.version = EavModel::VERSION
8
+ spec.authors = ["Derek Crosson"]
9
+ spec.email = ["derekcrosson18@gmail.com"]
10
+
11
+ spec.summary = "Allow usage of the EAV model in your Rails application"
12
+ spec.homepage = "https://github.com/DerekCrosson/eav_model"
13
+ spec.license = "MIT"
14
+ spec.required_ruby_version = ">= 2.6.0"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = "https://github.com/DerekCrosson/eav_model"
18
+ spec.metadata["changelog_uri"] = "https://github.com/DerekCrosson/eav_model/blob/main/CHANGELOG.md"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(__dir__) do
23
+ `git ls-files -z`.split("\x0").reject do |f|
24
+ (File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
25
+ end
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ # Uncomment to register a new dependency of your gem
32
+ # spec.add_dependency "example-gem", "~> 1.0"
33
+ spec.add_dependency 'rails', '~> 7.0'
34
+
35
+ # For more information and examples about making a new gem, check out our
36
+ # guide at: https://bundler.io/guides/creating_gem.html
37
+ end
@@ -0,0 +1,9 @@
1
+ module EavModel
2
+ class Attribute < ActiveRecord::Base
3
+ belongs_to :entity, polymorphic: true
4
+
5
+ has_one :integer_value
6
+ has_one :string_value
7
+ has_one :boolean_value
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module EavModel
2
+ class BooleanValue < ActiveRecord::Base
3
+ belongs_to :attribute
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ module EavModel
2
+ class Entity < ActiveRecord::Base
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module EavModel
2
+ class IntegerValue < ActiveRecord::Base
3
+ belongs_to :attribute
4
+ validates :value, numericality: { only_integer: true }
5
+ end
6
+ end
@@ -0,0 +1,9 @@
1
+ module EavModel
2
+ class MigrationGenerator < Rails::Generators::Base
3
+ source_root File.expand_path('templates', __dir__)
4
+
5
+ def create_migration_file
6
+ migration_template 'migration.rb', 'db/migrate/create_eav_model_tables.rb'
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module EavModel
2
+ class StringValue < ActiveRecord::Base
3
+ belongs_to :attribute
4
+ end
5
+ end
@@ -0,0 +1,31 @@
1
+ class CreateEavModelTables < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :attributes do |t|
4
+ t.references :entity, polymorphic: true
5
+ t.string :name
6
+
7
+ t.timestamps
8
+ end
9
+
10
+ create_table :integer_values do |t|
11
+ t.integer :value
12
+ t.references :attribute, foreign_key: true
13
+
14
+ t.timestamps
15
+ end
16
+
17
+ create_table :string_values do |t|
18
+ t.string :value
19
+ t.references :attribute, foreign_key: true
20
+
21
+ t.timestamps
22
+ end
23
+
24
+ create_table :boolean_values do |t|
25
+ t.boolean :value
26
+ t.references :attribute, foreign_key: true
27
+
28
+ t.timestamps
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EavModel
4
+ VERSION = "0.1.0"
5
+ end
data/lib/eav_model.rb ADDED
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "eav_model/version"
4
+ require 'active_support/concern'
5
+
6
+ module EavModel
7
+ extend ActiveSupport::Concern
8
+
9
+ class_methods do
10
+ def eav_model_for(attr_assoc_name, values_assoc_name)
11
+ class_name = self.name
12
+ has_many attr_assoc_name, -> { where(entity_type: class_name) }, class_name: 'Attribute', foreign_key: :entity_id
13
+ has_many values_assoc_name, through: attr_assoc_name
14
+ end
15
+ end
16
+ end
17
+
data/sig/eav_model.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module EavModel
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: eav_model
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Derek Crosson
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-07-29 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: '7.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '7.0'
27
+ description:
28
+ email:
29
+ - derekcrosson18@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".rubocop.yml"
35
+ - CHANGELOG.md
36
+ - CODE_OF_CONDUCT.md
37
+ - Gemfile
38
+ - Gemfile.lock
39
+ - LICENSE.txt
40
+ - README.md
41
+ - Rakefile
42
+ - eav_model.gemspec
43
+ - lib/eav_model.rb
44
+ - lib/eav_model/attribute.rb
45
+ - lib/eav_model/boolean_value.rb
46
+ - lib/eav_model/entity.rb
47
+ - lib/eav_model/integer_value.rb
48
+ - lib/eav_model/migration_generator.rb
49
+ - lib/eav_model/string_value.rb
50
+ - lib/eav_model/templates/migration.rb
51
+ - lib/eav_model/version.rb
52
+ - sig/eav_model.rbs
53
+ homepage: https://github.com/DerekCrosson/eav_model
54
+ licenses:
55
+ - MIT
56
+ metadata:
57
+ homepage_uri: https://github.com/DerekCrosson/eav_model
58
+ source_code_uri: https://github.com/DerekCrosson/eav_model
59
+ changelog_uri: https://github.com/DerekCrosson/eav_model/blob/main/CHANGELOG.md
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 2.6.0
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubygems_version: 3.4.10
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: Allow usage of the EAV model in your Rails application
79
+ test_files: []