yoshiki 9.0.0.pre.1 → 9.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: bc0386cead52524a740a6c00fa221f50de4e46ed129fad9762795d487a6a252c
4
- data.tar.gz: c8aba054feb43c59cd449d6c3bf08581992365baa07c5685411763d0de664920
3
+ metadata.gz: 700dac07edfbcd20f2a1aa4e9b9d861c82ae51f5904cfe3a04782f95a7438cce
4
+ data.tar.gz: c11cda978ac3c1c719c5f8f74a9b438778f2ce381fd2675cae653e5c27d018db
5
5
  SHA512:
6
- metadata.gz: 26009eb4c0574a765a2bf52d759acd138db916a1e02a5baab7593c83b760b3844c20ac113e104ca2d5d60a5e7c59acb57520877bc5d58d2b80af1769a247a04b
7
- data.tar.gz: bf079dd8bde99d32d184a832feaadfcf7b8934d22e591f749c15ac96a2cea0c44b0116679ec344686e9dec12bd4202123608d26e1567c9bf17bfa20ad1ae6d6b
6
+ metadata.gz: c158e1da50bae9b454bfae823ae68320dea1b11bc8fdfc851a16950aac735b677482943ac1e90ad9b6b94f75aa0cf2a94e85586d34bfb3c29ca94c09897bc9b1
7
+ data.tar.gz: fc6f07f578af3cfe03262852fa9da0c7c3da6ab96026f0ebbec093c6e087656831c9f33a794dba7ae251cc9489237e0089c69a6ab311bdea773993e7367ed725
data/.gitlab-ci.yml CHANGED
@@ -7,6 +7,16 @@ before_script:
7
7
  - gem update bundler
8
8
  - bundle install --clean --jobs $(nproc) --retry=3
9
9
 
10
+ ruby 3.3:
11
+ cache:
12
+ key: "$CI_BUILD_REF_NAME-3.3"
13
+ paths:
14
+ - vendor/bundle
15
+ image: ruby:3.3-alpine
16
+ script:
17
+ - bundle exec rake spec rubocop
18
+ stage: test
19
+
10
20
  ruby 3.2:
11
21
  cache:
12
22
  key: "$CI_BUILD_REF_NAME-3.2"
@@ -1,4 +1,7 @@
1
1
  require:
2
+ - rubocop-capybara
3
+ - rubocop-factory_bot
4
+ - rubocop-performance
2
5
  - rubocop-rake
3
6
  - rubocop-rspec
4
7
 
@@ -6,6 +9,8 @@ Capybara/MatchStyle: # new in 2.17
6
9
  Enabled: true
7
10
  Capybara/NegationMatcher: # new in 2.14
8
11
  Enabled: true
12
+ Capybara/RedundantWithinFind: # new in 2.20
13
+ Enabled: true
9
14
  Capybara/SpecificActions: # new in 2.14
10
15
  Enabled: true
11
16
  Capybara/SpecificMatcher: # new in 2.12
@@ -16,6 +21,8 @@ Capybara/RSpec/HaveSelector: # new in 2.19
16
21
 
17
22
  FactoryBot/AssociationStyle: # new in 2.23
18
23
  Enabled: true
24
+ FactoryBot/ExcessiveCreateList: # new in 2.25
25
+ Enabled: true
19
26
  FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
20
27
  Enabled: true
21
28
  FactoryBot/FactoryClassName: # new in 1.37
@@ -117,6 +124,43 @@ Lint/UselessRuby2Keywords: # new in 1.23
117
124
  Metrics/CollectionLiteralLength: # new in 1.47
118
125
  Enabled: true
119
126
 
