rubocop_fonsan_style 0.1.8 → 0.2.0

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: f41c4d10a6890a77dfb6498b0656b57d6dab8efaee3a84d75b50c2b25fe3ece5
4
- data.tar.gz: b1d6680571a0b890bbfdd5883b37b335377ece25b44a4421e9ab7e2d6cb6bb7e
3
+ metadata.gz: 656a6807fd284fad1f3bf2d2263051158b95f2166a666af222d00e1afac4d8c2
4
+ data.tar.gz: 0eb868c7fdfe48961154ebcd4e0f27ce16137d32e5d8fc9d904808037e9d0a8e
5
5
  SHA512:
6
- metadata.gz: 5354dfe1765f7d3fade49b7198d750e2ce47897fe9724db258f761f5223c65970b4c134ada88d5547470e9c6e6b9c9160c78e44a01a275deb391d49601f5f665
7
- data.tar.gz: e2e6265706d6c21052d79e409b437d919d619fa6f26184243c53cfbfd48b5e4d71ce22a6908475fffbedc353600b894a01da015a647fdc989d7924b87cc22e2e
6
+ metadata.gz: ff64b724048f40130c04bde656c39616d445b694cb973e2454c2db68bd893ab360073ca0ad8783e4af140de45a2e8751011ca6e08958ff00b4ecb7c86a1cf202
7
+ data.tar.gz: 06da7a4f74355eb263dcfdedf60501296d074b719475073d82f813b9d0b5422896fa0b4d0146c10e500bb0c3f824b14d21c453918eadc2c7ca607fb76dba2d4a
data/.rubocop.default.yml CHANGED
@@ -1,9 +1,9 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-performance
3
3
  - rubocop-rubycw
4
4
  AllCops:
5
5
  SuggestExtensions: false
6
- TargetRubyVersion: 3.0.0
6
+ UseProjectIndex: true
7
7
 
8
8
  Gemspec/AddRuntimeDependency: # new in 1.65
9
9
  Enabled: true
@@ -496,4 +496,108 @@ Style/CombinableDefined: # new in 1.68
496
496
  Style/KeywordArgumentsMerging: # new in 1.68
497
497
  Enabled: true
498
498
  Style/SafeNavigationChainLength: # new in 1.68
