ykutils 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e9bf4a1496614553e8da4558a59f381ca144e99c
4
- data.tar.gz: 3cdd60d495a1479f954f7d918131f3a0de74b56f
2
+ SHA256:
3
+ metadata.gz: b499c160b699d72067cfa4dae524e5a7e1a20031c50c9555e7ffb3ea5fbd610a
4
+ data.tar.gz: 7794129fb0a121c4ba36c4df23a110b10623a725f78f7b26903afd4eec5fcde2
5
5
  SHA512:
6
- metadata.gz: 45b7af05299dffc72a8a494ef9183176dff1b85243efa27774e3cc75b6478c7e56a06926128888a412206a22cfa858cd9bb42d05526deb0340bea549d572eff2
7
- data.tar.gz: 107de770406966509cb4016d3a4842dcf651dfe7f19e61932bb8c639b1c3ea14499b7575d389432ec93b15e1d6e033abf6de07a759378adab8d6910cebe6aae4
6
+ metadata.gz: d4ad65f3b023e40bb6540580aff86225d25f7a221572eba886e1263b3616904f7a39fa43e29df7e8d9849c818589c20af01c2117fe40c72ac00f531fa4819bcc
7
+ data.tar.gz: 5daa995ba943d8cf6c0011ace457c35094b78e199131a7440caff244e2bc728cf5beb0268ccc7976462d5c6af0de22871cff02c2bcad2e6d546ec6ff9b51b72f
@@ -0,0 +1,27 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ pull_request:
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ name: Ruby ${{ matrix.ruby }}
14
+ strategy:
15
+ matrix:
16
+ ruby:
17
+ - '3.1.2'
18
+
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - name: Set up Ruby
22
+ uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby }}
25
+ bundler-cache: true
26
+ - name: Run the default task
27
+ run: bundle exec rake
data/.gitignore CHANGED
@@ -1,9 +1,11 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
7
6
  /pkg/
8
7
  /spec/reports/
9
8
  /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --format documentation
2
2
  --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,17 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.6
