chronological_enum 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: 2b0a7c46af7aaefbe9e2d4cab74efbdcaab20c81a4e53320b3930b3b9d7b824a
4
+ data.tar.gz: 553e7c7e8c136cfec8674e49ef29b66a899c075a58fd347a044a8e0ca3737b8f
5
+ SHA512:
6
+ metadata.gz: de9a1145aee1473d42fe736be06f9cad2c72dfea231af2522d89cfecb0c90fa922accd34b8fa0746b535099eca690a82abeeed6459c2285eae2184c540d6b9f3
7
+ data.tar.gz: f8008d4071cd5c974ca2b07d6771d3ecd05006f845034c02769bd17971872942a51392021bf31ca0bb8e81699d082303fe5af3620857a5bf41d899ec3ad94390
data/.DS_Store ADDED
Binary file
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-06-07
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 myr.nicolas@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,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in chronological_enum.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 13.0'
9
+
10
+ gem 'rubocop', '~> 1.21'
11
+
12
+ group :development, :test do
13
+ gem 'minitest', '~> 5.0'
14
+ gem 'rails', '>= 5.2'
15
+ gem 'sqlite3', '~> 1.4'
16
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,191 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ chronological_enum (0.1.0)
5
+ rails (>= 5.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (6.1.7.8)
11
+ actionpack (= 6.1.7.8)
12
+ activesupport (= 6.1.7.8)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.1.7.8)
16
+ actionpack (= 6.1.7.8)
17
+ activejob (= 6.1.7.8)
18
+ activerecord (= 6.1.7.8)
19
+ activestorage (= 6.1.7.8)
20
+ activesupport (= 6.1.7.8)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.1.7.8)
23
+ actionpack (= 6.1.7.8)
24
+ actionview (= 6.1.7.8)
25
+ activejob (= 6.1.7.8)
26
+ activesupport (= 6.1.7.8)
27
+ mail (~> 2.5, >= 2.5.4)
28
+ rails-dom-testing (~> 2.0)
29
+ actionpack (6.1.7.8)
30
+ actionview (= 6.1.7.8)
31
+ activesupport (= 6.1.7.8)
32
+ rack (~> 2.0, >= 2.0.9)
33
+ rack-test (>= 0.6.3)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
+ actiontext (6.1.7.8)
37
+ actionpack (= 6.1.7.8)
38
+ activerecord (= 6.1.7.8)
39
+ activestorage (= 6.1.7.8)
40
+ activesupport (= 6.1.7.8)
41
+ nokogiri (>= 1.8.5)
42
+ actionview (6.1.7.8)
43
+ activesupport (= 6.1.7.8)
44
+ builder (~> 3.1)
45
+ erubi (~> 1.4)
46
+ rails-dom-testing (~> 2.0)
47
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
+ activejob (6.1.7.8)
49
+ activesupport (= 6.1.7.8)
50
+ globalid (>= 0.3.6)
51
+ activemodel (6.1.7.8)
52
+ activesupport (= 6.1.7.8)
53
+ activerecord (6.1.7.8)
54
+ activemodel (= 6.1.7.8)
55
+ activesupport (= 6.1.7.8)
56
+ activestorage (6.1.7.8)
57
+ actionpack (= 6.1.7.8)
58
+ activejob (= 6.1.7.8)
59
+ activerecord (= 6.1.7.8)
60
+ activesupport (= 6.1.7.8)
61
+ marcel (~> 1.0)
62
+ mini_mime (>= 1.1.0)
63
+ activesupport (6.1.7.8)
64
+ concurrent-ruby (~> 1.0, >= 1.0.2)
65
+ i18n (>= 1.6, < 2)
66
+ minitest (>= 5.1)
67
+ tzinfo (~> 2.0)
68
+ zeitwerk (~> 2.3)
69
+ ast (2.4.2)
70
+ builder (3.3.0)
71
+ concurrent-ruby (1.3.3)
72
+ crass (1.0.6)
73
+ date (3.3.4)
74
+ erubi (1.12.0)
75
+ globalid (1.2.1)
76
+ activesupport (>= 6.1)
77
+ i18n (1.14.5)
78
+ concurrent-ruby (~> 1.0)
79
+ json (2.7.2)
80
+ language_server-protocol (3.17.0.3)
81
+ loofah (2.22.0)
82
+ crass (~> 1.0.2)
83
+ nokogiri (>= 1.12.0)
84
+ mail (2.8.1)
85
+ mini_mime (>= 0.1.1)
86
+ net-imap
87
+ net-pop
88
+ net-smtp
89
+ marcel (1.0.4)
90
+ method_source (1.1.0)
91
+ mini_mime (1.1.5)
92
+ minitest (5.23.1)
93
+ net-imap (0.4.12)
94
+ date
95
+ net-protocol
96
+ net-pop (0.1.2)
97
+ net-protocol
98
+ net-protocol (0.2.2)
99
+ timeout
100
+ net-smtp (0.5.0)
101
+ net-protocol
102
+ nio4r (2.7.3)
103
+ nokogiri (1.16.5-arm64-darwin)
104
+ racc (~> 1.4)
105
+ parallel (1.24.0)
106
+ parser (3.3.2.0)
107
+ ast (~> 2.4.1)
108
+ racc
109
+ racc (1.8.0)
110
+ rack (2.2.9)
111
+ rack-test (2.1.0)
112
+ rack (>= 1.3)
113
+ rails (6.1.7.8)
114
+ actioncable (= 6.1.7.8)
115
+ actionmailbox (= 6.1.7.8)
116
+ actionmailer (= 6.1.7.8)
117
+ actionpack (= 6.1.7.8)
118
+ actiontext (= 6.1.7.8)
119
+ actionview (= 6.1.7.8)
120
+ activejob (= 6.1.7.8)
121
+ activemodel (= 6.1.7.8)
122
+ activerecord (= 6.1.7.8)
123
+ activestorage (= 6.1.7.8)
124
+ activesupport (= 6.1.7.8)
125
+ bundler (>= 1.15.0)
126
+ railties (= 6.1.7.8)
127
+ sprockets-rails (>= 2.0.0)
128
+ rails-dom-testing (2.2.0)
129
+ activesupport (>= 5.0.0)
130
+ minitest
131
+ nokogiri (>= 1.6)
132
+ rails-html-sanitizer (1.6.0)
133
+ loofah (~> 2.21)
134
+ nokogiri (~> 1.14)
135
+ railties (6.1.7.8)
136
+ actionpack (= 6.1.7.8)
137
+ activesupport (= 6.1.7.8)
138
+ method_source
139
+ rake (>= 12.2)
140
+ thor (~> 1.0)
141
+ rainbow (3.1.1)
142
+ rake (13.2.1)
143
+ regexp_parser (2.9.2)
144
+ rexml (3.2.8)
145
+ strscan (>= 3.0.9)
146
+ rubocop (1.64.1)
147
+ json (~> 2.3)
148
+ language_server-protocol (>= 3.17.0)
149
+ parallel (~> 1.10)
150
+ parser (>= 3.3.0.2)
151
+ rainbow (>= 2.2.2, < 4.0)
152
+ regexp_parser (>= 1.8, < 3.0)
153
+ rexml (>= 3.2.5, < 4.0)
154
+ rubocop-ast (>= 1.31.1, < 2.0)
155
+ ruby-progressbar (~> 1.7)
156
+ unicode-display_width (>= 2.4.0, < 3.0)
157
+ rubocop-ast (1.31.3)
158
+ parser (>= 3.3.1.0)
159
+ ruby-progressbar (1.13.0)
160
+ sprockets (4.2.1)
161
+ concurrent-ruby (~> 1.0)
162
+ rack (>= 2.2.4, < 4)
163
+ sprockets-rails (3.5.1)
164
+ actionpack (>= 6.1)
165
+ activesupport (>= 6.1)
166
+ sprockets (>= 3.0.0)
167
+ sqlite3 (1.7.3-arm64-darwin)
168
+ strscan (3.1.0)
169
+ thor (1.3.1)
170
+ timeout (0.4.1)
171
+ tzinfo (2.0.6)
172
+ concurrent-ruby (~> 1.0)
173
+ unicode-display_width (2.5.0)
174
+ websocket-driver (0.7.6)
175
+ websocket-extensions (>= 0.1.0)
176
+ websocket-extensions (0.1.5)
177
+ zeitwerk (2.6.15)
178
+
179
+ PLATFORMS
180
+ arm64-darwin-22
181
+
182
+ DEPENDENCIES
183
+ chronological_enum!
184
+ minitest (~> 5.0)
185
+ rails (>= 5.2)
186
+ rake (~> 13.0)
187
+ rubocop (~> 1.21)
188
+ sqlite3 (~> 1.4)
189
+
190
+ BUNDLED WITH
191
+ 2.2.33
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Nicolas Meyer
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,59 @@
1
+ # ChronologicalEnum
2
+
3
+ ChronologicalEnum is a Ruby gem that extends ActiveRecord enums to provide dynamic scopes for enums with values in a specified order.
4
+
5
+ For example
6
+ ```ruby
7
+ class MyClass < ApplicationRecord
8
+ enum status: { created: 0, processed: 1, finished: 2 }, _chronological: true
9
+ end
10
+
11
+ # Scope examples
12
+ MyClass.after_created # returns records with status greater than created
13
+ MyClass.before_finished # returns records with status lower than finished
14
+ MyClass.after_or_processed # returns records with status greater or equal to processed
15
+ MyClass.before_or_processed # returns records with status lower or equal to finished
16
+ ```
17
+
18
+ It also supports prefixes and suffixes.
19
+ ```ruby
20
+ class MyClass < ApplicationRecord
21
+ enum status: { created: 0, processed: 1, finished: 2 }, _prefix: 'my', _suffix: 'enum',_chronological: true
22
+ end
23
+
24
+ MyClass.after_my_status_enum # returns records with status greater than created
25
+ ```
26
+
27
+ The enum values have to be integers otherwise ChronologicalEnum would not work.
28
+
29
+ ## Installation
30
+
31
+ Add this line to your application's Gemfile:
32
+
33
+ ```ruby
34
+ gem 'chronological_enum'
35
+ ```
36
+
37
+ And then execute:
38
+
39
+ $ bundle install
40
+
41
+ Or install it yourself as:
42
+
43
+ $ gem install chronological_enum
44
+
45
+ ## Usage
46
+
47
+ Just add `_chronological: true` to your enum definition as shown above.
48
+
49
+ ## Contributing
50
+
51
+ Bug reports and pull requests are welcome on GitHub at https://github.com/nicmey/chronological_enum. 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/nicmey/chronological_enum/blob/main/CODE_OF_CONDUCT.md).
52
+
53
+ ## License
54
+
55
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
56
+
57
+ ## Code of Conduct
58
+
59
+ Everyone interacting in the chronologicalEnum project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/nicmey/chronological_enum/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/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "chronological_enum"
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,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/chronological_enum/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "chronological_enum"
7
+ spec.version = ChronologicalEnum::VERSION
8
+ spec.authors = ["Nicolas Meyer"]
9
+ spec.email = ["myr.nicolas@gmail.com"]
10
+
11
+ spec.summary = "Chronological enum"
12
+ spec.description = "Add scopes to enum in rails with after and before queries for enums that have chronologicality"
13
+ spec.homepage = "https://github.com/nicmey/chronological_enum"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/nicmey/chronological_enum"
19
+ spec.metadata["changelog_uri"] = "https://github.com/nicmey/chronological_enum/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 do |f|
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
+ end
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ # Uncomment to register a new dependency of your gem
33
+ spec.add_dependency "rails", ">= 5.2"
34
+
35
+ # For more information and examples about making a new gem, checkout our
36
+ # guide at: https://bundler.io/guides/creating_gem.html
37
+ end
@@ -0,0 +1,41 @@
1
+ module ChronologicalEnum
2
+ module Enum
3
+ def enum(name = nil, values = nil, **options)
4
+ chronological = options.delete(:_chronological)
5
+ super(name, values, **options)
6
+
7
+ return unless chronological
8
+
9
+ enum_name = name || options.keys.first
10
+ check_enum_values!(enum_name)
11
+ add_enum_chronological_scopes(enum_name: enum_name, prefix: options[:_prefix], suffix: options[:_suffix])
12
+ end
13
+
14
+ private
15
+
16
+ def add_enum_chronological_scopes(enum_name:, prefix: nil, suffix: nil)
17
+ prefix = if prefix
18
+ prefix == true ? "#{enum_name}_" : "#{prefix}_"
19
+ end
20
+
21
+ suffix = if suffix
22
+ suffix == true ? "_#{enum_name}" : "_#{suffix}"
23
+ end
24
+
25
+ send(enum_name.to_s.pluralize).each do |key, value|
26
+ method_name = "#{prefix}#{key}#{suffix}"
27
+
28
+ scope "after_#{method_name}", -> { where("#{enum_name} > ?", value) }
29
+ scope "before_#{method_name}", -> { where("#{enum_name} < ?", value) }
30
+ scope "after_or_#{method_name}", -> { where("#{enum_name} >= ?", value) }
31
+ scope "before_or_#{method_name}", -> { where("#{enum_name} <= ?", value) }
32
+ end
33
+ end
34
+
35
+ def check_enum_values!(enum_name)
36
+ return if send(enum_name.to_s.pluralize).values.all? { |value| value.is_a? Integer }
37
+
38
+ raise ArgumentError, "Values for #{enum_name} must be integer to be chronological"
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ChronologicalEnum
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'chronological_enum/version'
4
+ require_relative 'chronological_enum/enum'
5
+
6
+ module ChronologicalEnum
7
+ ActiveRecord::Enum.prepend(ChronologicalEnum::Enum)
8
+ end
@@ -0,0 +1,4 @@
1
+ module ChronologicalEnum
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chronological_enum
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Nicolas Meyer
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-06-18 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: '5.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '5.2'
27
+ description: Add scopes to enum in rails with after and before queries for enums that
28
+ have chronologicality
29
+ email:
30
+ - myr.nicolas@gmail.com
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - ".DS_Store"
36
+ - CHANGELOG.md
37
+ - CODE_OF_CONDUCT.md
38
+ - Gemfile
39
+ - Gemfile.lock
40
+ - LICENSE.txt
41
+ - README.md
42
+ - Rakefile
43
+ - bin/console
44
+ - bin/setup
45
+ - chronological_enum.gemspec
46
+ - lib/chronological_enum.rb
47
+ - lib/chronological_enum/enum.rb
48
+ - lib/chronological_enum/version.rb
49
+ - sig/chronological_enum.rbs
50
+ homepage: https://github.com/nicmey/chronological_enum
51
+ licenses:
52
+ - MIT
53
+ metadata:
54
+ homepage_uri: https://github.com/nicmey/chronological_enum
55
+ source_code_uri: https://github.com/nicmey/chronological_enum
56
+ changelog_uri: https://github.com/nicmey/chronological_enum/blob/main/CHANGELOG.md
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 2.6.0
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubygems_version: 3.2.33
73
+ signing_key:
74
+ specification_version: 4
75
+ summary: Chronological enum
76
+ test_files: []