499
- Enabled: true
499
+ Enabled: true
500
+ Gemspec/AttributeAssignment: # new in 1.77
501
+ Enabled: true
502
+ Layout/EmptyLinesAfterModuleInclusion: # new in 1.79
503
+ Enabled: false
504
+ Lint/ArgumentMismatch: # new in 1.90
505
+ Enabled: true
506
+ Lint/ArrayLiteralInRegexp: # new in 1.71
507
+ Enabled: true
508
+ Lint/ConstantReassignment: # new in 1.70
509
+ Enabled: true
510
+ Lint/DataDefineOverride: # new in 1.85
511
+ Enabled: true
512
+ Lint/DeprecatedReference: # new in 1.89
513
+ Enabled: true
514
+ Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
515
+ Enabled: true
516
+ Lint/MisplacedMagicComment: # new in 1.91
517
+ Enabled: true
518
+ Lint/NameTypo: # new in 1.89
519
+ Enabled: true
520
+ Lint/NumericOperationWithConstantResult: # new in 1.69
521
+ Enabled: true
522
+ Lint/RedundantTypeConversion: # new in 1.72
523
+ Enabled: true
524
+ Lint/SharedMutableDefault: # new in 1.70
525
+ Enabled: true
526
+ Lint/SuperArgumentMismatch: # new in 1.90
527
+ Enabled: true
528
+ Lint/SuppressedExceptionInNumberConversion: # new in 1.72
529
+ Enabled: true
530
+ Lint/UnreachablePatternBranch: # new in 1.85
531
+ Enabled: true
532
+ Lint/UselessConstantScoping: # new in 1.72
533
+ Enabled: true
534
+ Lint/UselessDefaultValueArgument: # new in 1.76
535
+ Enabled: true
536
+ Lint/UselessDefined: # new in 1.69
537
+ Enabled: true
538
+ Lint/UselessOr: # new in 1.76
539
+ Enabled: true
540
+ Naming/PredicateMethod: # new in 1.76
541
+ Enabled: true
542
+ Style/ArrayIntersectWithSingleElement: # new in 1.81
543
+ Enabled: true
544
+ Style/CollectionQuerying: # new in 1.77
545
+ Enabled: true
546
+ Style/ComparableBetween: # new in 1.74
547
+ Enabled: true
548
+ Style/DigChain: # new in 1.69
549
+ Enabled: true
550
+ Style/DirectiveScope: # new in 1.90
551
+ Enabled: true
552
+ Style/EmptyClassDefinition: # new in 1.84
553
+ Enabled: true
554
+ Style/EmptyStringInsideInterpolation: # new in 1.76
555
+ Enabled: true
556
+ Style/FileNull: # new in 1.69
557
+ Enabled: true
558
+ Style/FileOpen: # new in 1.85
559
+ Enabled: true
560
+ Style/FileTouch: # new in 1.69
561
+ Enabled: true
562
+ Style/HashFetchChain: # new in 1.75
563
+ Enabled: true
564
+ Style/HashSlice: # new in 1.71
565
+ Enabled: true
566
+ Style/ItAssignment: # new in 1.70
567
+ Enabled: true
568
+ Style/ItBlockParameter: # new in 1.75
569
+ Enabled: true
570
+ Style/MapJoin: # new in 1.85
571
+ Enabled: true
572
+ Style/ModuleMemberExistenceCheck: # new in 1.82
573
+ Enabled: true
574
+ Style/NegativeArrayIndex: # new in 1.84
575
+ Enabled: true
576
+ Style/OneClassPerFile: # new in 1.85
577
+ Enabled: false
578
+ Style/PartitionInsteadOfDoubleSelect: # new in 1.85
579
+ Enabled: true
580
+ Style/PredicateWithKind: # new in 1.85
581
+ Enabled: true
582
+ Style/ReduceToHash: # new in 1.85
583
+ Enabled: true
584
+ Style/RedundantArrayFlatten: # new in 1.76
585
+ Enabled: true
586
+ Style/RedundantFormat: # new in 1.72
587
+ Enabled: true
588
+ Style/RedundantMinMaxBy: # new in 1.85
589
+ Enabled: true
590
+ Style/ReverseFind: # new in 1.84
591
+ Enabled: true
592
+ Style/SelectByKind: # new in 1.85
593
+ Enabled: true
594
+ Style/SelectByRange: # new in 1.85
595
+ Enabled: true
596
+ Style/TallyMethod: # new in 1.85
597
+ Enabled: true
598
+ Style/TimeNow: # new in 1.90
599
+ Enabled: true
600
+ Performance/StringBytesize: # new in 1.23
601
+ Enabled: true
602
+ Performance/ZipWithoutBlock: # new in 1.24
603
+ Enabled: true
data/.rubocop.rails.yml CHANGED
@@ -1,4 +1,4 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-rails
3
3
 
4
4
  Rails/EnumSyntax: # new in 2.26
@@ -127,3 +127,17 @@ Rails/WhereMissing: # new in 2.16
127
127
  Enabled: true
128
128
  Rails/WhereNotWithMultipleConditions: # new in 2.17
129
129
  Enabled: true
130
+ Rails/FindByOrAssignmentMemoization: # new in 2.33
131
+ Enabled: false
132
+ Rails/HttpStatusNameConsistency: # new in 2.34
133
+ Enabled: true
134
+ Rails/MultipleRoutePaths: # new in 2.29
135
+ Enabled: true
136
+ Rails/OrderArguments: # new in 2.33
137
+ Enabled: true
138
+ Rails/RedirectBackOrTo: # new in 2.34
139
+ Enabled: true
140
+ Rails/SelectMap: # new in 2.21
141
+ Enabled: true
142
+ Rails/StrongParametersExpect: # new in 2.29
143
+ Enabled: true
data/.rubocop.rspec.yml CHANGED
@@ -1,4 +1,4 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-rspec
3
3
 
4
4
  RSpec/EmptyOutput: # new in 2.29
@@ -79,5 +79,13 @@ RSpec/SpecFilePathFormat: # new in 2.24
79
79
  Enabled: true
