yoshiki 8.0.0.pre.1 → 8.0.0.pre.3

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
2
  SHA256:
3
- metadata.gz: f02c4934ead3b26577239e0801ef7c6ff9e6fe279f68bb4b2670fd34932e3adf
4
- data.tar.gz: 1a0af64a4f275d01debb6a4fb992f41548667c755837195faf2a65446b192493
3
+ metadata.gz: 293051fb7ee2f1ce48cc864b6a20fdd57fc1013dabbe37e9458a92d6395bee70
4
+ data.tar.gz: 848ee2976be24f93911f2ba9c18dd086a20a1dfb158f973d276d802d7af0332f
5
5
  SHA512:
6
- metadata.gz: 9edd031d093ee846af00080fffb887912deff4b71e6248ec43f76c5a83fb6af36c86002e3e9a5a47ff5423b46590d063fab74eaec82ab0f9759e6dc24c6e967f
7
- data.tar.gz: '092507cb38e77a70ae902bd9a19ff2be61cfbefc206b0fbc95a741989acd95df8f2ac13a3b0120ece4165596c14591bcf23425184b68f0e58bcd6019eeca072b'
6
+ metadata.gz: 3eec437322ba56a1ff74655cab81f86108d6d2dca0a31692b8ad9dfb39044045f4bc02bb13b2d5e857c76fa19ea975aa8065fdb530ac796d7985161292bed74b
7
+ data.tar.gz: d3c9e35fc0026aed038c08fb6017726cb8ce22205d535ac1ffbad6967e521c7bbd2c7f8fcaeb3fa580b205b8d5a1fffd5176d0b0c97427824cc61f380fb7ef6c
data/.rubocop.yml CHANGED
@@ -3,7 +3,8 @@ AllCops:
3
3
 
4
4
  inherit_from:
5
5
  - .rubocop-defaults.yml
6
- - .devfu-rubocop.yml
6
+ - .rubocop-defaults-rails.yml
7
+ - .yoshiki.yml
7
8
 
8
9
  Naming/FileName:
9
10
  Exclude:
@@ -0,0 +1,39 @@
1
+ require:
2
+ - rubocop-rails
3
+
4
+ AllCops:
5
+ Exclude:
6
+ - db/schema.rb
7
+ - lib/generators/**/*
8
+ - lib/templates/**/*
9
+ - vendor/**/*
10
+
11
+ Rails:
12
+ Enabled: true
13
+
14
+ Capybara/SpecificFinders: # new in 2.13
15
+ Enabled: false # prefer find('#css-id')
16
+
17
+ FactoryBot/ConsistentParenthesesStyle: # new in 2.14
18
+ Enabled: true
19
+ EnforcedStyle: omit_parentheses # default is `require_parentheses`
20
+
21
+ Rails/Inquiry: # new in 2.7
22
+ Enabled: false
23
+ Rails/Output:
24
+ Exclude:
25
+ - 'config/unicorn.rb'
26
+ Rails/PluckInWhere: # new in 2.7
27
+ Enabled: true
28
+ EnforcedStyle: aggressive # default is `conservative`
29
+ Rails/ReadWriteAttribute:
30
+ Enabled: false
31
+ Rails/ShortI18n: # new in 2.7
32
+ Enabled: true
33
+ EnforcedStyle: aggressive # default is `conservative`
34
+ Rails/SkipsModelValidations:
35
+ Enabled: false
36
+ Rails/ToFormattedS: # new in 2.15
37
+ Enabled: false # prefer to_s(:format)
38
+ Rails/ToSWithArgument: # new in 2.16
39
+ Enabled: false # prefer to_s(:format)
@@ -1,43 +1,28 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
1
5
  AllCops:
2
6
  DisplayCopNames: true
3
7
  DisplayStyleGuide: true
4
8
  ExtraDetails: true
9
+
5
10
  Exclude:
6
11
  - bin/**/*
7
- - db/schema.rb
8
12
  - Gemfile.lock
9
- - lib/generators/**/*
10
- - lib/templates/**/*
11
- - vendor/**/*
12
-
13
- inherit_from:
14
- - .rubocop-defaults-rails.yml
15
-
16
-
17
- Capybara/SpecificFinders: # new in 2.13
18
- Enabled: false # prefer find('#css-id')
19
-
20
- FactoryBot/ConsistentParenthesesStyle: # new in 2.14
21
- Enabled: true
22
- EnforcedStyle: omit_parentheses # default is `require_parentheses`
23
13
 
24
14
  Layout/AccessModifierIndentation:
