activerecord-pg-format-db-structure 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: fdde773cae9c0a23f2fe42d4a1016f3498d37a616dece4e3477fc8e839869243
4
+ data.tar.gz: 9d55b019c0938e3c4c6ba1f008adb542b9a156c1ab73bd50b4157a65c6bbf128
5
+ SHA512:
6
+ metadata.gz: 6ef698a4873b63ba33863576481eaa858d8363c3acbc37011b0f3c023f120a5783e572995ad3a27a1c57faaef35ba86d6eefd57207313cad0eefb1b21f33253c
7
+ data.tar.gz: 142c1205e34fc069cc4a26f0957f9ca76ba142e6012914e7af06d0f47ef84700648c25339757da936b74cfe898e8f4d3b577ecff85bbcfa35cf57f39685fb2fb
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,280 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
5
+ AllCops:
6
+ NewCops: enable
7
+ TargetRubyVersion: 3.1
8
+
9
+ Style/StringLiterals:
10
+ EnforcedStyle: double_quotes
11
+
12
+ Style/StringLiteralsInInterpolation:
13
+ EnforcedStyle: double_quotes
14
+
15
+ Naming/FileName:
16
+ Enabled: false
17
+
18
+ Metrics/BlockLength:
19
+ Enabled: false
20
+
21
+ Metrics/MethodLength:
22
+ Enabled: false
23
+
24
+ Metrics/AbcSize:
25
+ Enabled: false
26
+
27
+ RSpec/SpecFilePathFormat:
28
+ Enabled: false
29
+
30
+ RSpec/ExampleLength:
31
+ Enabled: false
32
+
33
+ Gemspec/AddRuntimeDependency: # new in 1.65
34
+ Enabled: true
35
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
36
+ Enabled: true
37
+ Gemspec/DevelopmentDependencies: # new in 1.44
38
+ Enabled: true
39
+ Gemspec/RequireMFA: # new in 1.23
40
+ Enabled: true
41
+ Layout/LineContinuationLeadingSpace: # new in 1.31
42
+ Enabled: true
43
+ Layout/LineContinuationSpacing: # new in 1.31
44
+ Enabled: true
45
+ Layout/LineEndStringConcatenationIndentation: # new in 1.18
46
+ Enabled: true
47
+ Layout/SpaceBeforeBrackets: # new in 1.7
48
+ Enabled: true
49
+ Lint/AmbiguousAssignment: # new in 1.7
50
+ Enabled: true
51
+ Lint/AmbiguousOperatorPrecedence: # new in 1.21
52
+ Enabled: true
53
+ Lint/AmbiguousRange: # new in 1.19
54
+ Enabled: true
55
+ Lint/ArrayLiteralInRegexp: # new in 1.71
56
+ Enabled: true
57
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
58
+ Enabled: true
59
+ Lint/ConstantReassignment: # new in 1.70
60
+ Enabled: true
61
+ Lint/DeprecatedConstants: # new in 1.8
62
+ Enabled: true
63
+ Lint/DuplicateBranch: # new in 1.3
64
+ Enabled: false
65
+ Lint/DuplicateMagicComment: # new in 1.37
66
+ Enabled: true
67
+ Lint/DuplicateMatchPattern: # new in 1.50
68
+ Enabled: true
69
+ Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
70
+ Enabled: true
71
+ Lint/DuplicateSetElement: # new in 1.67
72
+ Enabled: true
73
+ Lint/EmptyBlock: # new in 1.1
74
+ Enabled: true
75
+ Lint/EmptyClass: # new in 1.3
76
+ Enabled: true
77
+ Lint/EmptyInPattern: # new in 1.16
78
+ Enabled: true
79
+ Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
80
+ Enabled: true
81
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
82
+ Enabled: true
83
+ Lint/ItWithoutArgumentsInBlock: # new in 1.59
84
+ Enabled: true
85
+ Lint/LambdaWithoutLiteralBlock: # new in 1.8
86
+ Enabled: true
87
+ Lint/LiteralAssignmentInCondition: # new in 1.58
88
+ Enabled: true
89
+ Lint/MixedCaseRange: # new in 1.53
90
+ Enabled: true
91
+ Lint/NoReturnInBeginEndBlocks: # new in 1.2
92
+ Enabled: true
93
+ Lint/NonAtomicFileOperation: # new in 1.31
94
+ Enabled: true
95
+ Lint/NumberedParameterAssignment: # new in 1.9
96
+ Enabled: true
97
+ Lint/NumericOperationWithConstantResult: # new in 1.69
98
+ Enabled: true
99
+ Lint/OrAssignmentToConstant: # new in 1.9
100
+ Enabled: true
101
+ Lint/RedundantDirGlobSort: # new in 1.8
102
+ Enabled: true
103
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
104
+ Enabled: true
105
+ Lint/RefinementImportMethods: # new in 1.27
106
+ Enabled: true
107
+ Lint/RequireRangeParentheses: # new in 1.32
108
+ Enabled: true
109
+ Lint/RequireRelativeSelfPath: # new in 1.22
110
+ Enabled: true
111
+ Lint/SharedMutableDefault: # new in 1.70
112
+ Enabled: true
113
+ Lint/SymbolConversion: # new in 1.9
114
+ Enabled: true
115
+ Lint/ToEnumArguments: # new in 1.1
116
+ Enabled: true
117
+ Lint/TripleQuotes: # new in 1.9
118
+ Enabled: true
119
+ Lint/UnescapedBracketInRegexp: # new in 1.68
120
+ Enabled: true
121
+ Lint/UnexpectedBlockArity: # new in 1.5
122
+ Enabled: true
123
+ Lint/UnmodifiedReduceAccumulator: # new in 1.1
124
+ Enabled: true
125
+ Lint/UselessDefined: # new in 1.69
126
+ Enabled: true
127
+ Lint/UselessNumericOperation: # new in 1.66
128
+ Enabled: true
129
+ Lint/UselessRescue: # new in 1.43
130
+ Enabled: true
131
+ Lint/UselessRuby2Keywords: # new in 1.23
132
+ Enabled: true
133
+ Metrics/CollectionLiteralLength: # new in 1.47
134
+ Enabled: true
135
+ Naming/BlockForwarding: # new in 1.24
136
+ Enabled: true
137
+ Security/CompoundHash: # new in 1.28
138
+ Enabled: true
139
+ Security/IoMethods: # new in 1.22
140
+ Enabled: true
141
+ Style/AmbiguousEndlessMethodDefinition: # new in 1.68
142
+ Enabled: true
143
+ Style/ArgumentsForwarding: # new in 1.1
144
+ Enabled: true
145
+ Style/ArrayIntersect: # new in 1.40
146
+ Enabled: true
147
+ Style/BitwisePredicate: # new in 1.68
148
+ Enabled: true
149
+ Style/CollectionCompact: # new in 1.2
150
+ Enabled: true
151
+ Style/CombinableDefined: # new in 1.68
152
+ Enabled: true
153
+ Style/ComparableClamp: # new in 1.44
154
+ Enabled: true
155
+ Style/ConcatArrayLiterals: # new in 1.41
156
+ Enabled: true
157
+ Style/DataInheritance: # new in 1.49
158
+ Enabled: true
159
+ Style/DigChain: # new in 1.69
160
+ Enabled: true
161
+ Style/DirEmpty: # new in 1.48
162
+ Enabled: true
163
+ Style/DocumentDynamicEvalDefinition: # new in 1.1
164
+ Enabled: true
165
+ Style/EmptyHeredoc: # new in 1.32
166
+ Enabled: true
167
+ Style/EndlessMethod: # new in 1.8
168
+ Enabled: true
169
+ Style/EnvHome: # new in 1.29
170
+ Enabled: true
171
+ Style/ExactRegexpMatch: # new in 1.51
172
+ Enabled: true
173
+ Style/FetchEnvVar: # new in 1.28
174
+ Enabled: true
175
+ Style/FileEmpty: # new in 1.48
176
+ Enabled: true
177
+ Style/FileNull: # new in 1.69
178
+ Enabled:
179
+ Style/FileRead: # new in 1.24
180
+ Enabled: true
181
+ Style/FileTouch: # new in 1.69
182
+ Enabled: true
183
+ Style/FileWrite: # new in 1.24
184
+ Enabled: true
185
+ Style/HashConversion: # new in 1.10
186
+ Enabled: true
187
+ Style/HashExcept: # new in 1.7
188
+ Enabled: true
189
+ Style/HashSlice: # new in 1.71
190
+ Enabled: true
191
+ Style/IfWithBooleanLiteralBranches: # new in 1.9
192
+ Enabled: true
193
+ Style/InPatternThen: # new in 1.16
194
+ Enabled: true
195
+ Style/ItAssignment: # new in 1.70
196
+ Enabled: true
197
+ Style/KeywordArgumentsMerging: # new in 1.68
198
+ Enabled: true
199
+ Style/MagicCommentFormat: # new in 1.35
200
+ Enabled: true
201
+ Style/MapCompactWithConditionalBlock: # new in 1.30
202
+ Enabled: true
203
+ Style/MapIntoArray: # new in 1.63
204
+ Enabled: true
205
+ Style/MapToHash: # new in 1.24
206
+ Enabled: true
207
+ Style/MapToSet: # new in 1.42
208
+ Enabled: true
209
+ Style/MinMaxComparison: # new in 1.42
210
+ Enabled: true
211
+ Style/MultilineInPatternThen: # new in 1.16
212
+ Enabled: true
213
+ Style/NegatedIfElseCondition: # new in 1.2
214
+ Enabled: true
215
+ Style/NestedFileDirname: # new in 1.26
216
+ Enabled: true
217
+ Style/NilLambda: # new in 1.3
218
+ Enabled: true
219
+ Style/NumberedParameters: # new in 1.22
220
+ Enabled: true
221
+ Style/NumberedParametersLimit: # new in 1.22
222
+ Enabled: true
223
+ Style/ObjectThen: # new in 1.28
224
+ Enabled: true
225
+ Style/OpenStructUse: # new in 1.23
226
+ Enabled: true
227
+ Style/OperatorMethodCall: # new in 1.37
228
+ Enabled: true
229
+ Style/QuotedSymbols: # new in 1.16
230
+ Enabled: true
231
+ Style/RedundantArgument: # new in 1.4
232
+ Enabled: true
233
+ Style/RedundantArrayConstructor: # new in 1.52
234
+ Enabled: true
235
+ Style/RedundantConstantBase: # new in 1.40
236
+ Enabled: true
237
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
238
+ Enabled: true
239
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
240
+ Enabled: true
241
+ Style/RedundantEach: # new in 1.38
242
+ Enabled: true
243
+ Style/RedundantFilterChain: # new in 1.52
244
+ Enabled: true
245
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
246
+ Enabled: true
247
+ Style/RedundantInitialize: # new in 1.27
248
+ Enabled: true
249
+ Style/RedundantInterpolationUnfreeze: # new in 1.66
250
+ Enabled: true
251
+ Style/RedundantLineContinuation: # new in 1.49
252
+ Enabled: true
253
+ Style/RedundantRegexpArgument: # new in 1.53
254
+ Enabled: true
255
+ Style/RedundantRegexpConstructor: # new in 1.52
256
+ Enabled: true
257
+ Style/RedundantSelfAssignmentBranch: # new in 1.19
258
+ Enabled: true
259
+ Style/RedundantStringEscape: # new in 1.37
260
+ Enabled: true
261
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
262
+ Enabled: true
263
+ Style/SafeNavigationChainLength: # new in 1.68
264
+ Enabled: true
265
+ Style/SelectByRegexp: # new in 1.22
266
+ Enabled: true
267
+ Style/SendWithLiteralMethodName: # new in 1.64
268
+ Enabled: true
269
+ Style/SingleLineDoEndBlock: # new in 1.57
270
+ Enabled: true
271
+ Style/StringChars: # new in 1.12
272
+ Enabled: true
273
+ Style/SuperArguments: # new in 1.64
274
+ Enabled: true
275
+ Style/SuperWithArgsParentheses: # new in 1.58
276
+ Enabled: true
277
+ Style/SwapValues: # new in 1.1
278
+ Enabled: true
279
+ Style/YAMLFileRead: # new in 1.53
280
+ Enabled: true
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.4.1
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2025-01-24
4
+
5
+ - Initial release
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [INSERT CONTACT METHOD].
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Reify AB
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.