yoshiki 7.0.0 → 8.0.0.pre.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitlab-ci.yml CHANGED
@@ -46,13 +46,3 @@ ruby 2.7:
46
46
  script:
47
47
  - bundle exec rake spec rubocop
48
48
  stage: test
49
-
50
- ruby 2.6.1:
51
- cache:
52
- key: "$CI_BUILD_REF_NAME-2.6"
53
- paths:
54
- - vendor/bundle
55
- image: ruby:2.6-alpine
56
- script:
57
- - bundle exec rake spec rubocop
58
- stage: test
@@ -0,0 +1,123 @@
1
+ require:
2
+ - rubocop-rails
3
+
4
+ Rails:
5
+ Enabled: true
6
+
7
+ Rails/ActionControllerFlashBeforeRender: # new in 2.16
8
+ Enabled: true
9
+ Rails/ActionControllerTestCase: # new in 2.14
10
+ Enabled: true
11
+ Rails/ActionOrder: # new in 2.17
12
+ Enabled: true
13
+ Rails/ActiveRecordCallbacksOrder: # new in 2.7
14
+ Enabled: true
15
+ Rails/ActiveSupportOnLoad: # new in 2.16
16
+ Enabled: true
17
+ Rails/AddColumnIndex: # new in 2.11
18
+ Enabled: true
19
+ Rails/AfterCommitOverride: # new in 2.8
20
+ Enabled: true
21
+ Rails/AttributeDefaultBlockValue: # new in 2.9
22
+ Enabled: true
23
+ Rails/CompactBlank: # new in 2.13
24
+ Enabled: true
25
+ Rails/DangerousColumnNames: # new in 2.21
26
+ Enabled: true
27
+ Rails/DeprecatedActiveModelErrorsMethods: # new in 2.14
28
+ Enabled: true
29
+ Rails/DotSeparatedKeys: # new in 2.15
30
+ Enabled: true
31
+ Rails/DuplicateAssociation: # new in 2.14
32
+ Enabled: true
33
+ Rails/DuplicateScope: # new in 2.14
34
+ Enabled: true
35
+ Rails/DurationArithmetic: # new in 2.13
36
+ Enabled: true
37
+ Rails/EagerEvaluationLogMessage: # new in 2.11
38
+ Enabled: true
39
+ Rails/ExpandedDateRange: # new in 2.11
40
+ Enabled: true
41
+ Rails/FindById: # new in 2.7
42
+ Enabled: true
43
+ Rails/FreezeTime: # new in 2.16
44
+ Enabled: true
45
+ Rails/IgnoredColumnsAssignment: # new in 2.17
46
+ Enabled: true
47
+ Rails/I18nLazyLookup: # new in 2.14
48
+ Enabled: true
49
+ Rails/I18nLocaleAssignment: # new in 2.11
50
+ Enabled: true
51
+ Rails/I18nLocaleTexts: # new in 2.14
52
+ Enabled: true
53
+ Rails/MailerName: # new in 2.7
54
+ Enabled: true
55
+ Rails/MatchRoute: # new in 2.7
56
+ Enabled: true
57
+ Rails/MigrationClassName: # new in 2.14
58
+ Enabled: true
59
+ Rails/NegateInclude: # new in 2.7
60
+ Enabled: true
61
+ Rails/Output:
62
+ Enabled: true
63
+ Rails/Pluck: # new in 2.7
64
+ Enabled: true
65
+ Rails/RedundantActiveRecordAllMethod: # new in 2.21
66
+ Enabled: true
67
+ Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
68
+ Enabled: true
69
+ Rails/RedundantTravelBack: # new in 2.12
70
+ Enabled: true
71
+ Rails/RenderInline: # new in 2.7
72
+ Enabled: true
73
+ Rails/RenderPlainText: # new in 2.7
74
+ Enabled: true
75
+ Rails/ResponseParsedBody: # new in 2.18
76
+ Enabled: true
77
+ Rails/RootJoinChain: # new in 2.13
78
+ Enabled: true
79
+ Rails/RootPathnameMethods: # new in 2.16
80
+ Enabled: true
81
+ Rails/RootPublicPath: # new in 2.15
82
+ Enabled: true
83
+ Rails/SelectMap: # new in 2.21
84
+ Enabled: true
85
+ Rails/SquishedSQLHeredocs: # new in 2.8
86
+ Enabled: true
87
+ Rails/StripHeredoc: # new in 2.15
88
+ Enabled: true
89
+ Rails/TimeZoneAssignment: # new in 2.10
90
+ Enabled: true
91
+ Rails/ThreeStateBooleanColumn: # new in 2.19
92
+ Enabled: true
93
+ Rails/TopLevelHashWithIndifferentAccess: # new in 2.16
94
+ Enabled: true
95
+ Rails/TransactionExitStatement: # new in 2.14
96
+ Enabled: true
97
+ Rails/UnusedIgnoredColumns: # new in 2.11
98
+ Enabled: true
99
+ Rails/UnusedRenderContent: # new in 2.21
100
+ Enabled: true
101
+ Rails/WhereEquals: # new in 2.9
102
+ Enabled: true
103
+ Rails/WhereExists: # new in 2.7
104
+ Enabled: true
105
+ Rails/WhereMissing: # new in 2.16
106
+ Enabled: true
107
+ Rails/WhereNot: # new in 2.8
108
+ Enabled: true
109
+ Rails/WhereNotWithMultipleConditions: # new in 2.17
110
+ Enabled: true
111
+
112
+ RSpec/Rails/AvoidSetupHook: # new in 2.4
113
+ Enabled: true
114
+ RSpec/Rails/HaveHttpStatus: # new in 2.12
115
+ Enabled: true
116
+ RSpec/Rails/InferredSpecType: # new in 2.14
117
+ Enabled: true
118
+ RSpec/Rails/MinitestAssertions: # new in 2.17
119
+ Enabled: true
120
+ RSpec/Rails/NegationBeValid: # new in 2.23
121
+ Enabled: true
122
+ RSpec/Rails/TravelAround: # new in 2.19
123
+ Enabled: true
@@ -0,0 +1,263 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
5
+ Capybara/MatchStyle: # new in 2.17
6
+ Enabled: true
7
+ Capybara/NegationMatcher: # new in 2.14
8
+ Enabled: true
9
+ Capybara/SpecificActions: # new in 2.14
10
+ Enabled: true
11
+ Capybara/SpecificMatcher: # new in 2.12
12
+ Enabled: true
13
+
14
+ FactoryBot/AssociationStyle: # new in 2.23
15
+ Enabled: true
16
+ FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
17
+ Enabled: true
18
+ FactoryBot/FactoryClassName: # new in 1.37
19
+ Enabled: true
20
+ FactoryBot/FactoryNameStyle: # new in 2.16
21
+ Enabled: true
22
+ FactoryBot/RedundantFactoryOption: # new in 2.23
23
+ Enabled: true
24
+ FactoryBot/SyntaxMethods: # new in 2.7
25
+ Enabled: true
26
+
27
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
28
+ Enabled: true
29
+ Gemspec/DevelopmentDependencies: # new in 1.44
30
+ Enabled: true
31
+ Gemspec/RequireMFA: # new in 1.23
32
+ Enabled: true
33
+
34
+ Layout/ElseAlignment:
35
+ Enabled: true
36
+ Layout/LineContinuationLeadingSpace: # new in 1.31
37
+ Enabled: true
38
+ Layout/LineContinuationSpacing: # new in 1.31
39
+ Enabled: true
40
+ Layout/LineEndStringConcatenationIndentation: # new in 1.18
41
+ Enabled: true
42
+ Layout/SpaceBeforeBrackets: # new in 1.7
43
+ Enabled: true
44
+
45
+ Lint/AmbiguousAssignment: # new in 1.7
46
+ Enabled: true
47
+ Lint/AmbiguousOperatorPrecedence: # new in 1.21
48
+ Enabled: true
49
+ Lint/AmbiguousRange: # new in 1.19
50
+ Enabled: true
51
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
52
+ Enabled: true
53
+ Lint/DeprecatedConstants: # new in 1.8
54
+ Enabled: true
55
+ Lint/DuplicateBranch: # new in 1.3
56
+ Enabled: true
57
+ Lint/DuplicateMagicComment: # new in 1.37
58
+ Enabled: true
59
+ Lint/DuplicateMatchPattern: # new in 1.50
60
+ Enabled: true
61
+ Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
62
+ Enabled: true
63
+ Lint/EmptyBlock: # new in 1.1
64
+ Enabled: true
65
+ Lint/EmptyClass: # new in 1.3
66
+ Enabled: true
67
+ Lint/EmptyInPattern: # new in 1.16
68
+ Enabled: true
69
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
70
+ Enabled: true
71
+ Lint/LambdaWithoutLiteralBlock: # new in 1.8
72
+ Enabled: true
73
+ Lint/MixedCaseRange: # new in 1.53
74
+ Enabled: true
75
+ Lint/NonAtomicFileOperation: # new in 1.31
76
+ Enabled: true
77
+ Lint/NoReturnInBeginEndBlocks: # new in 1.2
78
+ Enabled: true
79
+ Lint/NumberedParameterAssignment: # new in 1.9
80
+ Enabled: true
81
+ Lint/OrAssignmentToConstant: # new in 1.9
82
+ Enabled: true
83
+ Lint/RedundantDirGlobSort: # new in 1.8
84
+ Enabled: true
85
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
86
+ Enabled: true
87
+ Lint/RefinementImportMethods: # new in 1.27
88
+ Enabled: true
89
+ Lint/RequireRangeParentheses: # new in 1.32
90
+ Enabled: false
91
+ Lint/RequireRelativeSelfPath: # new in 1.22
92
+ Enabled: true
93
+ Lint/SymbolConversion: # new in 1.9
94
+ Enabled: true
95
+ Lint/ToEnumArguments: # new in 1.1
96
+ Enabled: true
97
+ Lint/TripleQuotes: # new in 1.9
98
+ Enabled: true
99
+ Lint/UnexpectedBlockArity: # new in 1.5
100
+ Enabled: true
101
+ Lint/UnmodifiedReduceAccumulator: # new in 1.1
102
+ Enabled: true
103
+ Lint/UselessRescue: # new in 1.43
104
+ Enabled: true
105
+ Lint/UselessRuby2Keywords: # new in 1.23
106
+ Enabled: true
107
+
108
+ Metrics/CollectionLiteralLength: # new in 1.47
109
+ Enabled: true
110
+ RSpec/BeEmpty: # new in 2.20
111
+ Enabled: true
112
+ RSpec/BeEq: # new in 2.9.0
113
+ Enabled: true
114
+ RSpec/BeNil: # new in 2.9.0
115
+ Enabled: true
116
+ RSpec/ChangeByZero: # new in 2.11.0
117
+ Enabled: true
118
+ RSpec/ClassCheck: # new in 2.13
119
+ Enabled: true
120
+ RSpec/ContainExactly: # new in 2.19
121
+ Enabled: true
122
+ RSpec/DuplicatedMetadata: # new in 2.16
123
+ Enabled: true
124
+ RSpec/EmptyMetadata: # new in 2.24
125
+ Enabled: true
126
+ RSpec/Eq: # new in 2.24
127
+ Enabled: true
128
+ RSpec/ExcessiveDocstringSpacing: # new in 2.5
129
+ Enabled: true
130
+ RSpec/IdenticalEqualityAssertion: # new in 2.4
131
+ Enabled: true
132
+ RSpec/IndexedLet: # new in 2.20
133
+ Enabled: true
134
+ RSpec/MatchArray: # new in 2.19
135
+ Enabled: true
136
+ RSpec/MetadataStyle: # new in 2.24
137
+ Enabled: true
138
+ RSpec/NoExpectationExample: # new in 2.13
139
+ Enabled: true
140
+ RSpec/ReceiveMessages: # new in 2.23
141
+ Enabled: true
142
+ RSpec/RedundantAround: # new in 2.19
143
+ Enabled: true
144
+ RSpec/SkipBlockInsideExample: # new in 2.19
145
+ Enabled: true
146
+ RSpec/SortMetadata: # new in 2.14
147
+ Enabled: true
148
+ RSpec/SpecFilePathFormat: # new in 2.24
149
+ Enabled: true
150
+ RSpec/SpecFilePathSuffix: # new in 2.24
151
+ Enabled: true
152
+ RSpec/SubjectDeclaration: # new in 2.5
153
+ Enabled: true
154
+ RSpec/VerifiedDoubleReference: # new in 2.10.0
155
+ Enabled: true
156
+
157
+ Security/CompoundHash: # new in 1.28
158
+ Enabled: true
159
+ Security/IoMethods: # new in 1.22
160
+ Enabled: true
161
+
162
+ Style/ArgumentsForwarding: # new in 1.1
163
+ Enabled: true
164
+ Style/ArrayIntersect: # new in 1.40
165
+ Enabled: true
166
+ Style/CollectionCompact: # new in 1.2
167
+ Enabled: true
168
+ Style/ComparableClamp: # new in 1.44
169
+ Enabled: true
170
+ Style/ConcatArrayLiterals: # new in 1.41
171
+ Enabled: true
172
+ Style/DataInheritance: # new in 1.49
173
+ Enabled: true
174
+ Style/DirEmpty: # new in 1.48
175
+ Enabled: true
176
+ Style/DocumentDynamicEvalDefinition: # new in 1.1
177
+ Enabled: true
178
+ Style/EmptyHeredoc: # new in 1.32
179
+ Enabled: true
180
+ Style/EnvHome: # new in 1.29
181
+ Enabled: true
182
+ Style/FetchEnvVar: # new in 1.28
183
+ Enabled: true
184
+ Style/ExactRegexpMatch: # new in 1.51
185
+ Enabled: true
186
+ Style/FileEmpty: # new in 1.48
187
+ Enabled: true
188
+ Style/FileRead: # new in 1.24
189
+ Enabled: true
190
+ Style/FileWrite: # new in 1.24
191
+ Enabled: true
192
+ Style/HashConversion: # new in 1.10
193
+ Enabled: true
194
+ Style/HashExcept: # new in 1.7
195
+ Enabled: true
196
+ Style/IfWithBooleanLiteralBranches: # new in 1.9
197
+ Enabled: true
198
+ Style/InPatternThen: # new in 1.16
199
+ Enabled: true
200
+ Style/MagicCommentFormat: # new in 1.35
201
+ Enabled: true
202
+ Style/MapCompactWithConditionalBlock: # new in 1.30
203
+ Enabled: true
204
+ Style/MapToHash: # new in 1.24
205
+ Enabled: true
206
+ Style/MapToSet: # new in 1.42
207
+ Enabled: true
208
+ Style/MinMaxComparison: # new in 1.42
209
+ Enabled: true
210
+ Style/MultilineInPatternThen: # new in 1.16
211
+ Enabled: true
212
+ Style/NegatedIfElseCondition: # new in 1.2
213
+ Enabled: true
214
+ Style/NestedFileDirname: # new in 1.26
215
+ Enabled: true
216
+ Style/NilLambda: # new in 1.3
217
+ Enabled: true
218
+ Style/ObjectThen: # new in 1.28
219
+ Enabled: true
220
+ Style/OpenStructUse: # new in 1.23
221
+ Enabled: true
222
+ Style/OperatorMethodCall: # new in 1.37
223
+ Enabled: true
224
+ Style/QuotedSymbols: # new in 1.16
225
+ Enabled: true
226
+ Style/RedundantArgument: # new in 1.4
227
+ Enabled: true
228
+ Style/RedundantArrayConstructor: # new in 1.52
229
+ Enabled: true
230
+ Style/RedundantConstantBase: # new in 1.40
231
+ Enabled: true
232
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
233
+ Enabled: true
234
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
235
+ Enabled: true
236
+ Style/RedundantEach: # new in 1.38
237
+ Enabled: true
238
+ Style/RedundantFilterChain: # new in 1.52
239
+ Enabled: true
240
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
241
+ Enabled: true
242
+ Style/RedundantInitialize: # new in 1.27
243
+ Enabled: true
244
+ Style/RedundantLineContinuation: # new in 1.49
245
+ Enabled: true
246
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
247
+ Enabled: true
248
+ Style/RedundantRegexpArgument: # new in 1.53
249
+ Enabled: true
250
+ Style/RedundantRegexpConstructor: # new in 1.52
251
+ Enabled: true
252
+ Style/RedundantSelfAssignmentBranch: # new in 1.19
253
+ Enabled: true
254
+ Style/RedundantStringEscape: # new in 1.37
255
+ Enabled: true
256
+ Style/SelectByRegexp: # new in 1.22
257
+ Enabled: true
258
+ Style/StringChars: # new in 1.12
259
+ Enabled: true
260
+ Style/SwapValues: # new in 1.1
261
+ Enabled: true
262
+ Style/YAMLFileRead: # new in 1.53
263
+ Enabled: true
data/.rubocop.yml CHANGED
@@ -1,7 +1,9 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.6
2
+ TargetRubyVersion: 2.7
3
3
 
