generated 0.1.1

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: c5bcefdffc3e8e34c47691fb251cf8524c23d6367f5c48c7ae08daa9baef54ad
4
+ data.tar.gz: 54b5075c50d4d550c76f00c98d3269e501b9f91dd19a9da9391091880052d600
5
+ SHA512:
6
+ metadata.gz: 6367db3dac9b6764a688bebffc195fd9206bf089a3b0a1bb81e9ec59b8cd03e4d10bcd862b8cdef286ce1e86ac2f7142ba39119ceb52eae62b4db031d77b090e
7
+ data.tar.gz: d0977b6466ce7495c9fd21763052a71fb471bad73f5ecb371328b4fbbebb95976699f980b3d8387afbde39adc73cd24ec44ae23482275a775241b9e72de6e4e4
data/.idea/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
data/.idea/gnrt.iml ADDED
@@ -0,0 +1,92 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$">
8
+ <sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
9
+ <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
10
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
11
+ </content>
12
+ <orderEntry type="jdk" jdkName="rbenv: 3.2.2" jdkType="RUBY_SDK" />
13
+ <orderEntry type="sourceFolder" forTests="false" />
14
+ <orderEntry type="library" scope="PROVIDED" name="actioncable (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="actionmailbox (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="actionmailer (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="actionpack (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="actiontext (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="actionview (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="activejob (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="activemodel (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="activerecord (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="activestorage (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, rbenv: 3.2.2) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="bigdecimal (v3.1.4, rbenv: 3.2.2) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.4, rbenv: 3.2.2) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.4.20, rbenv: 3.2.2) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.2.2, rbenv: 3.2.2) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="connection_pool (v2.4.1, rbenv: 3.2.2) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="crass (v1.0.6, rbenv: 3.2.2) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="drb (v2.1.1, rbenv: 3.2.2) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="erubi (v1.12.0, rbenv: 3.2.2) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="globalid (v1.2.1, rbenv: 3.2.2) [gem]" level="application" />
35
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v1.14.1, rbenv: 3.2.2) [gem]" level="application" />
36
+ <orderEntry type="library" scope="PROVIDED" name="io-console (v0.6.0, rbenv: 3.2.2) [gem]" level="application" />
37
+ <orderEntry type="library" scope="PROVIDED" name="irb (v1.8.1, rbenv: 3.2.2) [gem]" level="application" />
38
+ <orderEntry type="library" scope="PROVIDED" name="json (v2.6.3, rbenv: 3.2.2) [gem]" level="application" />
39
+ <orderEntry type="library" scope="PROVIDED" name="language_server-protocol (v3.17.0.3, rbenv: 3.2.2) [gem]" level="application" />
40
+ <orderEntry type="library" scope="PROVIDED" name="lint_roller (v1.1.0, rbenv: 3.2.2) [gem]" level="application" />
41
+ <orderEntry type="library" scope="PROVIDED" name="loofah (v2.21.3, rbenv: 3.2.2) [gem]" level="application" />
42
+ <orderEntry type="library" scope="PROVIDED" name="mail (v2.8.1, rbenv: 3.2.2) [gem]" level="application" />
43
+ <orderEntry type="library" scope="PROVIDED" name="marcel (v1.0.2, rbenv: 3.2.2) [gem]" level="application" />
44
+ <orderEntry type="library" scope="PROVIDED" name="mini_mime (v1.1.5, rbenv: 3.2.2) [gem]" level="application" />
45
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.20.0, rbenv: 3.2.2) [gem]" level="application" />
46
+ <orderEntry type="library" scope="PROVIDED" name="minitest-heat (v1.2.0, rbenv: 3.2.2) [gem]" level="application" />
47
+ <orderEntry type="library" scope="PROVIDED" name="net-imap (v0.4.0, rbenv: 3.2.2) [gem]" level="application" />
48
+ <orderEntry type="library" scope="PROVIDED" name="net-pop (v0.1.2, rbenv: 3.2.2) [gem]" level="application" />
49
+ <orderEntry type="library" scope="PROVIDED" name="net-smtp (v0.4.0, rbenv: 3.2.2) [gem]" level="application" />
50
+ <orderEntry type="library" scope="PROVIDED" name="nio4r (v2.5.9, rbenv: 3.2.2) [gem]" level="application" />
51
+ <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.15.4, rbenv: 3.2.2) [gem]" level="application" />
52
+ <orderEntry type="library" scope="PROVIDED" name="parallel (v1.23.0, rbenv: 3.2.2) [gem]" level="application" />
53
+ <orderEntry type="library" scope="PROVIDED" name="parser (v3.2.2.4, rbenv: 3.2.2) [gem]" level="application" />
54
+ <orderEntry type="library" scope="PROVIDED" name="psych (v5.1.0, rbenv: 3.2.2) [gem]" level="application" />
55
+ <orderEntry type="library" scope="PROVIDED" name="racc (v1.7.1, rbenv: 3.2.2) [gem]" level="application" />
56
+ <orderEntry type="library" scope="PROVIDED" name="rack (v3.0.8, rbenv: 3.2.2) [gem]" level="application" />
57
+ <orderEntry type="library" scope="PROVIDED" name="rack-session (v2.0.0, rbenv: 3.2.2) [gem]" level="application" />
58
+ <orderEntry type="library" scope="PROVIDED" name="rack-test (v2.1.0, rbenv: 3.2.2) [gem]" level="application" />
59
+ <orderEntry type="library" scope="PROVIDED" name="rackup (v2.1.0, rbenv: 3.2.2) [gem]" level="application" />
60
+ <orderEntry type="library" scope="PROVIDED" name="rails (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
61
+ <orderEntry type="library" scope="PROVIDED" name="rails-dom-testing (v2.2.0, rbenv: 3.2.2) [gem]" level="application" />
62
+ <orderEntry type="library" scope="PROVIDED" name="rails-html-sanitizer (v1.6.0, rbenv: 3.2.2) [gem]" level="application" />
63
+ <orderEntry type="library" scope="PROVIDED" name="railties (v7.1.0, rbenv: 3.2.2) [gem]" level="application" />
64
+ <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, rbenv: 3.2.2) [gem]" level="application" />
65
+ <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, rbenv: 3.2.2) [gem]" level="application" />
66
+ <orderEntry type="library" scope="PROVIDED" name="rdoc (v6.5.0, rbenv: 3.2.2) [gem]" level="application" />
67
+ <orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.8.1, rbenv: 3.2.2) [gem]" level="application" />
68
+ <orderEntry type="library" scope="PROVIDED" name="reline (v0.3.9, rbenv: 3.2.2) [gem]" level="application" />
69
+ <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.6, rbenv: 3.2.2) [gem]" level="application" />
70
+ <orderEntry type="library" scope="PROVIDED" name="rubocop (v1.56.4, rbenv: 3.2.2) [gem]" level="application" />
71
+ <orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.29.0, rbenv: 3.2.2) [gem]" level="application" />
72
+ <orderEntry type="library" scope="PROVIDED" name="rubocop-performance (v1.19.1, rbenv: 3.2.2) [gem]" level="application" />
73
+ <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.13.0, rbenv: 3.2.2) [gem]" level="application" />
74
+ <orderEntry type="library" scope="PROVIDED" name="standard (v1.31.1, rbenv: 3.2.2) [gem]" level="application" />
75
+ <orderEntry type="library" scope="PROVIDED" name="standard-custom (v1.0.2, rbenv: 3.2.2) [gem]" level="application" />
76
+ <orderEntry type="library" scope="PROVIDED" name="standard-performance (v1.2.0, rbenv: 3.2.2) [gem]" level="application" />
77
+ <orderEntry type="library" scope="PROVIDED" name="stringio (v3.0.8, rbenv: 3.2.2) [gem]" level="application" />
78
+ <orderEntry type="library" scope="PROVIDED" name="thor (v1.2.2, rbenv: 3.2.2) [gem]" level="application" />
79
+ <orderEntry type="library" scope="PROVIDED" name="timeout (v0.4.0, rbenv: 3.2.2) [gem]" level="application" />
80
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v2.0.6, rbenv: 3.2.2) [gem]" level="application" />
81
+ <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.5.0, rbenv: 3.2.2) [gem]" level="application" />
82
+ <orderEntry type="library" scope="PROVIDED" name="webrick (v1.8.1, rbenv: 3.2.2) [gem]" level="application" />
83
+ <orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.7.6, rbenv: 3.2.2) [gem]" level="application" />
84
+ <orderEntry type="library" scope="PROVIDED" name="websocket-extensions (v0.1.5, rbenv: 3.2.2) [gem]" level="application" />
85
+ <orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.6.12, rbenv: 3.2.2) [gem]" level="application" />
86
+ </component>
87
+ <component name="RakeTasksCache">
88
+ <option name="myRootTask">
89
+ <RakeTaskImpl id="rake" />
90
+ </option>
91
+ </component>
92
+ </module>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="RbsMissingTypeSignature" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
5
+ </profile>
6
+ </component>
data/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 3.1.2" project-jdk-type="RUBY_SDK" />
4
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/gnrt.iml" filepath="$PROJECT_DIR$/.idea/gnrt.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.2.2
data/.standard.yml ADDED
@@ -0,0 +1,3 @@
1
+ # For available configuration options, see:
2
+ # https://github.com/testdouble/standard
3
+ ruby_version: 3.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2023-10-08
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 email@garrettdimon.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,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in generated.gemspec
6
+ gemspec
7
+
8
+ group :development do
9
+ gem "minitest"
10
+ gem "minitest-heat"
11
+ gem "rake"
12
+ gem "standard"
13
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,237 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ generated (0.1.0)
5
+ rails
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (7.1.0)
11
+ actionpack (= 7.1.0)
12
+ activesupport (= 7.1.0)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ zeitwerk (~> 2.6)
16
+ actionmailbox (7.1.0)
17
+ actionpack (= 7.1.0)
18
+ activejob (= 7.1.0)
19
+ activerecord (= 7.1.0)
20
+ activestorage (= 7.1.0)
21
+ activesupport (= 7.1.0)
22
+ mail (>= 2.7.1)
23
+ net-imap
24
+ net-pop
25
+ net-smtp
26
+ actionmailer (7.1.0)
27
+ actionpack (= 7.1.0)
28
+ actionview (= 7.1.0)
29
+ activejob (= 7.1.0)
30
+ activesupport (= 7.1.0)
31
+ mail (~> 2.5, >= 2.5.4)
32
+ net-imap
33
+ net-pop
34
+ net-smtp
35
+ rails-dom-testing (~> 2.2)
36
+ actionpack (7.1.0)
37
+ actionview (= 7.1.0)
38
+ activesupport (= 7.1.0)
39
+ nokogiri (>= 1.8.5)
40
+ rack (>= 2.2.4)
41
+ rack-session (>= 1.0.1)
42
+ rack-test (>= 0.6.3)
43
+ rails-dom-testing (~> 2.2)
44
+ rails-html-sanitizer (~> 1.6)
45
+ actiontext (7.1.0)
46
+ actionpack (= 7.1.0)
47
+ activerecord (= 7.1.0)
48
+ activestorage (= 7.1.0)
49
+ activesupport (= 7.1.0)
50
+ globalid (>= 0.6.0)
51
+ nokogiri (>= 1.8.5)
52
+ actionview (7.1.0)
53
+ activesupport (= 7.1.0)
54
+ builder (~> 3.1)
55
+ erubi (~> 1.11)
56
+ rails-dom-testing (~> 2.2)
57
+ rails-html-sanitizer (~> 1.6)
58
+ activejob (7.1.0)
59
+ activesupport (= 7.1.0)
60
+ globalid (>= 0.3.6)
61
+ activemodel (7.1.0)
62
+ activesupport (= 7.1.0)
63
+ activerecord (7.1.0)
64
+ activemodel (= 7.1.0)
65
+ activesupport (= 7.1.0)
66
+ timeout (>= 0.4.0)
67
+ activestorage (7.1.0)
68
+ actionpack (= 7.1.0)
69
+ activejob (= 7.1.0)
70
+ activerecord (= 7.1.0)
71
+ activesupport (= 7.1.0)
72
+ marcel (~> 1.0)
73
+ activesupport (7.1.0)
74
+ base64
75
+ bigdecimal
76
+ concurrent-ruby (~> 1.0, >= 1.0.2)
77
+ connection_pool (>= 2.2.5)
78
+ drb
79
+ i18n (>= 1.6, < 2)
80
+ minitest (>= 5.1)
81
+ mutex_m
82
+ tzinfo (~> 2.0)
83
+ ast (2.4.2)
84
+ base64 (0.1.1)
85
+ bigdecimal (3.1.4)
86
+ builder (3.2.4)
87
+ concurrent-ruby (1.2.2)
88
+ connection_pool (2.4.1)
89
+ crass (1.0.6)
90
+ date (3.3.3)
91
+ drb (2.1.1)
92
+ ruby2_keywords
93
+ erubi (1.12.0)
94
+ globalid (1.2.1)
95
+ activesupport (>= 6.1)
96
+ i18n (1.14.1)
97
+ concurrent-ruby (~> 1.0)
98
+ io-console (0.6.0)
99
+ irb (1.8.1)
100
+ rdoc
101
+ reline (>= 0.3.8)
102
+ json (2.6.3)
103
+ language_server-protocol (3.17.0.3)
104
+ lint_roller (1.1.0)
105
+ loofah (2.21.3)
106
+ crass (~> 1.0.2)
107
+ nokogiri (>= 1.12.0)
108
+ mail (2.8.1)
109
+ mini_mime (>= 0.1.1)
110
+ net-imap
111
+ net-pop
112
+ net-smtp
113
+ marcel (1.0.2)
114
+ mini_mime (1.1.5)
115
+ minitest (5.20.0)
116
+ minitest-heat (1.2.0)
117
+ minitest
118
+ mutex_m (0.1.2)
119
+ net-imap (0.4.0)
120
+ date
121
+ net-protocol
122
+ net-pop (0.1.2)
123
+ net-protocol
124
+ net-protocol (0.2.1)
125
+ timeout
126
+ net-smtp (0.4.0)
127
+ net-protocol
128
+ nio4r (2.5.9)
129
+ nokogiri (1.15.4-arm64-darwin)
130
+ racc (~> 1.4)
131
+ parallel (1.23.0)
132
+ parser (3.2.2.4)
133
+ ast (~> 2.4.1)
134
+ racc
135
+ psych (5.1.0)
136
+ stringio
137
+ racc (1.7.1)
138
+ rack (3.0.8)
139
+ rack-session (2.0.0)
140
+ rack (>= 3.0.0)
141
+ rack-test (2.1.0)
142
+ rack (>= 1.3)
143
+ rackup (2.1.0)
144
+ rack (>= 3)
145
+ webrick (~> 1.8)
146
+ rails (7.1.0)
147
+ actioncable (= 7.1.0)
148
+ actionmailbox (= 7.1.0)
149
+ actionmailer (= 7.1.0)
150
+ actionpack (= 7.1.0)
151
+ actiontext (= 7.1.0)
152
+ actionview (= 7.1.0)
153
+ activejob (= 7.1.0)
154
+ activemodel (= 7.1.0)
155
+ activerecord (= 7.1.0)
156
+ activestorage (= 7.1.0)
157
+ activesupport (= 7.1.0)
158
+ bundler (>= 1.15.0)
159
+ railties (= 7.1.0)
160
+ rails-dom-testing (2.2.0)
161
+ activesupport (>= 5.0.0)
162
+ minitest
163
+ nokogiri (>= 1.6)
164
+ rails-html-sanitizer (1.6.0)
165
+ loofah (~> 2.21)
166
+ nokogiri (~> 1.14)
167
+ railties (7.1.0)
168
+ actionpack (= 7.1.0)
169
+ activesupport (= 7.1.0)
170
+ irb
171
+ rackup (>= 1.0.0)
172
+ rake (>= 12.2)
173
+ thor (~> 1.0, >= 1.2.2)
174
+ zeitwerk (~> 2.6)
175
+ rainbow (3.1.1)
176
+ rake (13.0.6)
177
+ rdoc (6.5.0)
178
+ psych (>= 4.0.0)
179
+ regexp_parser (2.8.1)
180
+ reline (0.3.9)
181
+ io-console (~> 0.5)
182
+ rexml (3.2.6)
183
+ rubocop (1.56.4)
184
+ base64 (~> 0.1.1)
185
+ json (~> 2.3)
186
+ language_server-protocol (>= 3.17.0)
187
+ parallel (~> 1.10)
188
+ parser (>= 3.2.2.3)
189
+ rainbow (>= 2.2.2, < 4.0)
190
+ regexp_parser (>= 1.8, < 3.0)
191
+ rexml (>= 3.2.5, < 4.0)
192
+ rubocop-ast (>= 1.28.1, < 2.0)
193
+ ruby-progressbar (~> 1.7)
194
+ unicode-display_width (>= 2.4.0, < 3.0)
195
+ rubocop-ast (1.29.0)
196
+ parser (>= 3.2.1.0)
197
+ rubocop-performance (1.19.1)
198
+ rubocop (>= 1.7.0, < 2.0)
199
+ rubocop-ast (>= 0.4.0)
200
+ ruby-progressbar (1.13.0)
201
+ ruby2_keywords (0.0.5)
202
+ standard (1.31.1)
203
+ language_server-protocol (~> 3.17.0.2)
204
+ lint_roller (~> 1.0)
205
+ rubocop (~> 1.56.2)
206
+ standard-custom (~> 1.0.0)
207
+ standard-performance (~> 1.2)
208
+ standard-custom (1.0.2)
209
+ lint_roller (~> 1.0)
210
+ rubocop (~> 1.50)
211
+ standard-performance (1.2.0)
212
+ lint_roller (~> 1.1)
213
+ rubocop-performance (~> 1.19.0)
214
+ stringio (3.0.8)
215
+ thor (1.2.2)
216
+ timeout (0.4.0)
217
+ tzinfo (2.0.6)
218
+ concurrent-ruby (~> 1.0)
219
+ unicode-display_width (2.5.0)
220
+ webrick (1.8.1)
221
+ websocket-driver (0.7.6)
222
+ websocket-extensions (>= 0.1.0)
223
+ websocket-extensions (0.1.5)
224
+ zeitwerk (2.6.12)
225
+
226
+ PLATFORMS
227
+ arm64-darwin-22
228
+
229
+ DEPENDENCIES
230
+ generated!
231
+ minitest
232
+ minitest-heat
233
+ rake
234
+ standard
235
+
236
+ BUNDLED WITH
237
+ 2.4.20
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Garrett Dimon
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,35 @@
1
+ # Generated
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/generated`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ $ bundle add generated
10
+
11
+ If bundler is not being used to manage dependencies, install the gem by executing:
12
+
13
+ $ gem install generated
14
+
15
+ ## Usage
16
+
17
+ TODO: Write usage instructions here
18
+
19
+ ## Development
20
+
21
+ 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.
22
+
23
+ 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).
24
+
25
+ ## Contributing
26
+
27
+ Bug reports and pull requests are welcome on GitHub at https://github.com/garrettdimon/generated. 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/garrettdimon/generated/blob/main/CODE_OF_CONDUCT.md).
28
+
29
+ ## License
30
+
31
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
32
+
33
+ ## Code of Conduct
34
+
35
+ Everyone interacting in the Generated project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/garrettdimon/generated/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,14 @@
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 "standard/rake"
13
+
14
+ task default: %i[test standard]
Binary file
data/generated.gemspec ADDED
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/generated/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "generated"
7
+ spec.version = Generated::VERSION
8
+ spec.authors = ["Garrett Dimon"]
9
+ spec.email = ["email@garrettdimon.com"]
10
+
11
+ spec.summary = "A more helpful generator generator for Rails."
12
+ spec.description = "Supports specifying arguments, options, steps, and templates from the command line."
13
+ spec.homepage = "https://garrettdimon.com/projects"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/garrettdimon/generated"
21
+ spec.metadata["changelog_uri"] = "https://github.com/garrettdimon/generated/blob/main/CHANGELOG.md"
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(__dir__) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
28
+ end
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ # Uncomment to register a new dependency of your gem
35
+ spec.add_runtime_dependency "rails", "~> 5"
36
+
37
+ # For more information and examples about making a new gem, check out our
38
+ # guide at: https://bundler.io/guides/creating_gem.html
39
+ end
@@ -0,0 +1,113 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Generated
4
+ class Argument
5
+ class UnrecognizedType < ArgumentError; end
6
+
7
+ SEPARATOR = ":"
8
+
9
+ attr_accessor :raw_name,
10
+ :raw_type,
11
+ :raw_required,
12
+ :raw_default,
13
+ :raw_desc,
14
+ :raw_banner
15
+
16
+ def initialize(value)
17
+ @raw_name, @raw_type = value.split(SEPARATOR)
18
+
19
+ @raw_required = true # Arguments are Required by Default
20
+ end
21
+
22
+ def parameter_type
23
+ self.class.name.demodulize.underscore.to_sym
24
+ end
25
+
26
+ def argument?
27
+ parameter_type == :argument
28
+ end
29
+
30
+ def option?
31
+ parameter_type == :option
32
+ end
33
+
34
+ def name
35
+ raw_name
36
+ end
37
+
38
+ def desc
39
+ "<TODO: How will the '#{raw_name}' #{parameter_type} be used by the generator?>"
40
+ end
41
+
42
+ def banner
43
+ required? ? banner_content : "[#{banner_content}]"
44
+ end
45
+
46
+ def type
47
+ case raw_type
48
+ when "integer", "float", "numeric"
49
+ :numeric
50
+ when "string", "text"
51
+ :string
52
+ when "array"
53
+ :array
54
+ when "hash"
55
+ :hash
56
+ when "boolean"
57
+ :boolean
58
+ else
59
+ raise UnrecognizedType, raw_type
60
+ end
61
+ end
62
+
63
+ def banner_content
64
+ case type
65
+ when :string
66
+ name.upcase
67
+ when :numeric
68
+ default || "1"
69
+ when :array
70
+ "one two three"
71
+ when :hash
72
+ "key_one:value_one key_two:value_two"
73
+ when :boolean
74
+ nil
75
+ else
76
+ raw_banner
77
+ end
78
+ end
79
+
80
+ def default
81
+ # Required arguments/options don't get defaults
82
+ return nil if required?
83
+
84
+ case type
85
+ when :string
86
+ "<TODO>"
87
+ when :numeric
88
+ 0
89
+ when :array
90
+ []
91
+ when :hash
92
+ {}
93
+ when :boolean
94
+ false
95
+ else
96
+ raw_default
97
+ end
98
+ end
99
+
100
+ def required
101
+ case raw_required
102
+ when true, "true", 1
103
+ true
104
+ when false, "false", 0
105
+ false
106
+ end
107
+ end
108
+
109
+ def required? = required
110
+
111
+ def optional? = !required
112
+ end
113
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails/generators"
4
+
5
+ module Generated
6
+ class Generator < Rails::Generators::NamedBase
7
+ end
8
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Generated
4
+ class Option < Argument
5
+
6
+ attr_accessor :raw_group,
7
+ :raw_hide
8
+
9
+ def initialize(value)
10
+ super
11
+
12
+ @raw_required = false # Options are, well, optional by default
13
+ @raw_hide = false # Options must be explicitly hidden
14
+ @raw_group = nil # Leave in the un-labeled group by default
15
+ end
16
+
17
+ def hide
18
+ raw_hide
19
+ end
20
+
21
+ def group
22
+ raw_group
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Generated
4
+ class Template
5
+ def arguments
6
+ end
7
+
8
+ def class_options
9
+ end
10
+
11
+ def steps
12
+ end
13
+
14
+ def templates
15
+ end
16
+
17
+ private
18
+
19
+ def quotify(value)
20
+ return nil if value.blank?
21
+
22
+ value.is_a?(String) ? "\"#{value}\"" : value
23
+ end
24
+
25
+ def symbolify(value)
26
+ return nil if value.blank?
27
+
28
+ ":#{value}"
29
+ end
30
+
31
+ def boolify(value)
32
+ return nil if value.blank?
33
+
34
+ !!value
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Generated
4
+ VERSION = "0.1.1"
5
+ end
data/lib/generated.rb ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "generated/version"
4
+ require_relative "generated/argument"
5
+ require_relative "generated/option"
6
+ require_relative "generated/template"
7
+ require_relative "generated/generator"
8
+
9
+ module Generated
10
+ class Error < StandardError; end
11
+ # Your code goes here...
12
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: generated
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Garrett Dimon
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-10-09 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'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5'
27
+ description: Supports specifying arguments, options, steps, and templates from the
28
+ command line.
29
+ email:
30
+ - email@garrettdimon.com
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - ".idea/.gitignore"
36
+ - ".idea/gnrt.iml"
37
+ - ".idea/inspectionProfiles/Project_Default.xml"
38
+ - ".idea/misc.xml"
39
+ - ".idea/modules.xml"
40
+ - ".idea/vcs.xml"
41
+ - ".ruby-version"
42
+ - ".standard.yml"
43
+ - CHANGELOG.md
44
+ - CODE_OF_CONDUCT.md
45
+ - Gemfile
46
+ - Gemfile.lock
47
+ - LICENSE.txt
48
+ - README.md
49
+ - Rakefile
50
+ - generated-0.1.0.gem
51
+ - generated.gemspec
52
+ - lib/generated.rb
53
+ - lib/generated/argument.rb
54
+ - lib/generated/generator.rb
55
+ - lib/generated/option.rb
56
+ - lib/generated/template.rb
57
+ - lib/generated/version.rb
58
+ homepage: https://garrettdimon.com/projects
59
+ licenses:
60
+ - MIT
61
+ metadata:
62
+ homepage_uri: https://garrettdimon.com/projects
63
+ source_code_uri: https://github.com/garrettdimon/generated
64
+ changelog_uri: https://github.com/garrettdimon/generated/blob/main/CHANGELOG.md
65
+ post_install_message:
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 2.6.0
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubygems_version: 3.4.19
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: A more helpful generator generator for Rails.
84
+ test_files: []