127
+ Performance/AncestorsInclude: # new in 1.7
128
+ Enabled: true
129
+ Performance/BlockGivenWithExplicitBlock: # new in 1.9
130
+ Enabled: true
131
+ Performance/CollectionLiteralInLoop: # new in 1.8
132
+ Enabled: true
133
+ Performance/ConcurrentMonotonicTime: # new in 1.12
134
+ Enabled: true
135
+ Performance/ConstantRegexp: # new in 1.9
136
+ Enabled: true
137
+ Performance/MapCompact: # new in 1.11
138
+ Enabled: true
139
+ Performance/MapMethodChain: # new in 1.19
140
+ Enabled: true
141
+ Performance/MethodObjectAsBlock: # new in 1.9
142
+ Enabled: true
143
+ Performance/RedundantEqualityComparisonBlock: # new in 1.10
144
+ Enabled: true
145
+ Performance/RedundantSortBlock: # new in 1.7
146
+ Enabled: true
147
+ Performance/RedundantSplitRegexpArgument: # new in 1.10
148
+ Enabled: true
149
+ Performance/RedundantStringChars: # new in 1.7
150
+ Enabled: true
151
+ Performance/ReverseFirst: # new in 1.7
152
+ Enabled: true
153
+ Performance/SortReverse: # new in 1.7
154
+ Enabled: true
155
+ Performance/Squeeze: # new in 1.7
156
+ Enabled: true
157
+ Performance/StringIdentifierArgument: # new in 1.13
158
+ Enabled: true
159
+ Performance/StringInclude: # new in 1.7
160
+ Enabled: true
161
+ Performance/Sum: # new in 1.8
162
+ Enabled: true
163
+
120
164
  RSpec/BeEmpty: # new in 2.20
121
165
  Enabled: true
122
166
  RSpec/BeEq: # new in 2.9.0
@@ -151,6 +195,10 @@ RSpec/ReceiveMessages: # new in 2.23
151
195
  Enabled: true
152
196
  RSpec/RedundantAround: # new in 2.19
153
197
  Enabled: true
198
+ RSpec/RedundantPredicateMatcher: # new in 2.26
199
+ Enabled: true
200
+ RSpec/RemoveConst: # new in 2.26
201
+ Enabled: true
154
202
  RSpec/SkipBlockInsideExample: # new in 2.19
155
203
  Enabled: true
156
204
  RSpec/SortMetadata: # new in 2.14
data/.rubocop.yml CHANGED
@@ -1,12 +1,8 @@
1
1
  AllCops:
2
- TargetRubyVersion: 3.0
2
+ TargetRubyVersion: 3.3
3
3
 
4
4
  inherit_from:
5
- - .rubocop-defaults.yml
6
- - .rubocop-defaults-rails.yml
7
5
  - .yoshiki.yml
8
6
 
9
- Naming/FileName:
10
- Exclude:
11
- - lib/yoshiki.rb
12
- - spec/yoshiki_spec.rb
7
+ Gemspec/RequiredRubyVersion:
8
+ Enabled: false
data/.yoshiki-rails.yml CHANGED
@@ -8,8 +8,8 @@ AllCops:
8
8
  - lib/templates/**/*
9
9
  - vendor/**/*
10
10
 
11
- Rails:
12
- Enabled: true
11
+ inherit_from:
12
+ - .rubocop-defaults-rails.yml
13
13
 
14
14
  Capybara/ClickLinkOrButtonStyle: # new in 2.19
15
15
  Enabled: true
@@ -26,6 +26,11 @@ FactoryBot/ConsistentParenthesesStyle: # new in 2.14
26
26
  Enabled: true
27
27
  EnforcedStyle: omit_parentheses # default is `require_parentheses`
28
28
 
29
+ Metrics/BlockLength:
30
+ Exclude:
31
+ - config/application.rb
32
+ - config/environments/**/*.rb
33
+
29
34
  Rails/Inquiry: # new in 2.7
30
35
  Enabled: false
31
36
  Rails/Output:
@@ -48,9 +53,16 @@ Rails/ToSWithArgument: # new in 2.16
48
53
 
49
54
  Style/Documentation: # this isn't a rails cop, but this config only makes sense for rails projects
50
55
  Exclude: # default config doesn't exclude migrations
56
+ - app/controllers/application_controller.rb
51
57
  - app/helpers/application_helper.rb