80
80
  RSpec/SpecFilePathSuffix: # new in 2.24
81
81
  Enabled: true
82
- RSpec/StringAsInstanceDoubleConstant: # new in 3.1
83
- Enabled: true
82
+ RSpec/DiscardedMatcher: # new in 3.10
83
+ Enabled: true
84
+ RSpec/IncludeExamples: # new in 3.6
85
+ Enabled: true
86
+ RSpec/LeakyLocalVariable: # new in 3.8
87
+ Enabled: true
88
+ RSpec/MatchWithSimpleRegex: # new in 3.10
89
+ Enabled: true
90
+ RSpec/Output: # new in 3.9
91
+ Enabled: true
data/.rubocop.yml CHANGED
@@ -1,2 +1,4 @@
1
1
  inherit_from:
2
2
  - .rubocop.all.yml
3
+ AllCops:
4
+ TargetRubyVersion: 3.4
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 4.0.3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2026-10-27
4
+
5
+ - Require Ruby >= 3.4; CI on Ruby 3.4 and 4.0
6
+ - Stop setting `TargetRubyVersion` in the shared config so RuboCop infers it from each project (`.ruby-version`, Gemfile.lock, gemspec)
7
+ - Bump rubocop to 1.92, rubocop-performance 1.27, rubocop-rails 2.38, rubocop-rspec 3.10, rubocop-rubycw 0.2, haml_lint 0.78
8
+ - Load extensions via `plugins:` instead of `require:`
9
+ - Remove obsolete `RSpec/StringAsInstanceDoubleConstant` (use `RSpec/VerifiedDoubleReference`)
10
+ - Enable `AllCops/UseProjectIndex` and depend on `rubydex` for cross-file cops (ArgumentMismatch, SuperArgumentMismatch, NameTypo, DeprecatedReference)
11
+ - Configure all 64 new cops; disabled: `Layout/EmptyLinesAfterModuleInclusion`, `Style/OneClassPerFile`, `Rails/FindByOrAssignmentMemoization`
12
+
3
13
  ## [0.1.0] - 2022-11-26
4
14
 
5
15
  - Initial release