4
4
  inherit_from:
5
+ - .rubocop-defaults.yml
6
+ - .rubocop-defaults-rails.yml
5
7
  - .devfu-rubocop.yml
6
8
 
7
9
  Naming/FileName:
data/Gemfile CHANGED
@@ -5,4 +5,7 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in yoshiki.gemspec
6
6
  gemspec
7
7
 
8
+ gem 'pry'
8
9
  gem 'psych'
10
+ gem 'rake'
11
+ gem 'rspec'
data/Gemfile.lock CHANGED
@@ -1,89 +1,98 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yoshiki (7.0.0)
5
- activesupport (>= 5.2.0)
6
- rubocop (= 1.40.0)
7
- rubocop-rails (= 2.17.3)
4
+ yoshiki (8.0.0.pre.2)
5
+ activesupport (>= 6.0.0)
6
+ rubocop (= 1.56.3)
7
+ rubocop-rails (= 2.21.1)
8
8
  rubocop-rake (= 0.6.0)
9
- rubocop-rspec (= 2.15.0)
9
+ rubocop-rspec (= 2.24.0)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (7.0.4)
14
+ activesupport (7.0.8)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
16
  i18n (>= 1.6, < 2)
17
17
  minitest (>= 5.1)
18
18
  tzinfo (~> 2.0)
