arxutils_sqlite3 0.1.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +20 -0
  4. data/.rubocop_todo.yml +387 -0
  5. data/CHANGELOG.md +5 -0
  6. data/CODE_OF_CONDUCT.md +84 -0
  7. data/Gemfile +41 -0
  8. data/LICENSE +21 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +43 -0
  11. data/Rakefile +12 -0
  12. data/arxutils_sqlite3.gemspec +52 -0
  13. data/bin/arxutils-cli +134 -0
  14. data/bin/console +15 -0
  15. data/bin/makemigrate +55 -0
  16. data/bin/setup +8 -0
  17. data/bin/setupx.bat +7 -0
  18. data/bin/setupx.rb +4 -0
  19. data/config/.gitignore +3 -0
  20. data/lib/arxutils_sqlite3/arx.rb +41 -0
  21. data/lib/arxutils_sqlite3/dbutil/dbconnect.rb +95 -0
  22. data/lib/arxutils_sqlite3/dbutil/dbmgr.rb +28 -0
  23. data/lib/arxutils_sqlite3/dbutil.rb +22 -0
  24. data/lib/arxutils_sqlite3/hier.rb +218 -0
  25. data/lib/arxutils_sqlite3/migrate.rb +225 -0
  26. data/lib/arxutils_sqlite3/transactstate.rb +76 -0
  27. data/lib/arxutils_sqlite3/version.rb +4 -0
  28. data/lib/arxutils_sqlite3.rb +40 -0
  29. data/lib/template/config/mysql.tmpl +29 -0
  30. data/lib/template/config/sqlite3.tmpl +26 -0
  31. data/lib/template/relation/base.tmpl +14 -0
  32. data/lib/template/relation/current.tmpl +15 -0
  33. data/lib/template/relation/db_scheme/db_scheme.yml +48 -0
  34. data/lib/template/relation/db_scheme/dbsetup.rb +51 -0
  35. data/lib/template/relation/db_scheme/opts.rb +8 -0
  36. data/lib/template/relation/invalid.tmpl +12 -0
  37. data/lib/template/relation/noitem.tmpl +13 -0
  38. data/lib/template/relation/relation.tmpl +3 -0
  39. data/lib/template/relation/relation_count.tmpl +3 -0
  40. data/lib/template/relation/relation_current.tmpl +3 -0
  41. data/lib/template/relation/relation_invalid.tmpl +4 -0
  42. metadata +85 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 80bd6f38c8e6edbdc35892ccce309a017e856d0fadb5ed0ced56984437c06045