25
15
  EnforcedStyle: outdent # default is `indent`
26
-
27
16
  Layout/BeginEndAlignment:
28
17
  EnforcedStyleAlignWith: begin # default is `start_of_line`
29
-
30
18
  Layout/CaseIndentation:
31
19
  EnforcedStyle: end # default is `case`
32
20
  IndentOneStep: true # default is `false`
33
-
34
21
  Layout/CommentIndentation:
35
22
  AllowForAlignment: true # default is `false`
36
-
37
23
  Layout/DefEndAlignment:
38
24
  EnforcedStyleAlignWith: def # default is `start_of_line`
39
25
  AutoCorrect: true
40
-
41
26
  Layout/EmptyLineBetweenDefs:
42
27
  AllowAdjacentOneLineDefs: true
43
28
  DefLikeMacros: # default is `[]`
@@ -49,59 +34,42 @@ Layout/EmptyLineBetweenDefs:
49
34
  - let
50
35
  - let!
51
36
  - subject
52
-
53
37
  Layout/EmptyLinesAroundBlockBody:
54
38
  Exclude: # mostly *no* but yes
55
39
  - spec/**/* # - for rspec context/describe
56
40
  - '**/*.rake' # - rake namespaces
57
-
58
41
  Layout/EmptyLinesAroundClassBody:
59
42
  EnforcedStyle: empty_lines_except_namespace # default is `no_empty_lines`
60
-
61
43
  Layout/EmptyLinesAroundModuleBody:
62
44
  EnforcedStyle: empty_lines_except_namespace # default is `no_empty_lines`
63
-
64
45
  Layout/ExtraSpacing:
65
46
  ForceEqualSignAlignment: true # default is `false`
66
47
  Exclude:
67
48
  - Gemfile
68
-
69
49
  Layout/HashAlignment:
70
50
  EnforcedHashRocketStyle: table # default is `key`
71
51
  EnforcedColonStyle: table # default is `key`
72
-
73
52
  Layout/MultilineOperationIndentation:
74
53
  EnforcedStyle: indented # default is `aligned`
75
-
76
54
  Layout/SpaceInsideArrayLiteralBrackets:
77
55
  EnforcedStyle: space # default is `no_space`
78
56
  EnforcedStyleForEmptyBrackets: no_space
79
-
80
57
  Layout/SpaceInsidePercentLiteralDelimiters:
81
58
  Enabled: false # doesn't support the `space` enforced style
82
-
83
59
  Layout/SpaceInsideStringInterpolation:
84
60
  EnforcedStyle: space # default is `no_space`
85
-
86
- # this cop now allows configuration with `AllowedMethods` & `AllowedPatterns`
87
- Lint/AmbiguousBlockAssociation:
61
+ Lint/AmbiguousBlockAssociation: # this cop allows configuration with `AllowedMethods` & `AllowedPatterns`
88
62
  Enabled: true
89
-
90
63
  Lint/AmbiguousOperator:
91
64
  Enabled: false
92
-
93
65
  Lint/AmbiguousRegexpLiteral:
94
66
  Enabled: false
95
-
96
67
  Lint/AssignmentInCondition:
97
68
  Enabled: false
98
-
99
69
  Lint/RedundantSplatExpansion:
100
70
  Enabled: false
101
71
 
102
- # this cop now allows configuration with AllowedMethods, AllowedPatterns,
103
- # and CountAsOne
104
- Metrics/BlockLength:
72
+ Metrics/BlockLength: # this cop allows configuration with AllowedMethods, AllowedPatterns, & CountAsOne
105
73
  AllowedMethods:
106
74
  - describe
107
75
  - context
@@ -109,26 +77,19 @@ Metrics/BlockLength:
109
77
  - array
110
78
  - heredoc
111
79
  - method_call
112
-
113
- # this cop now allows configuration with AllowedMethods, AllowedPatterns,
114
- # and CountAsOne
115
- Metrics/MethodLength:
80
+ Metrics/MethodLength: # this cop allows configuration with AllowedMethods, AllowedPatterns, & CountAsOne
116
81
  Exclude:
117
82
  - db/migrate/**/*
118
-
119
83
  Metrics/ParameterLists:
120
84
  CountKeywordArgs: false
121
85
 
122
86
  Naming/AsciiIdentifiers:
123
87
  Enabled: false
124
-
125
88
  Naming/BlockForwarding: # new in 1.24
126
89
  Enabled: true
127
90
  EnforcedStyle: explicit # default is `anonymous`
128
-
129
91
  Naming/InclusiveLanguage:
130
92
  Enabled: false
131
-
132
93
  Naming/PredicateName:
133
94
  NamePrefix:
134
95
  - is_
@@ -140,33 +101,6 @@ Naming/PredicateName:
140
101
  AllowedMethods:
141
102
  - is_a?
142
103
 
143
- Rails/Inquiry: # new in 2.7
144
- Enabled: false
145
-
146
- Rails/Output:
147
- Exclude:
148
- - 'config/unicorn.rb'
149
-
150
- Rails/PluckInWhere: # new in 2.7
151
- Enabled: true
152
- EnforcedStyle: aggressive # default is `conservative`
153
-
154
- Rails/ReadWriteAttribute:
155
- Enabled: false
156
-
157
- Rails/ShortI18n: # new in 2.7
158
- Enabled: true
159
- EnforcedStyle: aggressive # default is `conservative`
160
-
161
- Rails/SkipsModelValidations:
162
- Enabled: false
163
-
164
- Rails/ToFormattedS: # new in 2.15
165
- Enabled: false # prefer to_s(:format)
166
-
167
- Rails/ToSWithArgument: # new in 2.16
168
- Enabled: false # prefer to_s(:format)
169
-
170
104
  RSpec/ContextWording:
171
105
  Prefixes:
172
106
  - as a
@@ -176,75 +110,54 @@ RSpec/ContextWording:
176
110
  - when
177
111
  - with
178
112
  - without
179
-
180
113
  RSpec/ImplicitExpect:
181
114
  EnforcedStyle: should
182
-
183
115
  RSpec/ImplicitSubject:
184
116
  EnforcedStyle: single_statement_only # default is `single_line_only`
185
-
186
117
  RSpec/LeadingSubject:
187
118
  Enabled: false # prefer subject after all let and let!
188
-
189
- # this cop can be configured with `AllowedGroups`
190
- RSpec/NestedGroups:
119
+ RSpec/NestedGroups: # this cop can be configured with `AllowedGroups`
191
120
  Enabled: false
192
-
193
121
  RSpec/PendingWithoutReason: # new in 2.16
194
122
  Enabled: false
195
123
 
196
124
  Style/AndOr:
197
125
  Enabled: false
198
-
199
126
  Style/AsciiComments:
200
127
  Enabled: false
201
-
202
128
  Style/BarePercentLiterals:
203
129
  EnforcedStyle: percent_q # default is `bare_percent`
204
-
205
130
  Style/CommandLiteral:
206
131
  EnforcedStyle: mixed # default is `backticks`
207
-
208
132
  Style/Documentation: # default config doesn't exclude migrations
209
133
  Exclude:
210
134
  - 'db/migrate/**/*'
211
135
  - 'spec/**/*'
212
136
  - 'test/**/*'
213
-
214
137
  Style/DoubleNegation:
215
138
  Enabled: false
216
-
217
139
  Style/EndlessMethod: # new in 1.8
218
140
  Enabled: true
219
141
  EnforcedStyle: disallow # default is `allow_single_line`
220
-
221
142
  Style/HashSyntax:
222
143
  EnforcedShorthandSyntax: consistent # default is `always`
223
-
224
144
  Style/MethodDefParentheses:
225
145
  EnforcedStyle: require_no_parentheses
226
-
227
146
  Style/MixinUsage:
228
147
  Exclude:
229
148
  - .pryrc
230
-
231
149
  Style/MultilineIfModifier:
232
150
  Enabled: false
233
-
234
151
  Style/Not:
235
152
  Enabled: false
236
-
237
153
  Style/NumberedParameters: # new in 1.22
238
154
  Enabled: true
239
155
  EnforcedStyle: disallow # default is `allow_single_line`
240
-
241
156
  Style/NumberedParametersLimit:
242
157
  Enabled: true
243
158
  Max: 0 # default is `1`
244
-
245
159
  Style/OptionHash:
246
160
  Enabled: true # default is `false`
247
-
248
161
  Style/PercentLiteralDelimiters:
249
162
  PreferredDelimiters: # prefer methods that make arrays to use square brackets
250
163
  '%': '[]'
@@ -256,24 +169,18 @@ Style/PercentLiteralDelimiters:
256
169
  '%w': '[]'
257
170
  '%W': '[]'
258
171
  '%x': '[]'
259
-
260
172
  Style/PerlBackrefs:
261
173
  Enabled: false
262
-
263
174
  Style/RescueModifier:
264
175
  Enabled: false
265
-
266
176
  Style/Semicolon:
267
177
  AllowAsExpressionSeparator: true # default is `false`