data/CLAUDE.md ADDED
@@ -0,0 +1,36 @@
1
+ # CLAUDE.md
2
+
3
+ This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+ ## What this is
6
+
7
+ A gem that ships an opinionated, shareable RuboCop configuration. The product is the YAML files at the repo root, not Ruby code: `lib/` contains only the version constant and an empty module.
8
+
9
+ ## Commands
10
+
11
+ - `bin/setup`: runs `bundle install`
12
+ - `bundle exec rake`: the default task, which runs `spec` and then `rubocop`. CI runs this on Ruby 3.4 and 4.0 (`.github/workflows/main.yml`).
13
+ - `bundle exec rubocop`: lints the repo with its own config (`.rubocop.yml`). Pass a path to lint a single file.
14
+ - `bundle exec rake spec`: `spec/rubocop_fonsan_style_spec.rb` loads each shipped config and fails on removed, renamed or unknown cops. It also merges `.rubocop.all.yml` with RuboCop's defaults and fails on any cop still `pending`, including new cops no file mentions yet. After a gem bump, this is how missing decisions show up.
15
+ - `bin/rubocop_fonsan_style [args]`: runs RuboCop through `bundler/inline`, using only the gemspec's runtime dependencies. Use it to try the cops against another project without editing that project's Gemfile.
16
+ - Release: bump `VERSION` in `lib/rubocop_fonsan_style/version.rb`, run `bundle install` so `Gemfile.lock` picks up the new version, then run `bundle exec rake release`. Built `*.gem` files are gitignored.
17
+
18
+ ## Config layout
19
+
20
+ The configs build on each other through `inherit_from`:
21
+
22
+ - `.rubocop.default.yml`: the core Ruby style. Loads `rubocop-performance` and `rubocop-rubycw` via `plugins:` and enables `AllCops/UseProjectIndex` (backed by the `rubydex` runtime dependency). It deliberately sets no `TargetRubyVersion`, so RuboCop infers it from each consuming project.
23
+ - `.rubocop.rails.yml`: loads `rubocop-rails` via `plugins:`.
24
+ - `.rubocop.rspec.yml`: loads `rubocop-rspec` via `plugins:`.
25
+ - `.rubocop.all.yml`: inherits the three files above.
26
+ - `.rubocop.yml`: this repo's own config, which inherits `.rubocop.all.yml` and pins `TargetRubyVersion: 3.4` to match the gemspec floor.
27
+
28
+ Consuming projects pick one of these files with `inherit_gem` (for example `inherit_gem: { rubocop_fonsan_style: .rubocop.all.yml }`). File names and paths are therefore a public interface, so don't rename or move them.
29
+
30
+ ## Conventions when editing configs
31
+
32
+ - When enabling a cop that RuboCop marks as pending, add an inline comment with the version that introduced it, e.g. `Style/SuperArguments: # new in 1.64`. Each upgrade appends its batch of new cops at the end of the relevant file. Every pending cop gets an explicit `Enabled: true` or `Enabled: false`; never use `AllCops/NewCops`.
33
+ - Cop and plugin versions are tied to the version constraints in the gemspec (`rubocop ~> 1.92`, `rubocop-rails ~> 2.38`, `rubocop-rspec ~> 3.10`, `rubocop-performance ~> 1.27`, `rubocop-rubycw ~> 0.2`). A cop that only exists in a newer release needs a gemspec bump first. Keep runtime dependencies in the gemspec; the Gemfile only holds test/dev gems.
34
+ - Plugins go under `plugins:`, not `require:` (deprecated since rubocop 1.72).
35
+ - `haml_lint` is a runtime dependency, but this repo has no haml-lint config.
36
+ - Main style choices to stay consistent with: fixed indentation instead of alignment (arguments, arrays, parameters, multiline calls), trailing `.` for method chains, `end` aligned with the variable, no spaces inside hash braces or before block params (`{|x| ... }`), line length 200, method length 15, `Style/FrozenStringLiteralComment` disabled, and `Metrics/AbcSize`, `ClassLength` and `ModuleLength` disabled.
data/Gemfile.lock CHANGED
@@ -1,112 +1,132 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop_fonsan_style (0.1.7)
5
- haml_lint (~> 0.52)
6
- rubocop (~> 1.68)
7
- rubocop-performance (~> 1.22)
8
- rubocop-rails (~> 2.27)
9
- rubocop-rspec (~> 3.2)
10
- rubocop-rubycw (~> 0.1)
4
+ rubocop_fonsan_style (0.2.0)
5
+ haml_lint (~> 0.78)
6
+ rubocop (~> 1.92)
7
+ rubocop-performance (~> 1.27)
8
+ rubocop-rails (~> 2.38)
9
+ rubocop-rspec (~> 3.10)
10
+ rubocop-rubycw (~> 0.2)
11
+ rubydex (~> 0.4)
11
12
 
12
13
  GEM
13
14
  remote: https://rubygems.org/
14
15
  specs:
15
- activesupport (7.2.2)
16
+ activesupport (8.1.4)
16
17
  base64
17
- benchmark (>= 0.3)
18
18
  bigdecimal
19
19
  concurrent-ruby (~> 1.0, >= 1.3.1)
20
20
  connection_pool (>= 2.2.5)
21
21
  drb
22
22
  i18n (>= 1.6, < 2)
23
+ json
23
24
  logger (>= 1.4.2)
24
25
  minitest (>= 5.1)
25
26
  securerandom (>= 0.3)
26
27
  tzinfo (~> 2.0, >= 2.0.5)
27
- ast (2.4.2)
28
- base64 (0.2.0)
29
- benchmark (0.3.0)
30
- bigdecimal (3.1.8)
31
- concurrent-ruby (1.3.4)
32
- connection_pool (2.4.1)
33
- diff-lcs (1.5.1)
34
- drb (2.2.1)
35
- haml (6.3.0)
28
+ uri (>= 0.13.1)
29
+ ast (2.4.3)
30
+ base64 (0.3.0)
31
+ bigdecimal (4.1.3)
32
+ concurrent-ruby (1.3.8)
33
+ connection_pool (3.0.2)
34
+ diff-lcs (1.6.2)
35
+ drb (2.2.3)
36
+ haml (7.5.1)
37
+ prism (>= 1.1.0)
36
38
  temple (>= 0.8.2)