4
+ data.tar.gz: 670aa08c210fc8f78c46e3526fa2f264527fe018c71c56683215c5c43329ba37
5
+ SHA512:
6
+ metadata.gz: 206ec70ac61a2126005cee1efe4efd6eee37d1f9224b0ac3bccd49744c9f2278b902244ebf5cf692e29062a8cd1d40eba76ca6e3fa822fbe9fbc067ac2809219
7
+ data.tar.gz: b830d478658ff7e6b754afc98ba6d858d880637393dcce061e03f4d0435ca786ae9842f2efe46f557990da7afc003efc7ba61249e043abb48cd10b03411d4d18
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,20 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ require:
4
+ - rubocop-rake
5
+ - rubocop-rspec
6
+
7
+ AllCops:
8
+ TargetRubyVersion: 2.5
9
+ NewCops: enable
10
+
11
+ Style/StringLiterals:
12
+ Enabled: true
13
+ EnforcedStyle: double_quotes
14
+
15
+ Style/StringLiteralsInInterpolation:
16
+ Enabled: true
17
+ EnforcedStyle: double_quotes
18
+
19
+ Layout/LineLength:
20
+ Max: 120
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,387 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2022-09-08 00:51:12 UTC using RuboCop version 1.36.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 2
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
12
+ # SupportedStyles: with_first_element, with_fixed_indentation
13
+ Layout/ArrayAlignment:
14
+ Exclude:
15
+ - 'lib/arxutils_sqlite3/migrate.rb'
16
+
17
+ # Offense count: 1
18
+ # This cop supports safe autocorrection (--autocorrect).
19
+ Layout/BlockEndNewline:
20
+ Exclude:
21
+ - 'lib/arxutils_sqlite3/migrate.rb'
22
+
23
+ # Offense count: 7
24
+ # This cop supports safe autocorrection (--autocorrect).
25
+ # Configuration parameters: AllowForAlignment.
26
+ Layout/CommentIndentation:
27
+ Exclude:
28
+ - 'Gemfile'
29
+ - 'bin/arxutils-cli'
30
+ - 'lib/arxutils_sqlite3/migrate.rb'
31
+
32
+ # Offense count: 1
33
+ # This cop supports safe autocorrection (--autocorrect).
34
+ Layout/EmptyLineAfterMagicComment:
35
+ Exclude:
36
+ - 'lib/arxutils_sqlite3.rb'
37
+
38
+ # Offense count: 1
39
+ # This cop supports safe autocorrection (--autocorrect).
40
+ Layout/EmptyLines:
41
+ Exclude:
42
+ - 'bin/arxutils-cli'
43
+
44
+ # Offense count: 1
45
+ # This cop supports safe autocorrection (--autocorrect).
46
+ # Configuration parameters: EnforcedStyle.
47
+ # SupportedStyles: empty_lines, no_empty_lines
48
+ Layout/EmptyLinesAroundBlockBody:
49
+ Exclude:
50
+ - 'Gemfile'
51
+
52
+ # Offense count: 1
53
+ # This cop supports safe autocorrection (--autocorrect).
54
+ # Configuration parameters: EnforcedStyle.
55
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
56
+ Layout/EmptyLinesAroundClassBody:
57
+ Exclude:
58
+ - 'lib/arxutils_sqlite3/migrate.rb'
59
+
60
+ # Offense count: 1
61
+ # This cop supports safe autocorrection (--autocorrect).
62
+ # Configuration parameters: EnforcedStyle.
63
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
64
+ Layout/EmptyLinesAroundModuleBody:
65
+ Exclude:
66
+ - 'lib/dbrelation.rb'
67
+
68
+ # Offense count: 1
69
+ # This cop supports safe autocorrection (--autocorrect).
70
+ Layout/HeredocIndentation:
71
+ Exclude:
72
+ - 'db/migrate/050_create_currentennblist.rb'
73
+
74
+ # Offense count: 1
75
+ # This cop supports safe autocorrection (--autocorrect).
76
+ # Configuration parameters: IndentationWidth, EnforcedStyle.
77
+ # SupportedStyles: spaces, tabs
78
+ Layout/IndentationStyle:
79
+ Exclude:
80
+ - 'Gemfile'
81
+
82
+ # Offense count: 2
83
+ # This cop supports safe autocorrection (--autocorrect).
84
+ # Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
85
+ Layout/IndentationWidth:
86
+ Exclude:
87
+ - 'Gemfile'
88
+ - 'lib/dbrelation.rb'
89
+
90
+ # Offense count: 22
91
+ # This cop supports safe autocorrection (--autocorrect).
92
+ # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
93
+ Layout/LeadingCommentSpace:
94
+ Exclude:
95
+ - 'Gemfile'
96
+ - 'arxutils_sqlite3.gemspec'
97
+ - 'bin/arxutils-cli'
98
+ - 'bin/makemigrate'
99
+ - 'lib/arxutils_sqlite3/arx.rb'
100
+ - 'lib/arxutils_sqlite3/dbutil.rb'
101
+ - 'lib/arxutils_sqlite3/migrate.rb'
102
+
103
+ # Offense count: 1
104
+ # This cop supports safe autocorrection (--autocorrect).
105
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
106
+ # URISchemes: http, https
107
+ Layout/LineLength:
108
+ Max: 142
109
+
110
+ # Offense count: 1
111
+ # This cop supports safe autocorrection (--autocorrect).
112
+ # Configuration parameters: EnforcedStyle.
113
+ # SupportedStyles: symmetrical, new_line, same_line
114
+ Layout/MultilineArrayBraceLayout:
115
+ Exclude:
116
+ - 'lib/arxutils_sqlite3/migrate.rb'
117
+
118
+ # Offense count: 1
119
+ # This cop supports safe autocorrection (--autocorrect).
120
+ Layout/MultilineBlockLayout:
121
+ Exclude:
122
+ - 'lib/arxutils_sqlite3/migrate.rb'
123
+
124
+ # Offense count: 2
125
+ # This cop supports safe autocorrection (--autocorrect).
126
+ # Configuration parameters: EnforcedStyle.
127
+ # SupportedStyles: symmetrical, new_line, same_line
128
+ Layout/MultilineMethodCallBraceLayout:
129
+ Exclude:
130
+ - 'bin/arxutils-cli'
131
+ - 'lib/arxutils_sqlite3/migrate.rb'
132
+
133
+ # Offense count: 2
134
+ # This cop supports safe autocorrection (--autocorrect).
135
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
136
+ # SupportedStyles: space, no_space
137
+ # SupportedStylesForEmptyBraces: space, no_space
138
+ Layout/SpaceBeforeBlockBraces:
139
+ Exclude:
140
+ - 'bin/arxutils-cli'
141
+
142
+ # Offense count: 7
143
+ # This cop supports safe autocorrection (--autocorrect).
144
+ Layout/SpaceBeforeComma:
145
+ Exclude:
146
+ - 'Gemfile'
147
+ - 'bin/arxutils-cli'
148
+ - 'lib/arxutils_sqlite3/arx.rb'
149
+ - 'lib/dbrelation.rb'
150
+
151
+ # Offense count: 2
152
+ # This cop supports safe autocorrection (--autocorrect).
153
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
154
+ # SupportedStyles: space, no_space
155
+ # SupportedStylesForEmptyBraces: space, no_space
156
+ Layout/SpaceInsideBlockBraces:
157
+ Exclude:
158
+ - 'bin/arxutils-cli'
159
+
160
+ # Offense count: 4
161
+ # This cop supports safe autocorrection (--autocorrect).
162
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
163
+ # SupportedStyles: space, no_space, compact
164
+ # SupportedStylesForEmptyBraces: space, no_space
165
+ Layout/SpaceInsideHashLiteralBraces:
166
+ Exclude:
167
+ - 'bin/arxutils-cli'
168
+
169
+ # Offense count: 7
170
+ # This cop supports safe autocorrection (--autocorrect).
171
+ # Configuration parameters: EnforcedStyle.
172
+ # SupportedStyles: space, compact, no_space
173
+ Layout/SpaceInsideParens:
174
+ Exclude:
175
+ - 'bin/arxutils-cli'
176
+ - 'config/dbsetup.rb'
177
+
178
+ # Offense count: 1
179
+ # This cop supports safe autocorrection (--autocorrect).
180
+ # Configuration parameters: EnforcedStyle.
181
+ # SupportedStyles: final_newline, final_blank_line
182
+ Layout/TrailingEmptyLines:
183
+ Exclude:
184
+ - 'Gemfile'
185
+
186
+ # Offense count: 1
187
+ # This cop supports safe autocorrection (--autocorrect).
188
+ # Configuration parameters: AllowInHeredoc.
189
+ Layout/TrailingWhitespace:
190
+ Exclude:
191
+ - 'db/migrate/050_create_currentennblist.rb'
192
+
193
+ # Offense count: 1
194
+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
195
+ Lint/EmptyBlock:
196
+ Exclude:
197
+ - 'Gemfile'
198
+
199
+ # Offense count: 1
200
+ Lint/NestedPercentLiteral:
201
+ Exclude:
202
+ - 'lib/template/relation/db_scheme/opts.rb'
203
+
204
+ # Offense count: 1
205
+ Lint/RescueException:
206
+ Exclude:
207
+ - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb'
208
+
209
+ # Offense count: 3
210
+ # This cop supports safe autocorrection (--autocorrect).
211
+ Lint/ScriptPermission:
212
+ Exclude:
213
+ - 'bin/arxutils-cli'
214
+ - 'bin/makemigrate'
215
+ - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb'
216
+
217
+ # Offense count: 1
218
+ # Configuration parameters: AllowComments, AllowNil.
219
+ Lint/SuppressedException:
220
+ Exclude:
221
+ - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb'
222
+
223
+ # Offense count: 1
224
+ # This cop supports safe autocorrection (--autocorrect).
225
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
226
+ Lint/UnusedMethodArgument:
227
+ Exclude:
228
+ - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb'
229
+
230
+ # Offense count: 5
231
+ Lint/UselessAssignment:
232
+ Exclude:
233
+ - 'bin/arxutils-cli'
234
+ - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb'
235
+ - 'lib/arxutils_sqlite3/hier.rb'
236
+
237
+ # Offense count: 4
238
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
239
+ Metrics/AbcSize:
240
+ Max: 27
241
+
242
+ # Offense count: 2
243
+ # Configuration parameters: CountComments, CountAsOne.
244
+ Metrics/ClassLength:
245
+ Max: 144
246
+
247
+ # Offense count: 12
248
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
249
+ Metrics/MethodLength:
250
+ Max: 60
251
+
252
+ # Offense count: 2
253
+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
254
+ Metrics/ParameterLists:
255
+ Max: 7
256
+
257
+ # Offense count: 1
258
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
259
+ Metrics/PerceivedComplexity:
260
+ Max: 10
261
+
262
+ # Offense count: 9
263
+ # Configuration parameters: AllowedNames.
264
+ # AllowedNames: module_parent
265
+ Naming/ClassAndModuleCamelCase:
266
+ Exclude:
267
+ - 'lib/arxutils_sqlite3.rb'
268
+ - 'lib/arxutils_sqlite3/arx.rb'
269
+ - 'lib/arxutils_sqlite3/dbutil.rb'
270
+ - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb'
271
+ - 'lib/arxutils_sqlite3/dbutil/dbmgr.rb'
272
+ - 'lib/arxutils_sqlite3/hier.rb'
273
+ - 'lib/arxutils_sqlite3/migrate.rb'
274
+ - 'lib/arxutils_sqlite3/transactstate.rb'
275
+ - 'lib/arxutils_sqlite3/version.rb'
276
+
277
+ # Offense count: 4
278
+ # This cop supports safe autocorrection (--autocorrect).
279
+ # Configuration parameters: PreferredName.
280
+ Naming/RescuedExceptionsVariableName:
281
+ Exclude:
282
+ - 'bin/arxutils-cli'
283
+ - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb'
284
+
285
+ # Offense count: 5
286
+ # This cop supports safe autocorrection (--autocorrect).
287
+ Rake/Desc:
288
+ Exclude:
289
+ - 'Rakefile'
290
+
291
+ # Offense count: 1
292
+ # This cop supports safe autocorrection (--autocorrect).
293
+ Style/BlockComments:
294
+ Exclude:
295
+ - 'config/dbsetup.rb'
296
+
297
+ # Offense count: 3
298
+ # This cop supports safe autocorrection (--autocorrect).
299
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
300
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
301
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
302
+ # FunctionalMethods: let, let!, subject, watch
303
+ # AllowedMethods: lambda, proc, it
304
+ Style/BlockDelimiters:
305
+ Exclude:
306
+ - 'bin/arxutils-cli'
307
+ - 'lib/arxutils_sqlite3/migrate.rb'
308
+
309
+ # Offense count: 6
310
+ # Configuration parameters: AllowedConstants.
311
+ Style/Documentation:
312
+ Exclude:
313
+ - 'spec/**/*'
314
+ - 'test/**/*'
315
+ - 'config/dbsetup.rb'
316
+ - 'db/migrate/010_create_countdatetime.rb'
317
+ - 'db/migrate/020_create_evnb.rb'
318
+ - 'db/migrate/030_create_ennblist.rb'
319
+ - 'db/migrate/040_create_invalidennblist.rb'
320
+ - 'db/migrate/050_create_currentennblist.rb'
321
+
322
+ # Offense count: 2
323
+ # This cop supports safe autocorrection (--autocorrect).
324
+ Style/FileWrite:
325
+ Exclude:
326
+ - 'bin/arxutils-cli'
327
+
328
+ # Offense count: 5
329
+ # This cop supports safe autocorrection (--autocorrect).
330
+ # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns, IgnoredMethods.
331
+ # SupportedStyles: annotated, template, unannotated
332
+ Style/FormatStringToken:
333
+ EnforcedStyle: unannotated
334
+
335
+ # Offense count: 21
336
+ # This cop supports unsafe autocorrection (--autocorrect-all).
337
+ # Configuration parameters: EnforcedStyle.
338
+ # SupportedStyles: always, always_true, never
339
+ Style/FrozenStringLiteralComment:
340
+ Enabled: false
341
+
342
+ # Offense count: 10
343
+ # This cop supports safe autocorrection (--autocorrect).
344
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
345
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
346
+ # SupportedShorthandSyntax: always, never, either, consistent
347
+ Style/HashSyntax:
348
+ Exclude:
349
+ - 'db/migrate/010_create_countdatetime.rb'
350
+ - 'db/migrate/020_create_evnb.rb'
351
+ - 'db/migrate/030_create_ennblist.rb'
352
+ - 'db/migrate/040_create_invalidennblist.rb'
353
+
354
+ # Offense count: 1
355
+ # This cop supports safe autocorrection (--autocorrect).
356
+ Style/RedundantCondition:
357
+ Exclude:
358
+ - 'bin/arxutils-cli'
359
+
360
+ # Offense count: 1
361
+ # This cop supports safe autocorrection (--autocorrect).
362
+ Style/RedundantFreeze:
363
+ Exclude:
364
+ - 'lib/arxutils_sqlite3.rb'
365
+
366
+ # Offense count: 1
367
+ # This cop supports safe autocorrection (--autocorrect).
368
+ # Configuration parameters: EnforcedStyle.
369
+ # SupportedStyles: implicit, explicit
370
+ Style/RescueStandardError:
371
+ Exclude:
372
+ - 'lib/arxutils_sqlite3/dbutil/dbconnect.rb'
373
+
374
+ # Offense count: 3
375
+ # This cop supports safe autocorrection (--autocorrect).
376
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
377
+ # SupportedStyles: single_quotes, double_quotes
378
+ Style/StringLiterals:
379
+ Exclude:
380
+ - 'lib/dbrelation.rb'
381
+
382
+ # Offense count: 1
383
+ # This cop supports safe autocorrection (--autocorrect).
384
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
385
+ # URISchemes: http, https
386
+ Layout/LineLength:
387
+ Max: 142
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-03-21
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 ykominami@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,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in arxutils_sqlite3.gemspec
6
+ gemspec
7
+
8
+ gem "simpleoptparse"
9
+ #gem "ykutils"
10
+ #gem "ykutils" , :path => "C:\Users\ykomi\cur\ruby\ykutils"
11
+ #gem "ykutils" , :path => "../ykutils"
12
+ #gem "ykutils" , :github => "ykominami/ykutils"
13
+ gem "ykutils" , "> 0.1.3"
14
+ gem "ykxutils", "> 0.1.0"
15
+ #gem "ykxutils", :path => "../ykxutils"
16
+
17
+ gem "activesupport"
18
+ # spec.add_runtime_dependency "erb"
19
+ # spec.add_runtime_dependency "activerecord", "~> 4.2"
20
+ gem "activerecord", "~> 6.1"
21
+ gem "sqlite3"
22
+ # spec.add_runtime_dependency "mysql2" , "~> 0.4.1"
23
+ gem "encx"
24
+
25
+ # spec.add_development_dependency "bundler", "~> 2.2.10"
26
+ gem "rake", "~> 13.0"
27
+ gem "rspec", "~> 3.0"
28
+
29
+ gem "rubocop", "~> 1.7"
30
+ gem "rubocop-rake"
31
+ gem "rubocop-rspec"
32
+
33
+ group :development do
34
+
35
+ gem "yard"
36
+ end
37
+
38
+ group :test do
39
+ end
40
+
41
+
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 ykominami
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 yasuo kominami
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,43 @@
1
+ # ArxutilsSqlite3
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/arxutils_sqlite3`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'arxutils_sqlite3'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install arxutils_sqlite3
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ykominami/arxutils_sqlite3. 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/ykominami/arxutils_sqlite3/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the ArxutilsSqlite3 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ykominami/arxutils_sqlite3/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]