268
-
269
178
  Style/SingleLineBlockParams:
270
179
  Methods:
271
180
  - inject:
272
181
  - a # all / accumulator
273
182
  - t # this
274
-
275
183
  Style/SymbolArray:
276
184
  MinSize: 3 # default is `2`
277
-
278
185
  Style/TrailingUnderscoreVariable:
279
186
  AllowNamedUnderscoreVariables: false # defaults to `true`
data/.yoshiki.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ DisplayCopNames: true
3
+ DisplayStyleGuide: true
4
+ ExtraDetails: true
5
+
6
+ inherit_from:
7
+ - .yoshiki_ruby
8
+ - .yoshiki_rails
9
+
10
+ inherit_mode:
11
+ merge:
12
+ - Exclude
13
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yoshiki (8.0.0.pre.1)
4
+ yoshiki (8.0.0.pre.3)
5
5
  activesupport (>= 6.0.0)
6
6
  rubocop (= 1.56.3)
7
7
  rubocop-rails (= 2.21.1)
data/README.md CHANGED
@@ -1,11 +1,8 @@
1
- Yōshiki (様式)
2
- =============
1
+ ## Yōshiki (様式)
3
2
 
4
- Dev Fu! Style
5
- -------------
3
+ # Dev Fu! Style
6
4
 
7
- [![rubygems][gem-image]][gem]
8
- [![build status][ci-image]][ci]
5
+ [![rubygems][gem-image]][gem] [![build status][ci-image]][ci]
9
6
 
10
7
  Because ruby code should be:
11
8
 
@@ -20,18 +17,30 @@ Make it so.
20
17
 
21
18
  ## Usage
22
19
 
23
- `$ gem install yoshiki`
24
-
25
- or in your gemfile
20
+ In your gemfile
26
21
 
27
22
  `gem 'yoshiki'`
28
23
 
29
24
 
30
- In your `.rubocop.yml`
25
+ In `.rubocop.yml`
26
+
27
+ ```
28
+ inherit_gem:
29
+ yoshiki: .yoshiki.yml
30
+ ```
31
+
32
+ to include just ruby
33
+
34
+ ```
35
+ inherit_gem:
36
+ yoshiki: .yoshiki-ruby.yml
37
+ ```
38
+
39
+ or, to include just rails
31
40
 
32
41
  ```
33
42
  inherit_gem:
34
- yoshiki: .devfu-rubocop.yml
43
+ yoshiki: .yoshiki-rails.yml
35
44
  ```
36
45
 
37
46
  ## Ruby support
@@ -40,6 +49,7 @@ inherit_gem:
40
49
  - ruby 2.4, use [=> 4.0][4.0]
41
50
  - ruby 2.5, use [=> 4.3][4.3]
42
51
  - ruby 2.6, use [=> 6.0][6.0]
52
+ - ruby 2.7+, use [=> 7.0][7.0]
43
53
 
44
54
  <!-- links -->
45
55
  [ci]: https://gitlab.com/devfu/yoshiki/pipelines?scope=branches "build history"
@@ -48,6 +58,7 @@ inherit_gem:
48
58
  [4.0]: https://gitlab.com/devfu/yoshiki/tags/v4.0.0
49
59
  [4.3]: https://gitlab.com/devfu/yoshiki/tags/v4.3.0
50
60
  [6.0]: https://gitlab.com/devfu/yoshiki/tags/v6.0.0
61
+ [7.0]: https://gitlab.com/devfu/yoshiki/tags/v7.0.0
51
62
 
52
63
  <!-- images -->
53
64
  [ci-image]: https://gitlab.com/devfu/yoshiki/badges/master/pipeline.svg
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yoshiki
4
4
 
5
- VERSION = '8.0.0-1'
5
+ VERSION = '8.0.0-3'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yoshiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0.pre.1
4
+ version: 8.0.0.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BM5k
@@ -87,7 +87,6 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".devfu-rubocop.yml"
91
90
  - ".git-blame-ignore-revs"
92
91
  - ".gitignore"
93
92
  - ".gitlab-ci.yml"
@@ -95,6 +94,9 @@ files:
95
94
  - ".rubocop-defaults-rails.yml"
96
95
  - ".rubocop-defaults.yml"
97
96
  - ".rubocop.yml"
97
+ - ".yoshiki-rails.yml"
98
+ - ".yoshiki-ruby.yml"
99
+ - ".yoshiki.yml"
98
100
  - Dockerfile
99
101
  - Gemfile
100
102
  - Gemfile.lock