58
+ - app/jobs/application_job.rb
59
+ - app/mailers/application_mailer.rb
52
60
  - app/models/application_record.rb
53
61
  - config/application.rb
54
62
  - db/migrate/**/*
63
+ - lib/application_responder.rb
55
64
  - spec/**/*
56
65
  - test/**/*
66
+ Style/EmptyMethod:
67
+ Exclude:
68
+ - app/controllers/**/*_controller.rb
data/.yoshiki-ruby.yml CHANGED
@@ -11,6 +11,9 @@ AllCops:
11
11
  - bin/**/*
12
12
  - Gemfile.lock
13
13
 
14
+ inherit_from:
15
+ - .rubocop-defaults.yml
16
+
14
17
  Layout/AccessModifierIndentation:
15
18
  EnforcedStyle: outdent # default is `indent`
16
19
  Layout/BeginEndAlignment:
@@ -102,6 +105,17 @@ Naming/PredicateName:
102
105
  AllowedMethods:
103
106
  - is_a?
104
107
 
108
+ Performance/ChainArrayAllocation:
109
+ Enabled: true
110
+ Performance/BigDecimalWithNumericArgument: # new in 1.7
111
+ Enabled: false # this cop can actually reduce performance: https://github.com/rubocop/rubocop-performance/issues/329#issuecomment-1451511402
112
+ Performance/CaseWhenSplat:
113
+ Enabled: true
114
+ AutoCorrect: true
115
+ SafeAutoCorrect: true
116
+ Performance/SelectMap:
117
+ Enabled: true
118
+
105
119
  RSpec/ContextWording:
106
120
  Prefixes:
107
121
  - as a
@@ -115,14 +129,21 @@ RSpec/ImplicitExpect:
115
129
  EnforcedStyle: should
116
130
  RSpec/ImplicitSubject:
117
131
  EnforcedStyle: single_statement_only # default is `single_line_only`
132
+ Exclude:
133
+ - spec/system/**/*.rb # allow implicit subject in system specs
118
134
  RSpec/LeadingSubject:
119
135
  Enabled: false # prefer subject after all let and let!
120
136
  RSpec/NestedGroups: # this cop can be configured with `AllowedGroups`
121
137
  Enabled: false
122
138
  RSpec/PendingWithoutReason: # new in 2.16
123
139
  Enabled: false
140
+ RSpec/NoExpectationExample:
141
+ Exclude:
142
+ - spec/models/factory_spec.rb
124
143
  RSpec/NotToNot:
125
144
  EnforcedStyle: to_not # default is not_to; prefer common prefix
145
+ RSpec/MultipleExpectations:
146
+ Enabled: false # recommend using `aggregate_failures`
126
147
  RSpec/SubjectStub: # allow stubbing subject
127
148
  Enabled: false # should only be used for methods *not* under test
128
149
 
@@ -139,6 +160,8 @@ Style/DoubleNegation:
139
160
  Style/EndlessMethod: # new in 1.8
140
161
  Enabled: true
141
162
  EnforcedStyle: disallow # default is `allow_single_line`
163
+ Style/FrozenStringLiteralComment:
164
+ SafeAutoCorrect: true # default is `false`
142
165
  Style/HashSyntax:
143
166
  EnforcedShorthandSyntax: consistent # default is `always`
144
167
  Style/MethodDefParentheses:
data/Gemfile.lock CHANGED
@@ -1,47 +1,58 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yoshiki (9.0.0.pre.1)
5
- rubocop (= 1.56.4)
6
- rubocop-capybara (= 2.19.0)
7
- rubocop-factory_bot (= 2.24.0)
8
- rubocop-rails (= 2.22.2)
9
- rubocop-rake (= 0.6.0)
10
- rubocop-rspec (= 2.25.0)
4
+ yoshiki (9.0.0.pre.2)
5
+ rubocop (>= 1.56.4)
6
+ rubocop-capybara (>= 2.19.0)
7
+ rubocop-factory_bot (>= 2.24.0)
8
+ rubocop-performance (>= 1.20.2)
9
+ rubocop-rails (>= 2.22.2)
10
+ rubocop-rake (>= 0.6.0)
11
+ rubocop-rspec (>= 2.25.0)
11
12
 
