dashbrains-rubocop-config 1.0.0 → 1.0.3

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: 208da1b4ec50f34b8d13fbea4d797afbfb2e2bcba1bd7c9171fdba28e0c5072c
4
- data.tar.gz: 4a04ec5ce65467f3843e1064d77670ee9e3fc14c8bfaf92a620c209d5dd15f27
3
+ metadata.gz: b885c92ad7d91b61a2731252529915ca3d253b57ff5a114cf4cea2c91caa8bae
4
+ data.tar.gz: 5987786b037200f9ed2d8b105641c0dddaf3cd22936da59498ada1a177bee552
5
5
  SHA512:
6
- metadata.gz: cef99e9738afe13d0952dd6b12a8ef8185d419281df028be54dd26bd7a1b4e4da20ab69e3b478c0d6b2d5d0c197a0a9fabd41735ad3220984cb58b0f9d266138
7
- data.tar.gz: eb6681f4da9992354b11fc8c8d74b0927ac2416c45da71b870304af93181a8c689c7c20f07bf928095a80434d08b62b6398a6b1a9fee0f084969eee0574134ce
6
+ metadata.gz: ac25bc8b274b87a355385d14559ecfb282c93fd416eb5d1257ba31ca513e99f144824cee711edee064d472e00985b2b5a8850fd29a1bcd22b47a909efe11b56c
7
+ data.tar.gz: c9e8853ad69501851b25fb44943cbef0dd6076995a2b8732406a9c2ef0e53993714bce0d70c969eebbf18f23fbe954f5e93a6e3de8d9cbb0de81497df1794a3b
@@ -0,0 +1,31 @@
1
+ name: automerge
2
+ on:
3
+ pull_request:
4
+ types:
5
+ - labeled
6
+ - unlabeled
7
+ - synchronize
8
+ - opened
9
+ - edited
10
+ - ready_for_review
11
+ - reopened
12
+ - unlocked
13
+ pull_request_review:
14
+ types:
15
+ - submitted
16
+ check_suite:
17
+ types:
18
+ - completed
19
+ status: {}
20
+ jobs:
21
+ automerge:
22
+ runs-on: ubuntu-latest
23
+ permissions:
24
+ contents: write
25
+ steps:
26
+ - id: automerge
27
+ name: automerge
28
+ uses: "pascalgn/automerge-action@v0.16.3"
29
+ env:
30
+ GITHUB_TOKEN: "${{ secrets.PAT_TOKEN }}"
31
+ MERGE_LABELS: "autorelease: pending"
@@ -0,0 +1,29 @@
1
+ name: Format & Lint & Build & Analysis
2
+
3
+ on:
4
+ pull_request:
5
+ workflow_dispatch:
6
+ workflow_call:
7
+
8
+ jobs:
9
+ rubocop:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v4
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ bundler-cache: true
17
+ - name: Run rubocop
18
+ run: bundle exec rubocop -f github
19
+
20
+ bundler-audit:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - name: Checkout
24
+ uses: actions/checkout@v4
25
+ - uses: ruby/setup-ruby@v1
26
+ with:
27
+ bundler-cache: true
28
+ - name: Run bundler-audit
29
+ run: bundle exec bundler-audit --update
@@ -0,0 +1,41 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ check:
10
+ name: Run format & lint & build check
11
+ uses: dashbrains/rubocop-config/.github/workflows/lint_format.yml@main
12
+
13
+ release-please:
14
+ runs-on: ubuntu-latest
15
+ needs: [ check ]
16
+ permissions:
17
+ contents: write
18
+ pull-requests: write
19
+ steps:
20
+ - uses: GoogleCloudPlatform/release-please-action@v4
21
+ id: release
22
+ with:
23
+ release-type: ruby
24
+ token: "${{ secrets.PAT_TOKEN }}"
25
+ - uses: actions/checkout@v4
26
+ if: ${{ steps.release.outputs.release_created }}
27
+ - uses: ruby/setup-ruby@v1
28
+ if: ${{ steps.release.outputs.release_created }}
29
+ - run: bundle install
30
+ if: ${{ steps.release.outputs.release_created }}
31
+ - name: publish gem
32
+ run: |
33
+ mkdir -p $HOME/.gem
34
+ touch $HOME/.gem/credentials
35
+ chmod 0600 $HOME/.gem/credentials
36
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
37
+ gem build *.gemspec
38
+ gem push *.gem
39
+ env:
40
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
41
+ if: ${{ steps.release.outputs.release_created }}
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.3.4
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.3.4
data/CHANGELOG.md ADDED
@@ -0,0 +1,29 @@
1
+ # Changelog
2
+
3
+ ## [1.0.3](https://github.com/DashBrains/rubocop-config/compare/v1.0.2...v1.0.3) (2024-08-24)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * release 1.0.3 ([a9d6700](https://github.com/DashBrains/rubocop-config/commit/a9d670007b75a6267ba47f80147f537dc95bb446))
9
+
10
+ ## [1.0.2](https://github.com/DashBrains/rubocop-config/compare/v1.0.1...v1.0.2) (2024-08-24)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * release 1.0.2 ([1c93338](https://github.com/DashBrains/rubocop-config/commit/1c93338614b9f0bad74b520305db93b6a119d16f))
16
+
17
+ ## 1.0.1 (2024-08-24)
18
+
19
+
20
+ ### Features
21
+
22
+ * add platforms ([93ebbb3](https://github.com/DashBrains/rubocop-config/commit/93ebbb3d7f5632481093bfa84f410c04675e5a58))
23
+ * revert brakeman ([cb87ce1](https://github.com/DashBrains/rubocop-config/commit/cb87ce1ae48643249b3d3d5de365290ef835b566))
24
+ * update dependencies and added release please ([3a26cb1](https://github.com/DashBrains/rubocop-config/commit/3a26cb1f745107b44c45bfe86dfa4a900ecd330e))
25
+
26
+
27
+ ### Miscellaneous Chores
28
+
29
+ * release 1.0.1 ([4170f69](https://github.com/DashBrains/rubocop-config/commit/4170f6967a74b945f9b58bd82e1fbff9200d207f))
data/Gemfile CHANGED
@@ -6,3 +6,19 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  gem 'bundler'
9
+
10
+ gem 'rubocop', require: false
11
+ gem 'rubocop-capybara', require: false
12
+ gem 'rubocop-factory_bot', require: false
13
+ gem 'rubocop-graphql', require: false
14
+ gem 'rubocop-minitest', require: false
15
+ gem 'rubocop-performance', require: false
16
+ gem 'rubocop-rails', require: false
17
+ gem 'rubocop-rspec', require: false
18
+ gem 'rubocop-rspec_rails', require: false
19
+ gem 'rubocop-sorbet', require: false
20
+
21
+ group :development do
22
+ # Bundle-audit
23
+ gem 'bundler-audit', require: false
24
+ end
data/Gemfile.lock CHANGED
@@ -1,83 +1,123 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dashbrains-rubocop-config (1.0.0)
4
+ dashbrains-rubocop-config (1.0.3)
5
5
  rubocop
6
+ rubocop-capybara
7
+ rubocop-factory_bot
6
8
  rubocop-graphql
7
9
  rubocop-minitest
8
10
  rubocop-performance
9
11
  rubocop-rails
10
12
  rubocop-rspec
13
+ rubocop-rspec_rails
11
14
  rubocop-sorbet
12
15
 
13
16
  GEM
14
17
  remote: https://rubygems.org/
15
18
  specs:
16
- activesupport (7.0.6)
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ activesupport (7.2.1)
20
+ base64
21
+ bigdecimal
22
+ concurrent-ruby (~> 1.0, >= 1.3.1)
23
+ connection_pool (>= 2.2.5)
24
+ drb
18
25
  i18n (>= 1.6, < 2)
26
+ logger (>= 1.4.2)
19
27
  minitest (>= 5.1)
20
- tzinfo (~> 2.0)
28
+ securerandom (>= 0.3)
29
+ tzinfo (~> 2.0, >= 2.0.5)
21
30
  ast (2.4.2)
22
- concurrent-ruby (1.2.2)
23
- i18n (1.14.1)
31
+ base64 (0.2.0)
32
+ bigdecimal (3.1.8)
33
+ bundler-audit (0.9.2)
34
+ bundler (>= 1.2.0, < 3)
35
+ thor (~> 1.0)
36
+ concurrent-ruby (1.3.4)
37
+ connection_pool (2.4.1)
38
+ drb (2.2.1)
39
+ i18n (1.14.5)
24
40
  concurrent-ruby (~> 1.0)
25
- json (2.6.3)
41
+ json (2.7.2)
26
42
  language_server-protocol (3.17.0.3)
27
- minitest (5.19.0)
28
- parallel (1.23.0)
29
- parser (3.2.2.3)
43
+ logger (1.6.0)
44
+ minitest (5.25.1)
45
+ parallel (1.26.3)
46
+ parser (3.3.4.2)
30
47
  ast (~> 2.4.1)
31
48
  racc
32
- racc (1.7.1)
33
- rack (3.0.8)
49
+ racc (1.8.1)
50
+ rack (3.1.7)
34
51
  rainbow (3.1.1)
35
- regexp_parser (2.8.1)
36
- rexml (3.2.6)
37
- rubocop (1.55.1)
52
+ regexp_parser (2.9.2)
53
+ rexml (3.3.6)
54
+ strscan
55
+ rubocop (1.65.1)
38
56
  json (~> 2.3)
39
57
  language_server-protocol (>= 3.17.0)
40
58
  parallel (~> 1.10)
41
- parser (>= 3.2.2.3)
59
+ parser (>= 3.3.0.2)
42
60
  rainbow (>= 2.2.2, < 4.0)
43
- regexp_parser (>= 1.8, < 3.0)
61
+ regexp_parser (>= 2.4, < 3.0)
44
62
  rexml (>= 3.2.5, < 4.0)
45
- rubocop-ast (>= 1.28.1, < 2.0)
63
+ rubocop-ast (>= 1.31.1, < 2.0)
46
64
  ruby-progressbar (~> 1.7)
47
65
  unicode-display_width (>= 2.4.0, < 3.0)
48
- rubocop-ast (1.29.0)
49
- parser (>= 3.2.1.0)
50
- rubocop-capybara (2.18.0)
66
+ rubocop-ast (1.32.1)
67
+ parser (>= 3.3.1.0)
68
+ rubocop-capybara (2.21.0)
51
69
  rubocop (~> 1.41)
52
- rubocop-factory_bot (2.23.1)
53
- rubocop (~> 1.33)
54
- rubocop-graphql (1.4.0)
55
- rubocop (>= 0.90, < 2)
56
- rubocop-minitest (0.31.0)
57
- rubocop (>= 1.39, < 2.0)
58
- rubocop-performance (1.18.0)
59
- rubocop (>= 1.7.0, < 2.0)
60
- rubocop-ast (>= 0.4.0)
61
- rubocop-rails (2.20.2)
70
+ rubocop-factory_bot (2.26.1)
71
+ rubocop (~> 1.61)
72
+ rubocop-graphql (1.5.4)
73
+ rubocop (>= 1.50, < 2)
74
+ rubocop-minitest (0.35.1)
75
+ rubocop (>= 1.61, < 2.0)
76
+ rubocop-ast (>= 1.31.1, < 2.0)
77
+ rubocop-performance (1.21.1)
78
+ rubocop (>= 1.48.1, < 2.0)
79
+ rubocop-ast (>= 1.31.1, < 2.0)
80
+ rubocop-rails (2.25.1)
62
81
  activesupport (>= 4.2.0)
63
82
  rack (>= 1.1)
64
83
  rubocop (>= 1.33.0, < 2.0)
65
- rubocop-rspec (2.23.0)
66
- rubocop (~> 1.33)
67
- rubocop-capybara (~> 2.17)
68
- rubocop-factory_bot (~> 2.22)
69
- rubocop-sorbet (0.7.1)
70
- rubocop (>= 0.90.0)
84
+ rubocop-ast (>= 1.31.1, < 2.0)
85
+ rubocop-rspec (3.0.4)
86
+ rubocop (~> 1.61)
87
+ rubocop-rspec_rails (2.30.0)
88
+ rubocop (~> 1.61)
89
+ rubocop-rspec (~> 3, >= 3.0.1)
90
+ rubocop-sorbet (0.8.5)
91
+ rubocop (>= 1)
71
92
  ruby-progressbar (1.13.0)
93
+ securerandom (0.3.1)
94
+ strscan (3.1.0)
95
+ thor (1.3.1)
72
96
  tzinfo (2.0.6)
73
97
  concurrent-ruby (~> 1.0)
74
- unicode-display_width (2.4.2)
98
+ unicode-display_width (2.5.0)
75
99
 
76
100
  PLATFORMS
77
101
  arm64-darwin-22
102
+ arm64-darwin-23
103
+ arm64-darwin-24
104
+ ruby
105
+ x86_64-linux
78
106
 
79
107
  DEPENDENCIES
108
+ bundler
109
+ bundler-audit
80
110
  dashbrains-rubocop-config!
111
+ rubocop
112
+ rubocop-capybara
113
+ rubocop-factory_bot
114
+ rubocop-graphql
115
+ rubocop-minitest
116
+ rubocop-performance
117
+ rubocop-rails
118
+ rubocop-rspec
119
+ rubocop-rspec_rails
120
+ rubocop-sorbet
81
121
 
82
122
  BUNDLED WITH
83
- 2.4.17
123
+ 2.5.17
@@ -1,8 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'lib/version'
4
+
3
5
  Gem::Specification.new do |spec|
4
6
  spec.name = 'dashbrains-rubocop-config'
5
- spec.version = '1.0.0'
7
+ spec.version = Dashbrains::Rubocop::Config::VERSION
6
8
  spec.authors = ['DashBrains']
7
9
  spec.email = ['contact@dashbrains.dev']
8
10
 
@@ -24,12 +26,16 @@ Gem::Specification.new do |spec|
24
26
  `git ls-files -z`.split("\x0")
25
27
  .reject { |f| f.match(%r{^(test|spec|features)/}) }
26
28
  end
29
+ spec.require_paths = ['lib']
27
30
 
28
- spec.add_runtime_dependency 'rubocop'
29
- spec.add_runtime_dependency 'rubocop-graphql'
30
- spec.add_runtime_dependency 'rubocop-minitest'
31
- spec.add_runtime_dependency 'rubocop-performance'
32
- spec.add_runtime_dependency 'rubocop-rails'
33
- spec.add_runtime_dependency 'rubocop-rspec'
34
- spec.add_runtime_dependency 'rubocop-sorbet'
31
+ spec.add_dependency 'rubocop'
32
+ spec.add_dependency 'rubocop-capybara'
33
+ spec.add_dependency 'rubocop-factory_bot'
34
+ spec.add_dependency 'rubocop-graphql'
35
+ spec.add_dependency 'rubocop-minitest'
36
+ spec.add_dependency 'rubocop-performance'
37
+ spec.add_dependency 'rubocop-rails'
38
+ spec.add_dependency 'rubocop-rspec'
39
+ spec.add_dependency 'rubocop-rspec_rails'
40
+ spec.add_dependency 'rubocop-sorbet'
35
41
  end
data/lib/version.rb ADDED
@@ -0,0 +1,10 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+ module Dashbrains
5
+ module Rubocop
6
+ module Config
7
+ VERSION = '1.0.3'
8
+ end
9
+ end
10
+ end
data/renovate.json CHANGED
@@ -1,6 +1,23 @@
1
1
  {
2
- "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
- "extends": [
4
- "config:base"
5
- ]
6
- }
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:base"
5
+ ],
6
+ "groupName": "all dependencies",
7
+ "groupSlug": "all",
8
+ "lockFileMaintenance": {
9
+ "enabled": false,
10
+ "automerge": true
11
+ },
12
+ "packageRules": [
13
+ {
14
+ "groupName": "all dependencies",
15
+ "groupSlug": "all",
16
+ "matchPackagePatterns": [
17
+ "*"
18
+ ],
19
+ "automerge": true
20
+ }
21
+ ],
22
+ "separateMajorMinor": false
23
+ }
data/rubocop.yml CHANGED
@@ -5,6 +5,9 @@ require:
5
5
  - rubocop-graphql
6
6
  - rubocop-rspec
7
7
  - rubocop-sorbet
8
+ - rubocop-factory_bot
9
+ - rubocop-capybara
10
+ - rubocop-rspec_rails
8
11
 
9
12
  AllCops:
10
13
  DisplayCopNames: true
@@ -77,3 +80,6 @@ Metrics/PerceivedComplexity:
77
80
 
78
81
  Metrics/ParameterLists:
79
82
  Max: 10
83
+
84
+ Gemspec/RequiredRubyVersion:
85
+ Enabled: false
data/sig/config.rbs ADDED
@@ -0,0 +1,8 @@
1
+ module Dashbrains
2
+ module Rubocop
3
+ module Config
4
+ VERSION: String
5
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
6
+ end
7
+ end
8
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dashbrains-rubocop-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - DashBrains
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-04 00:00:00.000000000 Z
11
+ date: 2024-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-capybara
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-factory_bot
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: rubocop-graphql
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +122,20 @@ dependencies:
94
122
  - - ">="
95
123
  - !ruby/object:Gem::Version
96
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rspec_rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
97
139
  - !ruby/object:Gem::Dependency
98
140
  name: rubocop-sorbet
99
141
  requirement: !ruby/object:Gem::Requirement
@@ -115,15 +157,23 @@ executables: []
115
157
  extensions: []
116
158
  extra_rdoc_files: []
117
159
  files:
160
+ - ".github/workflows/automerge.yml"
161
+ - ".github/workflows/lint_format.yml"
162
+ - ".github/workflows/release.yml"
118
163
  - ".gitignore"
119
164
  - ".rubocop.yml"
165
+ - ".ruby-version"
166
+ - ".tool-versions"
167
+ - CHANGELOG.md
120
168
  - Gemfile
121
169
  - Gemfile.lock
122
170
  - LICENSE.txt
123
171
  - README.md
124
172
  - dashbrains-rubocop-config.gemspec
173
+ - lib/version.rb
125
174
  - renovate.json
126
175
  - rubocop.yml
176
+ - sig/config.rbs
127
177
  homepage: https://github.com/DashBrains/rubocop-config
128
178
  licenses:
129
179
  - MIT
@@ -132,7 +182,7 @@ metadata:
132
182
  homepage_uri: https://github.com/DashBrains/rubocop-config
133
183
  source_code_uri: https://github.com/DashBrains/rubocop-config
134
184
  rubygems_mfa_required: 'true'
135
- post_install_message:
185
+ post_install_message:
136
186
  rdoc_options: []
137
187
  require_paths:
138
188
  - lib
@@ -147,8 +197,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
197
  - !ruby/object:Gem::Version
148
198
  version: '0'
149
199
  requirements: []
150
- rubygems_version: 3.4.17
151
- signing_key:
200
+ rubygems_version: 3.5.11
201
+ signing_key:
152
202
  specification_version: 4
153
203
  summary: Rubocop config for DashBrains
154
204
  test_files: []