19
19
  ast (2.4.2)
20
- coderay (1.1.1)
21
- concurrent-ruby (1.1.10)
22
- diff-lcs (1.3)
23
- i18n (1.12.0)
20
+ base64 (0.1.1)
21
+ coderay (1.1.3)
22
+ concurrent-ruby (1.2.2)
23
+ diff-lcs (1.5.0)
24
+ i18n (1.14.1)
24
25
  concurrent-ruby (~> 1.0)
25
26
  json (2.6.3)
26
- method_source (0.8.2)
27
- minitest (5.16.3)
28
- parallel (1.22.1)
29
- parser (3.1.3.0)
27
+ language_server-protocol (3.17.0.3)
28
+ method_source (1.0.0)
29
+ minitest (5.20.0)
30
+ parallel (1.23.0)
31
+ parser (3.2.2.3)
30
32
  ast (~> 2.4.1)
31
- pry (0.10.4)
32
- coderay (~> 1.1.0)
33
- method_source (~> 0.8.1)
34
- slop (~> 3.4)
35
- psych (4.0.4)
33
+ racc
34
+ pry (0.14.2)
35
+ coderay (~> 1.1)
36
+ method_source (~> 1.0)
37
+ psych (5.1.0)
36
38
  stringio
37
- rack (3.0.2)
39
+ racc (1.7.1)
40
+ rack (3.0.8)
38
41
  rainbow (3.1.1)