5
+ SuggestExtensions: false
6
+ NewCops: enable
7
+
8
+ Style/StringLiterals:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Style/StringLiteralsInInterpolation:
13
+ Enabled: true
14
+ EnforcedStyle: double_quotes
15
+
16
+ Layout/LineLength:
17
+ Max: 120
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,332 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2022-06-20 10:09:15 UTC using RuboCop version 1.30.1.
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: 9
10
+ # Configuration parameters: EnforcedStyle.
11
+ # SupportedStyles: native, lf, crlf
12
+ Layout/EndOfLine:
13
+ Exclude:
14
+ - 'Gemfile'
15
+ - 'Rakefile'
16
+ - 'bin/console'
17
+ - 'lib/ykutils.rb'
18
+ - 'lib/ykutils/lsutils.rb'
19
+ - 'lib/ykutils/version.rb'
20
+ # - 'spec/spec_helper.rb'
21
+ # - 'spec/ykutils_spec.rb'
22
+ # - 'ykutils.gemspec'
23
+
24
+ # Offense count: 2
25
+ # This cop supports safe autocorrection (--autocorrect).
26
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
27
+ # URISchemes: http, https
28
+ Layout/LineLength:
29
+ Max: 175
30
+
31
+ # Offense count: 7
32
+ # Configuration parameters: AllowSafeAssignment.
33
+ Lint/AssignmentInCondition:
34
+ Exclude:
35
+ - 'lib/ykutils/fileoputils2.rb'
36
+ - 'lib/ykutils/lines.rb'
37
+ - 'lib/ykutils/nkfutil.rb'
38
+ - 'lib/ykutils/nkfutil19.rb'
39
+ - 'lib/ykutils/stext.rb'
40
+ - 'lib/ykutils/stextx.rb'
41
+
42
+ # Offense count: 1
43
+ Lint/DuplicateMethods:
44
+ Exclude:
45
+ - 'lib/ykutils/nkfutil19.rb'
46
+
47
+ # Offense count: 1
48
+ # This cop supports unsafe autocorrection (--autocorrect-all).
49
+ Lint/DuplicateRequire:
50
+ Exclude:
51
+ - 'lib/ykutils.rb'
52
+
53
+ # Offense count: 6
54
+ # Configuration parameters: AllowComments.
55
+ Lint/EmptyWhen:
56
+ Exclude:
57
+ - 'lib/ykutils/lines.rb'
58
+ - 'lib/ykutils/stext.rb'
59
+
60
+ # Offense count: 4
61
+ Lint/MissingSuper:
62
+ Exclude:
63
+ - 'lib/ykutils/retcodex.rb'
64
+ - 'lib/ykutils/stext.rb'
65
+ - 'lib/ykutils/yamlxop.rb'
66
+
67
+ # Offense count: 2
68
+ Lint/NestedMethodDefinition:
69
+ Exclude:
70
+ - 'lib/ykutils/stextx.rb'
71
+
72
+ # Offense count: 3
73
+ Lint/ShadowingOuterLocalVariable:
74
+ Exclude:
75
+ - 'lib/ykutils/stext.rb'
76
+ - 'lib/ykutils/yamlop.rb'
77
+
78
+ # Offense count: 1
79
+ # Configuration parameters: AllowComments, AllowNil.
80
+ Lint/SuppressedException:
81
+ Exclude:
82
+ - 'lib/ykutils/pathop.rb'
83
+
84
+ # Offense count: 21
85
+ Lint/UselessAssignment:
86
+ Exclude:
87
+ - 'lib/ykutils/fileoputils2.rb'
88
+ - 'lib/ykutils/filepermision.rb'
89
+ - 'lib/ykutils/pathop.rb'
90
+ - 'lib/ykutils/specfileop.rb'
91
+ - 'lib/ykutils/stext.rb'
92
+ - 'lib/ykutils/stextx.rb'
93
+ - 'lib/ykutils/stringutils.rb'
94
+ - 'lib/ykutils/yamlop.rb'
95
+
96
+ # Offense count: 2
97
+ # This cop supports unsafe autocorrection (--autocorrect-all).
98
+ Lint/UselessMethodDefinition:
99
+ Exclude:
100
+ - 'lib/ykutils/hasharray.rb'
101
+ - 'lib/ykutils/stext.rb'
102
+
103
+ # Offense count: 1
104
+ # Configuration parameters: CheckForMethodsWithNoSideEffects.
105
+ Lint/Void:
106
+ Exclude:
107
+ - 'lib/ykutils/stext.rb'
108
+
109
+ # Offense count: 14
110
+ # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
111
+ Metrics/AbcSize:
112
+ Max: 43
113
+
114
+ # Offense count: 2
115
+ # Configuration parameters: CountComments, CountAsOne.
116
+ Metrics/ClassLength:
117
+ Max: 185
118
+
119
+ # Offense count: 6
120
+ # Configuration parameters: IgnoredMethods.
121
+ Metrics/CyclomaticComplexity:
122
+ Max: 21
123
+
124
+ # Offense count: 42
125
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
126
+ Metrics/MethodLength:
127
+ Max: 85
128
+
129
+ # Offense count: 2
130
+ # Configuration parameters: CountComments, CountAsOne.
131
+ Metrics/ModuleLength:
132
+ Max: 339
133
+
134
+ # Offense count: 2
135
+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
136
+ Metrics/ParameterLists:
137
+ Max: 6
138
+
139
+ # Offense count: 5
140
+ # Configuration parameters: IgnoredMethods.
141
+ Metrics/PerceivedComplexity:
142
+ Max: 18
143
+
144
+ # Offense count: 13
145
+ Naming/AccessorMethodName:
146
+ Exclude:
147
+ - 'lib/ykutils/debugutils.rb'
148
+ - 'lib/ykutils/lines.rb'
149
+ - 'lib/ykutils/nkfutil.rb'
150
+ - 'lib/ykutils/retcodex.rb'
151
+ - 'lib/ykutils/stext.rb'
152
+
153
+ # Offense count: 1
154
+ # Configuration parameters: EnforcedStyleForLeadingUnderscores.
155
+ # SupportedStylesForLeadingUnderscores: disallowed, required, optional
156
+ Naming/MemoizedInstanceVariableName:
157
+ Exclude:
158
+ - 'lib/ykutils/hasharray.rb'
159
+
160
+ # Offense count: 2
161
+ # Configuration parameters: EnforcedStyle, AllowedPatterns, IgnoredPatterns.
162
+ # SupportedStyles: snake_case, camelCase
163
+ Naming/MethodName:
164
+ Exclude:
165
+ - 'lib/ykutils/treemanagera.rb'
166
+
167
+ # Offense count: 8
168
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
169
+ # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
170
+ Naming/MethodParameterName:
171
+ Exclude:
172
+ - 'lib/ykutils/debugutils.rb'
173
+ - 'lib/ykutils/fileoputils2.rb'
174
+ - 'lib/ykutils/stext.rb'
175
+ - 'lib/ykutils/stringutils.rb'
176
+
177
+ # Offense count: 17
178
+ # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
179
+ # SupportedStyles: snake_case, normalcase, non_integer
180
+ # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
181
+ Naming/VariableNumber:
182
+ Exclude:
183
+ - 'lib/ykutils/fileoputils2.rb'
184
+ - 'lib/ykutils/stringutils.rb'
185
+
186
+ # Offense count: 12
187
+ # This cop supports unsafe autocorrection (--autocorrect-all).
188
+ # Configuration parameters: EnforcedStyle.
189
+ # SupportedStyles: always, conditionals
190
+ Style/AndOr:
191
+ Exclude:
192
+ - 'lib/ykutils/debugutils.rb'
193
+ - 'lib/ykutils/fileoputils2.rb'
194
+ - 'lib/ykutils/lines.rb'
195
+ - 'lib/ykutils/pathop.rb'
196
+ - 'lib/ykutils/specfileop.rb'
197
+ - 'lib/ykutils/stext.rb'
198
+ - 'lib/ykutils/yamlop.rb'
199
+
200
+ # Offense count: 2
201
+ # This cop supports safe autocorrection (--autocorrect).
202
+ # Configuration parameters: AllowOnConstant.
203
+ Style/CaseEquality:
204
+ Exclude:
205
+ - 'lib/ykutils/lsutils.rb'
206
+
207
+ # Offense count: 1
208
+ # This cop supports unsafe autocorrection (--autocorrect-all).
209
+ Style/CaseLikeIf:
210
+ Exclude:
211
+ - 'lib/ykutils/lines.rb'
212
+
213
+ # Offense count: 21
214
+ Style/ClassVars:
215
+ Exclude:
216
+ - 'lib/ykutils/debugutils.rb'
217
+ - 'lib/ykutils/nkfutil.rb'
218
+ - 'lib/ykutils/nkfutil19.rb'
219
+ - 'lib/ykutils/osutil.rb'
220
+
221
+ # Offense count: 34
222
+ # Configuration parameters: AllowedConstants.
223
+ Style/Documentation:
224
+ Enabled: false
225
+
226
+ # Offense count: 2
227
+ # This cop supports safe autocorrection (--autocorrect).
228
+ # Configuration parameters: EnforcedStyle.
229
+ # SupportedStyles: empty, nil, both
230
+ Style/EmptyElse:
231
+ Exclude:
232
+ - 'lib/ykutils/stringutils.rb'
233
+
234
+ # Offense count: 22
235
+ # This cop supports unsafe autocorrection (--autocorrect-all).
236
+ # Configuration parameters: EnforcedStyle.
237
+ # SupportedStyles: always, always_true, never
238
+ Style/FrozenStringLiteralComment:
239
+ Enabled: false
240
+
241
+ # Offense count: 2
242
+ # Configuration parameters: AllowedVariables.
243
+ Style/GlobalVars:
244
+ Exclude:
245
+ - 'lib/ykutils/nkfutil.rb'
246
+
247
+ # Offense count: 6
248
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
249
+ Style/GuardClause:
250
+ Exclude:
251
+ - 'lib/ykutils/fileoputils2.rb'
252
+ - 'lib/ykutils/lines.rb'
253
+ - 'lib/ykutils/nkfutil.rb'
254
+ - 'lib/ykutils/stext.rb'
255
+ - 'lib/ykutils/yamlop.rb'
256
+
257
+ # Offense count: 1
258
+ # This cop supports unsafe autocorrection (--autocorrect-all).
259
+ # Configuration parameters: InverseMethods, InverseBlocks.
260
+ Style/InverseMethods:
261
+ Exclude:
262
+ - 'lib/ykutils/specfileop.rb'
263
+
264
+ # Offense count: 6
265
+ # This cop supports unsafe autocorrection (--autocorrect-all).
266
+ # Configuration parameters: EnforcedStyle, IgnoredMethods.
267
+ # SupportedStyles: predicate, comparison
268
+ Style/NumericPredicate:
269
+ Exclude:
270
+ - 'spec/**/*'
271
+ - 'lib/ykutils/specfileop.rb'
272
+ - 'lib/ykutils/stext.rb'
273
+ - 'lib/ykutils/yamlop.rb'
274
+
275
+ # Offense count: 5
276
+ # Configuration parameters: AllowedMethods.
277
+ # AllowedMethods: respond_to_missing?
278
+ Style/OptionalBooleanParameter:
279
+ Exclude:
280
+ - 'lib/ykutils/debugutils.rb'
281
+ - 'lib/ykutils/lsutils.rb'
282
+ - 'lib/ykutils/stext.rb'
283
+ - 'lib/ykutils/stextx.rb'
284
+ - 'lib/ykutils/yamlop.rb'
285
+
286
+ # Offense count: 6
287
+ # This cop supports unsafe autocorrection (--autocorrect-all).
288
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
289
+ # AllowedMethods: present?, blank?, presence, try, try!
290
+ Style/SafeNavigation:
291
+ Exclude:
292
+ - 'lib/ykutils/fileoputils2.rb'
293
+ - 'lib/ykutils/stext.rb'
294
+ - 'lib/ykutils/treemanager.rb'
295
+
296
+ # Offense count: 1
297
+ # This cop supports unsafe autocorrection (--autocorrect-all).
298
+ Style/SlicingWithRange:
299
+ Exclude:
300
+ - 'lib/ykutils/fileoputils2.rb'
301
+
302
+ # Offense count: 3
303
+ # This cop supports unsafe autocorrection (--autocorrect-all).
304
+ # Configuration parameters: Mode.
305
+ Style/StringConcatenation:
306
+ Exclude:
307
+ - 'lib/ykutils/stext.rb'
308
+ - 'lib/ykutils/stringutils.rb'
309
+ - 'lib/ykutils/yamlop.rb'
310
+
311
+ # Offense count: 2
312
+ # This cop supports unsafe autocorrection (--autocorrect-all).
313
+ # Configuration parameters: AllowMethodsWithArguments, IgnoredMethods, AllowComments.
314
+ # IgnoredMethods: respond_to, define_method
315
+ Style/SymbolProc:
316
+ Exclude:
317
+ - 'lib/ykutils/stext.rb'
318
+ - 'lib/ykutils/yamlop.rb'
319
+
320
+ # Offense count: 4
321
+ # This cop supports unsafe autocorrection (--autocorrect-all).
322
+ Style/ZeroLengthPredicate:
323
+ Exclude:
324
+ - 'lib/ykutils/specfileop.rb'
325
+ - 'lib/ykutils/stext.rb'
326
+
327
+ # Offense count: 2
328
+ # This cop supports safe autocorrection (--autocorrect).
329
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
330
+ # URISchemes: http, https
331
+ Layout/LineLength:
332
+ Max: 175
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-06-20
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 CHANGED
@@ -1,4 +1,15 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
2
4
 