12
13
  GEM
13
14
  remote: https://rubygems.org/
14
15
  specs:
15
- activesupport (7.0.8)
16
+ activesupport (7.1.3)
17
+ base64
18
+ bigdecimal
16
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
+ connection_pool (>= 2.2.5)
21
+ drb
17
22
  i18n (>= 1.6, < 2)
18
23
  minitest (>= 5.1)
24
+ mutex_m
19
25
  tzinfo (~> 2.0)
20
26
  ast (2.4.2)
21
- base64 (0.1.1)
27
+ base64 (0.2.0)
28
+ bigdecimal (3.1.6)
22
29
  coderay (1.1.3)
23
- concurrent-ruby (1.2.2)
30
+ concurrent-ruby (1.2.3)
31
+ connection_pool (2.4.1)
24
32
  diff-lcs (1.5.0)
33
+ drb (2.2.0)
34
+ ruby2_keywords
25
35
  i18n (1.14.1)
26
36
  concurrent-ruby (~> 1.0)
27
- json (2.6.3)
37
+ json (2.7.1)
28
38
  language_server-protocol (3.17.0.3)
29
39
  method_source (1.0.0)
30
- minitest (5.20.0)
31
- parallel (1.23.0)
32
- parser (3.2.2.3)
40
+ minitest (5.21.2)
41
+ mutex_m (0.2.0)
42
+ parallel (1.24.0)
43
+ parser (3.3.0.5)
33
44
  ast (~> 2.4.1)
34
45
  racc
35
46
  pry (0.14.2)
36
47
  coderay (~> 1.1)
37
48
  method_source (~> 1.0)
38
- psych (5.1.0)
49
+ psych (5.1.2)
39
50
  stringio
40
- racc (1.7.1)
51
+ racc (1.7.3)
41
52
  rack (3.0.8)
42
53
  rainbow (3.1.1)
43
- rake (13.0.6)
44
- regexp_parser (2.8.1)
54
+ rake (13.1.0)
55
+ regexp_parser (2.9.0)
45
56
  rexml (3.2.6)
46
57
  rspec (3.12.0)
47
58
  rspec-core (~> 3.12.0)
@@ -56,40 +67,43 @@ GEM
56
67
  diff-lcs (>= 1.2.0, < 2.0)
57
68
  rspec-support (~> 3.12.0)
58
69
  rspec-support (3.12.1)
59
- rubocop (1.56.4)
60
- base64 (~> 0.1.1)
70
+ rubocop (1.60.1)
61
71
  json (~> 2.3)
62
72
  language_server-protocol (>= 3.17.0)
63
73
  parallel (~> 1.10)
64
- parser (>= 3.2.2.3)
74
+ parser (>= 3.3.0.2)
65
75
  rainbow (>= 2.2.2, < 4.0)
66
76
  regexp_parser (>= 1.8, < 3.0)
67
77
  rexml (>= 3.2.5, < 4.0)
68
- rubocop-ast (>= 1.28.1, < 2.0)
78
+ rubocop-ast (>= 1.30.0, < 2.0)
69
79
  ruby-progressbar (~> 1.7)
70
80
  unicode-display_width (>= 2.4.0, < 3.0)
71
81
  rubocop-ast (1.30.0)
72
82
  parser (>= 3.2.1.0)
73
- rubocop-capybara (2.19.0)
83
+ rubocop-capybara (2.20.0)
84
+ rubocop (~> 1.41)
85
+ rubocop-factory_bot (2.25.1)
74
86
  rubocop (~> 1.41)
75
- rubocop-factory_bot (2.24.0)
76
- rubocop (~> 1.33)
77
- rubocop-rails (2.22.2)
87
+ rubocop-performance (1.20.2)
88
+ rubocop (>= 1.48.1, < 2.0)
89
+ rubocop-ast (>= 1.30.0, < 2.0)
90
+ rubocop-rails (2.23.1)
78
91
  activesupport (>= 4.2.0)