37
39
  thor
38
40
  tilt
39
- haml_lint (0.59.0)
41
+ haml_lint (0.78.0)
40
42
  haml (>= 5.0)
41
- parallel (~> 1.10)
43
+ parallel (>= 1.10)
42
44
  rainbow
43
45
  rubocop (>= 1.0)
44
46
  sysexits (~> 1.1)
45
- i18n (1.14.6)
47
+ i18n (1.15.2)
46
48
  concurrent-ruby (~> 1.0)
47
- json (2.7.5)
48
- language_server-protocol (3.17.0.3)
49
- logger (1.6.1)
50
- minitest (5.25.1)
51
- parallel (1.26.3)
52
- parser (3.3.5.0)
49
+ json (3.1.0)
50
+ language_server-protocol (3.17.0.6)
51
+ lint_roller (1.1.0)
52
+ logger (1.7.0)
53
+ minitest (6.0.6)
54
+ drb (~> 2.0)
55
+ prism (~> 1.5)
56
+ parallel (2.3.0)
57
+ parser (3.3.13.0)
53
58
  ast (~> 2.4.1)
54
59
  racc
60
+ prism (1.9.0)
55
61
  racc (1.8.1)
56
- rack (3.1.8)
62
+ rack (3.2.7)
57
63
  rainbow (3.1.1)
58
- rake (13.2.1)
59
- regexp_parser (2.9.2)
60
- rspec (3.13.0)
64
+ rake (13.4.2)
65
+ regexp_parser (2.13.1)
66
+ rspec (3.13.2)
61
67
  rspec-core (~> 3.13.0)
62
68
  rspec-expectations (~> 3.13.0)
63
69
  rspec-mocks (~> 3.13.0)
64
- rspec-core (3.13.2)
70
+ rspec-core (3.13.6)
65
71
  rspec-support (~> 3.13.0)
66
- rspec-expectations (3.13.3)
72
+ rspec-expectations (3.13.5)
67
73
  diff-lcs (>= 1.2.0, < 2.0)
68
74
  rspec-support (~> 3.13.0)
69
- rspec-mocks (3.13.2)
75
+ rspec-mocks (3.13.8)
70
76
  diff-lcs (>= 1.2.0, < 2.0)
71
77
  rspec-support (~> 3.13.0)
72
- rspec-support (3.13.1)
73
- rubocop (1.68.0)
74
- json (~> 2.3)
75
- language_server-protocol (>= 3.17.0)
76
- parallel (~> 1.10)
78
+ rspec-support (3.13.7)
79
+ rubocop (1.92.1)
80
+ json (>= 2.3)
81
+ language_server-protocol (~> 3.17.0.2)
82
+ lint_roller (~> 1.1.0)
83
+ parallel (>= 1.10)
77
84
  parser (>= 3.3.0.2)
78
85
  rainbow (>= 2.2.2, < 4.0)
79
- regexp_parser (>= 2.4, < 3.0)
80
- rubocop-ast (>= 1.32.2, < 2.0)
86
+ regexp_parser (>= 2.11.3, < 3.0)
87
+ rubocop-ast (>= 1.49.0, < 2.0)
81
88
  ruby-progressbar (~> 1.7)
82
- unicode-display_width (>= 2.4.0, < 3.0)
83
- rubocop-ast (1.33.0)
84
- parser (>= 3.3.1.0)
85
- rubocop-performance (1.22.1)
86
- rubocop (>= 1.48.1, < 2.0)
87
- rubocop-ast (>= 1.31.1, < 2.0)
88
- rubocop-rails (2.27.0)
89
+ unicode-display_width (>= 2.4.0, < 4.0)
90
+ rubocop-ast (1.50.0)
91
+ parser (>= 3.3.7.2)
92
+ prism (~> 1.7)
93
+ rubocop-performance (1.27.0)
94
+ lint_roller (~> 1.1)
95
+ rubocop (>= 1.89.0, < 2.0)
96
+ rubocop-ast (>= 1.47.1, < 2.0)
97
+ rubocop-rails (2.38.0)
89
98
  activesupport (>= 4.2.0)