3
5
  # Specify your gem's dependencies in ykutils.gemspec
4
6
  gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.21"
13
+
14
+ gem "tilt"
15
+ gem "erubi"
data/Gemfile.lock ADDED
@@ -0,0 +1,71 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ykutils (0.1.1)
5
+ filex
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.2)
11
+ diff-lcs (1.5.0)
12
+ erubi (1.10.0)
13
+ erubis (2.7.0)
14
+ filex (0.1.7)
15
+ erubis
16
+ messagex
17
+ messagex (0.1.5)
18
+ parallel (1.22.1)
19
+ parser (3.1.2.0)
20
+ ast (~> 2.4.1)
21
+ rainbow (3.1.1)
22
+ rake (13.0.6)
23
+ regexp_parser (2.5.0)
24
+ rexml (3.2.5)
25
+ rspec (3.11.0)
26
+ rspec-core (~> 3.11.0)
27
+ rspec-expectations (~> 3.11.0)
28
+ rspec-mocks (~> 3.11.0)
29
+ rspec-core (3.11.0)
30
+ rspec-support (~> 3.11.0)
31
+ rspec-expectations (3.11.0)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.11.0)
34
+ rspec-mocks (3.11.1)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.11.0)
37
+ rspec-support (3.11.0)
38
+ rubocop (1.30.1)
39
+ parallel (~> 1.10)
40
+ parser (>= 3.1.0.0)
41
+ rainbow (>= 2.2.2, < 4.0)
42
+ regexp_parser (>= 1.8, < 3.0)
43
+ rexml (>= 3.2.5, < 4.0)
44
+ rubocop-ast (>= 1.18.0, < 2.0)
45
+ ruby-progressbar (~> 1.7)
46
+ unicode-display_width (>= 1.4.0, < 3.0)
47
+ rubocop-ast (1.18.0)
48
+ parser (>= 3.1.1.0)
49
+ rubocop-rake (0.6.0)
50
+ rubocop (~> 1.0)
51
+ rubocop-rspec (2.11.1)
52
+ rubocop (~> 1.19)
53
+ ruby-progressbar (1.11.0)
54
+ tilt (2.0.10)
55
+ unicode-display_width (2.1.0)
56
+
57
+ PLATFORMS
58
+ x64-mingw-ucrt
59
+
60
+ DEPENDENCIES
61
+ erubi
62
+ rake (~> 13.0)
63
+ rspec (~> 3.0)
64
+ rubocop (~> 1.21)
65
+ rubocop-rake
66
+ rubocop-rspec
67
+ tilt
68
+ ykutils!
69
+
70
+ BUNDLED WITH
71
+ 2.3.7
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
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
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 CHANGED
@@ -14,7 +14,7 @@ gem 'ykutils'
14
14
 
15
15
  And then execute:
16
16
 
17
- $ bundle
17
+ $ bundle install
18
18
 
19
19
  Or install it yourself as:
20
20
 
@@ -26,14 +26,18 @@ TODO: Write usage instructions here
26
26
 
27
27
  ## Development
28
28
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
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
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` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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
32
 
33
33
  ## Contributing
34
34
 
35
- 1. Fork it ( https://github.com/[my-github-username]/ykutils/fork )
36
- 2. Create your feature branch (`git checkout -b my-new-feature`)
37
- 3. Commit your changes (`git commit -am 'Add some feature'`)
38
- 4. Push to the branch (`git push origin my-new-feature`)
39
- 5. Create a new Pull Request
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ykominami/ykutils. 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/ykutils/blob/main/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 Ykutils project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ykominami/ykutils/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
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]
data/bin/console CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require "bundler/setup"
4
5
  require "ykutils"
@@ -11,4 +12,4 @@ require "ykutils"
11
12
  # Pry.start
12
13
 
13
14
  require "irb"
14
- IRB.start
15
+ IRB.start(__FILE__)