yoshiki 9.0.0.pre.1 → 9.0.0.pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc0386cead52524a740a6c00fa221f50de4e46ed129fad9762795d487a6a252c
4
- data.tar.gz: c8aba054feb43c59cd449d6c3bf08581992365baa07c5685411763d0de664920
3
+ metadata.gz: 238a39575bd073ca95cdaa54ce97affac2d5d57b9763d25cddabefb93f312235
4
+ data.tar.gz: 487696c57ffc297c083b55343daccccbf976c49901a94f75b4da87b9f7049947
5
5
  SHA512:
6
- metadata.gz: 26009eb4c0574a765a2bf52d759acd138db916a1e02a5baab7593c83b760b3844c20ac113e104ca2d5d60a5e7c59acb57520877bc5d58d2b80af1769a247a04b
7
- data.tar.gz: bf079dd8bde99d32d184a832feaadfcf7b8934d22e591f749c15ac96a2cea0c44b0116679ec344686e9dec12bd4202123608d26e1567c9bf17bfa20ad1ae6d6b
6
+ metadata.gz: ed0fc7a3cecfca13a9d5ccd1697abd4edb5e82889a4a2b68e3285ae8cd7a4e4563c6994c1b2431e7899e083cbcb3fbd158abc61d771d83631efa479d7430ba0a
7
+ data.tar.gz: 04ae7dc9a3d18bae3de6ae33c4614c71874b961c43bef6c8db041afc73460fdb68edd76e33c573b8cd2802f3bc17d46b54161ca00bdd75b6d97aa71d0c75464e
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,45 @@ 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/BigDecimalWithNumericArgument: # new in 1.7
130
+ Enabled: true
131
+ Performance/BlockGivenWithExplicitBlock: # new in 1.9
132
+ Enabled: true
133
+ Performance/CollectionLiteralInLoop: # new in 1.8
134
+ Enabled: true
135
+ Performance/ConcurrentMonotonicTime: # new in 1.12
136
+ Enabled: true
137
+ Performance/ConstantRegexp: # new in 1.9
138
+ Enabled: true
139
+ Performance/MapCompact: # new in 1.11
140
+ Enabled: true
141
+ Performance/MapMethodChain: # new in 1.19
142
+ Enabled: true
143
+ Performance/MethodObjectAsBlock: # new in 1.9
144
+ Enabled: true
145
+ Performance/RedundantEqualityComparisonBlock: # new in 1.10
146
+ Enabled: true
147
+ Performance/RedundantSortBlock: # new in 1.7
148
+ Enabled: true
149
+ Performance/RedundantSplitRegexpArgument: # new in 1.10
150
+ Enabled: true
151
+ Performance/RedundantStringChars: # new in 1.7
152
+ Enabled: true
153
+ Performance/ReverseFirst: # new in 1.7
154
+ Enabled: true
155
+ Performance/SortReverse: # new in 1.7
156
+ Enabled: true
157
+ Performance/Squeeze: # new in 1.7
158
+ Enabled: true
159
+ Performance/StringIdentifierArgument: # new in 1.13
160
+ Enabled: true
161
+ Performance/StringInclude: # new in 1.7
162
+ Enabled: true
163
+ Performance/Sum: # new in 1.8
164
+ Enabled: true
165
+
120
166
  RSpec/BeEmpty: # new in 2.20
121
167
  Enabled: true
122
168
  RSpec/BeEq: # new in 2.9.0
@@ -151,6 +197,10 @@ RSpec/ReceiveMessages: # new in 2.23
151
197
  Enabled: true
152
198
  RSpec/RedundantAround: # new in 2.19
153
199
  Enabled: true
200
+ RSpec/RedundantPredicateMatcher: # new in 2.26
201
+ Enabled: true
202
+ RSpec/RemoveConst: # new in 2.26
203
+ Enabled: true
154
204
  RSpec/SkipBlockInsideExample: # new in 2.19
155
205
  Enabled: true
156
206
  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
@@ -48,7 +48,10 @@ Rails/ToSWithArgument: # new in 2.16
48
48
 
49
49
  Style/Documentation: # this isn't a rails cop, but this config only makes sense for rails projects
50
50
  Exclude: # default config doesn't exclude migrations
51
+ - app/controllers/application_controller.rb
51
52
  - app/helpers/application_helper.rb
53
+ - app/jobs/application_job.rb
54
+ - app/mailers/application_mailer.rb
52
55
  - app/models/application_record.rb
53
56
  - config/application.rb
54
57
  - db/migrate/**/*
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:
@@ -121,8 +124,13 @@ RSpec/NestedGroups: # this cop can be configured with `AllowedGroups`
121
124
  Enabled: false
122
125
  RSpec/PendingWithoutReason: # new in 2.16
123
126
  Enabled: false
127
+ RSpec/NoExpectationExample:
128
+ Exclude:
129
+ - spec/models/factory_spec.rb
124
130
  RSpec/NotToNot:
125
131
  EnforcedStyle: to_not # default is not_to; prefer common prefix
132
+ RSpec/MultipleExpectations:
133
+ Enabled: false # recommend using `aggregate_failures`
126
134
  RSpec/SubjectStub: # allow stubbing subject
127
135
  Enabled: false # should only be used for methods *not* under test
128
136
 
@@ -139,6 +147,8 @@ Style/DoubleNegation:
139
147
  Style/EndlessMethod: # new in 1.8
140
148
  Enabled: true
141
149
  EnforcedStyle: disallow # default is `allow_single_line`
150
+ Style/FrozenStringLiteralComment:
151
+ SafeAutoCorrect: true # default is `false`
142
152
  Style/HashSyntax:
143
153
  EnforcedShorthandSyntax: consistent # default is `always`
144
154
  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-2'
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.2
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-23 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