99
+ lint_roller (~> 1.1)
90
100
  rack (>= 1.1)
91
- rubocop (>= 1.52.0, < 2.0)
92
- rubocop-ast (>= 1.31.1, < 2.0)
93
- rubocop-rspec (3.2.0)
94
- rubocop (~> 1.61)
95
- rubocop-rubycw (0.1.6)
96
- rubocop (~> 1.0)
101
+ rubocop (>= 1.89.0, < 2.0)
102
+ rubocop-ast (>= 1.44.0, < 2.0)
103
+ rubocop-rspec (3.10.2)
104
+ lint_roller (~> 1.1)
105
+ regexp_parser (>= 2.0)
106
+ rubocop (~> 1.86, >= 1.86.2)
107
+ rubocop-rubycw (0.2.2)
108
+ lint_roller (~> 1.1)
109
+ rubocop (~> 1.72, >= 1.72.1)
97
110
  ruby-progressbar (1.13.0)
98
- securerandom (0.3.1)
111
+ rubydex (0.4.3-arm64-darwin)
112
+ rubydex (0.4.3-x86_64-darwin)
113
+ rubydex (0.4.3-x86_64-linux)
114
+ securerandom (0.4.1)
99
115
  sysexits (1.2.0)
100
- temple (0.10.3)
101
- thor (1.3.2)
102
- tilt (2.4.0)
116
+ temple (0.10.7)
117
+ thor (1.5.0)
118
+ tilt (2.9.0)
103
119
  tzinfo (2.0.6)
104
120
  concurrent-ruby (~> 1.0)
105
- unicode-display_width (2.6.0)
121
+ unicode-display_width (3.3.0)
122
+ unicode-emoji (~> 4.3)
123
+ unicode-emoji (4.3.0)
124
+ uri (1.1.2)
106
125
 
107
126
  PLATFORMS
108
127
  arm64-darwin-22
109
128
  arm64-darwin-23
129
+ arm64-darwin-25
110
130
  x86_64-darwin-20
111
131
  x86_64-darwin-22
112
132
  x86_64-linux
@@ -117,4 +137,4 @@ DEPENDENCIES
117
137
  rubocop_fonsan_style!
118
138
 
119
139
  BUNDLED WITH
120
- 2.5.16
140
+ 4.0.11
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopFonsanStyle
4
- VERSION = '0.1.8'
4
+ VERSION = '0.2.0'
5
5
  end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/rubocop_fonsan_style/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'rubocop_fonsan_style'
7
+ spec.version = RubocopFonsanStyle::VERSION
8
+ spec.authors = ['Fonsan']
9
+ spec.email = ['fonsan@gmail.com']
10
+
11
+ spec.summary = 'Fonsan rubocop'
12
+ spec.description = 'An opionated rubocop style'
13
+ spec.homepage = 'https://github.com/Fonsan/rubocop_fonsan_style'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = '>= 3.4.0'
16
+
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = spec.homepage
19
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
+ end
27
+ end
28
+ spec.bindir = 'exe'
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) {|f| File.basename(f) }
30
+ spec.require_paths = ['lib']
31
+
32
+ spec.add_dependency 'haml_lint', '~> 0.78'
33
+ spec.add_dependency 'rubocop', '~> 1.92'
34
+ spec.add_dependency 'rubocop-performance', '~> 1.27'
35
+ spec.add_dependency 'rubocop-rails', '~> 2.38'
36
+ spec.add_dependency 'rubocop-rspec', '~> 3.10'
37
+ spec.add_dependency 'rubocop-rubycw', '~> 0.2'
38
+ spec.add_dependency 'rubydex', '~> 0.4'
39
+
40
+ # For more information and examples about making a new gem, check out our
41
+ # guide at: https://bundler.io/guides/creating_gem.html
42
+ spec.metadata['rubygems_mfa_required'] = 'true'
43
+ end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop_fonsan_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fonsan
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-10-31 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: haml_lint
@@ -16,84 +15,98 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '0.52'
18
+ version: '0.78'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '0.52'
25
+ version: '0.78'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: rubocop
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: '1.68'
32
+ version: '1.92'
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: '1.68'
39
+ version: '1.92'
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: rubocop-performance
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
44
  - - "~>"