79
92
  rack (>= 1.1)
80
93
  rubocop (>= 1.33.0, < 2.0)
81
94
  rubocop-ast (>= 1.30.0, < 2.0)
82
95
  rubocop-rake (0.6.0)
83
96
  rubocop (~> 1.0)
84
- rubocop-rspec (2.25.0)
97
+ rubocop-rspec (2.26.1)
85
98
  rubocop (~> 1.40)
86
99
  rubocop-capybara (~> 2.17)
87
100
  rubocop-factory_bot (~> 2.22)
88
101
  ruby-progressbar (1.13.0)
89
- stringio (3.0.8)
102
+ ruby2_keywords (0.0.5)
103
+ stringio (3.1.0)
90
104
  tzinfo (2.0.6)
91
105
  concurrent-ruby (~> 1.0)
92
- unicode-display_width (2.4.2)
106
+ unicode-display_width (2.5.0)
93
107
 
94
108
  PLATFORMS
95
109
  ruby
@@ -102,4 +116,4 @@ DEPENDENCIES
102
116
  yoshiki!
103
117
 
104
118
  BUNDLED WITH
105
- 2.4.22
119
+ 2.5.5
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yoshiki
4
4
 
5
- VERSION = '9.0.0-1'
5
+ VERSION = '9.0.0-3'
6
6
 
7
7
  end
data/yoshiki.gemspec CHANGED
@@ -22,10 +22,11 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.required_ruby_version = '>= 3.0.0'
24
24
 
25
- spec.add_dependency 'rubocop', '1.56.4'
26
- spec.add_dependency 'rubocop-capybara', '2.19.0'
27
- spec.add_dependency 'rubocop-factory_bot', '2.24.0'
28
- spec.add_dependency 'rubocop-rails', '2.22.2'
29
- spec.add_dependency 'rubocop-rake', '0.6.0'
30
- spec.add_dependency 'rubocop-rspec', '2.25.0'
25
+ spec.add_dependency 'rubocop', '>= 1.56.4'
26
+ spec.add_dependency 'rubocop-capybara', '>= 2.19.0'
27
+ spec.add_dependency 'rubocop-factory_bot', '>= 2.24.0'
28
+ spec.add_dependency 'rubocop-performance', '>= 1.20.2'
29
+ spec.add_dependency 'rubocop-rails', '>= 2.22.2'
30
+ spec.add_dependency 'rubocop-rake', '>= 0.6.0'
31
+ spec.add_dependency 'rubocop-rspec', '>= 2.25.0'
31
32
  end
metadata CHANGED
@@ -1,97 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yoshiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.0.pre.1
4
+ version: 9.0.0.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BM5k
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-14 00:00:00.000000000 Z
11
+ date: 2024-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.56.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.56.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-capybara
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.19.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.19.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-factory_bot
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 2.24.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 2.24.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-performance
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 1.20.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 1.20.2
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rubocop-rails
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - '='
73
+ - - ">="
60
74
  - !ruby/object:Gem::Version
61
75
  version: 2.22.2
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - '='
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
82
  version: 2.22.2
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rubocop-rake
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - '='
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
89
  version: 0.6.0
76
90
  type: :runtime
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - '='
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
96
  version: 0.6.0
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rubocop-rspec
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - '='
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
103
  version: 2.25.0
90
104
  type: :runtime
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - '='
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: 2.25.0
97
111
  description: Dev Fu! Style for rubocop.
@@ -138,11 +152,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
152
  version: 3.0.0
139
153
  required_rubygems_version: !ruby/object:Gem::Requirement
140
154
  requirements:
141
- - - ">"
155
+ - - ">="
142
156
  - !ruby/object:Gem::Version
143
- version: 1.3.1
157
+ version: '0'
144
158
  requirements: []
145
- rubygems_version: 3.4.10
159
+ rubygems_version: 3.5.5
146
160
  signing_key:
147
161
  specification_version: 4
148
162
  summary: Dev Fu! Style