39
42
  rake (13.0.6)
40
- regexp_parser (2.6.1)
41
- rexml (3.2.5)
42
- rspec (3.7.0)
43
- rspec-core (~> 3.7.0)
44
- rspec-expectations (~> 3.7.0)
45
- rspec-mocks (~> 3.7.0)
46
- rspec-core (3.7.0)
47
- rspec-support (~> 3.7.0)
48
- rspec-expectations (3.7.0)
43
+ regexp_parser (2.8.1)
44
+ rexml (3.2.6)
45
+ rspec (3.12.0)
46
+ rspec-core (~> 3.12.0)
47
+ rspec-expectations (~> 3.12.0)
48
+ rspec-mocks (~> 3.12.0)
49
+ rspec-core (3.12.2)
50
+ rspec-support (~> 3.12.0)
51
+ rspec-expectations (3.12.3)
49
52
  diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.7.0)
51
- rspec-mocks (3.7.0)
53
+ rspec-support (~> 3.12.0)
54
+ rspec-mocks (3.12.6)
52
55
  diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.7.0)
54
- rspec-support (3.7.0)
55
- rubocop (1.40.0)
56
+ rspec-support (~> 3.12.0)
57
+ rspec-support (3.12.1)
58
+ rubocop (1.56.3)
59
+ base64 (~> 0.1.1)
56
60
  json (~> 2.3)