46
45
  - !ruby/object:Gem::Version
47
- version: '1.22'
46
+ version: '1.27'
48
47
  type: :runtime
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
51
  - - "~>"
53
52
  - !ruby/object:Gem::Version
54
- version: '1.22'
53
+ version: '1.27'
55
54
  - !ruby/object:Gem::Dependency
56
55
  name: rubocop-rails
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - "~>"
60
59
  - !ruby/object:Gem::Version
61
- version: '2.27'
60
+ version: '2.38'
62
61
  type: :runtime
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
65
  - - "~>"
67
66
  - !ruby/object:Gem::Version
68
- version: '2.27'
67
+ version: '2.38'
69
68
  - !ruby/object:Gem::Dependency
70
69
  name: rubocop-rspec
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - "~>"
74
73
  - !ruby/object:Gem::Version
75
- version: '3.2'
74
+ version: '3.10'
76
75
  type: :runtime
77
76
  prerelease: false
78
77
  version_requirements: !ruby/object:Gem::Requirement
79
78
  requirements:
80
79
  - - "~>"
81
80
  - !ruby/object:Gem::Version
82
- version: '3.2'
81
+ version: '3.10'
83
82
  - !ruby/object:Gem::Dependency
84
83
  name: rubocop-rubycw
85
84
  requirement: !ruby/object:Gem::Requirement
86
85
  requirements:
87
86
  - - "~>"
88
87
  - !ruby/object:Gem::Version
89
- version: '0.1'
88
+ version: '0.2'
90
89
  type: :runtime
91
90
  prerelease: false
92
91
  version_requirements: !ruby/object:Gem::Requirement
93
92
  requirements:
94
93
  - - "~>"
95
94
  - !ruby/object:Gem::Version
96
- version: '0.1'
95
+ version: '0.2'
96
+ - !ruby/object:Gem::Dependency
97
+ name: rubydex
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '0.4'
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '0.4'
97
110
  description: An opionated rubocop style
98
111
  email:
99
112
  - fonsan@gmail.com
@@ -106,7 +119,9 @@ files:
106
119
  - ".rubocop.rails.yml"
107
120
  - ".rubocop.rspec.yml"
108
121
  - ".rubocop.yml"
122
+ - ".ruby-version"
109
123
  - CHANGELOG.md
124
+ - CLAUDE.md
110
125
  - CODE_OF_CONDUCT.md
111
126
  - Gemfile
112
127
  - Gemfile.lock
@@ -115,6 +130,7 @@ files:
115
130
  - Rakefile
116
131
  - lib/rubocop_fonsan_style.rb
117
132
  - lib/rubocop_fonsan_style/version.rb
133
+ - rubocop_fonsan_style.gemspec
118
134
  - sig/rubocop_fonsan_style.rbs
119
135
  homepage: https://github.com/Fonsan/rubocop_fonsan_style
120
136
  licenses:
@@ -123,7 +139,6 @@ metadata:
123
139
  homepage_uri: https://github.com/Fonsan/rubocop_fonsan_style
124
140
  source_code_uri: https://github.com/Fonsan/rubocop_fonsan_style
125
141
  rubygems_mfa_required: 'true'
126
- post_install_message:
127
142
  rdoc_options: []
128
143
  require_paths:
129
144
  - lib
@@ -131,15 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
146
  requirements:
132
147
  - - ">="
133
148
  - !ruby/object:Gem::Version
134
- version: 3.0.0
149
+ version: 3.4.0
135
150
  required_rubygems_version: !ruby/object:Gem::Requirement
136
151
  requirements:
137
152
  - - ">="
138
153
  - !ruby/object:Gem::Version
139
154
  version: '0'
140
155
  requirements: []
141
- rubygems_version: 3.5.16
142
- signing_key:
156
+ rubygems_version: 4.0.6
143
157
  specification_version: 4
144
158
  summary: Fonsan rubocop
145
159
  test_files: []