61
+ language_server-protocol (>= 3.17.0)
57
62
  parallel (~> 1.10)
58
- parser (>= 3.1.2.1)
63
+ parser (>= 3.2.2.3)
59
64
  rainbow (>= 2.2.2, < 4.0)
60
65
  regexp_parser (>= 1.8, < 3.0)
61
66
  rexml (>= 3.2.5, < 4.0)
62
- rubocop-ast (>= 1.23.0, < 2.0)
67
+ rubocop-ast (>= 1.28.1, < 2.0)
63
68
  ruby-progressbar (~> 1.7)
64
- unicode-display_width (>= 1.4.0, < 3.0)
65
- rubocop-ast (1.24.0)
66
- parser (>= 3.1.1.0)
67
- rubocop-rails (2.17.3)
69
+ unicode-display_width (>= 2.4.0, < 3.0)
70
+ rubocop-ast (1.29.0)
71
+ parser (>= 3.2.1.0)
72
+ rubocop-capybara (2.18.0)
73
+ rubocop (~> 1.41)
74
+ rubocop-factory_bot (2.23.1)
75
+ rubocop (~> 1.33)
76
+ rubocop-rails (2.21.1)
68
77
  activesupport (>= 4.2.0)
69
78
  rack (>= 1.1)
70
79
  rubocop (>= 1.33.0, < 2.0)
71
80
  rubocop-rake (0.6.0)
72
81
  rubocop (~> 1.0)
73
- rubocop-rspec (2.15.0)
82
+ rubocop-rspec (2.24.0)
74
83
  rubocop (~> 1.33)
75
- ruby-progressbar (1.11.0)
76
- slop (3.6.0)
77
- stringio (3.0.2)
78
- tzinfo (2.0.5)
84
+ rubocop-capybara (~> 2.17)
85
+ rubocop-factory_bot (~> 2.22)
86
+ ruby-progressbar (1.13.0)
87
+ stringio (3.0.8)
88
+ tzinfo (2.0.6)
79
89
  concurrent-ruby (~> 1.0)
80
- unicode-display_width (2.3.0)
90
+ unicode-display_width (2.4.2)
81
91
 
82
92
  PLATFORMS
83
93
  ruby
84
94
 
85
95
  DEPENDENCIES
86
- bundler
87
96
  pry
88
97
  psych
89
98
  rake
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code here should not cause rubocop to nag
4
+ class Examples
5
+
6
+ # rubocop:disable Layout/CommentIndentation,Style/AccessModifierDeclarations
7
+ private def example_for_layout_def_end_alignment
8
+ # this method is *not* empty
9
+ end
10
+ # rubocop:enable Layout/CommentIndentation, Style/AccessModifierDeclarations
11
+
12
+ def example_for_layout_else_alignment
13
+ if example_for_layout_def_end_alignment
14
+ # do_something
15
+ else # rubocop:disable Layout/ElseAlignment, Style/EmptyElse
16
+ # do_something_else
17
+ end
18
+ end
19
+
20
+ def example_for_layout_end_alignment
21
+ foo = begin
22
+ 'foo'
23
+ rescue e
24
+ # do nothing
25
+ end
26
+
27
+ "#{ foo } bar"
28
+ end
29
+
30
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yoshiki
4
4
 
5
- VERSION = '7.0.0'
5
+ VERSION = '8.0.0-2'
6
6
 
7
7
  end
data/yoshiki.gemspec CHANGED
@@ -20,19 +20,14 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.metadata['rubygems_mfa_required'] = 'true'
22
22
 
23
- spec.required_ruby_version = '>= 2.6.0'
23
+ spec.required_ruby_version = '>= 2.7.0'
24
24
 
25
- # ruby 2.6.0+ implies rails 5.2+
25
+ # ruby 2.7.0+ implies rails 6+
26
26
  # See also: https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
27
- spec.add_dependency 'activesupport', '>= 5.2.0'
27
+ spec.add_dependency 'activesupport', '>= 6.0.0'
28
28
 
29
- spec.add_dependency 'rubocop', '1.40.0'
30
- spec.add_dependency 'rubocop-rails', '2.17.3'
29
+ spec.add_dependency 'rubocop', '1.56.3'
30
+ spec.add_dependency 'rubocop-rails', '2.21.1'
31
31
  spec.add_dependency 'rubocop-rake', '0.6.0'
32
- spec.add_dependency 'rubocop-rspec', '2.15.0'
33
-
34
- spec.add_development_dependency 'bundler'
35
- spec.add_development_dependency 'pry'
36
- spec.add_development_dependency 'rake'
37
- spec.add_development_dependency 'rspec'
32
+ spec.add_dependency 'rubocop-rspec', '2.24.0'
38
33
  end