rubocop-isucon 2.0.2 → 2.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 +4 -4
- data/.github/dependabot.yml +11 -3
- data/.github/release.yml +31 -0
- data/.github/workflows/dependabot-manager.yml +28 -0
- data/.github/workflows/pages.yml +8 -51
- data/.github/workflows/release_gem.yml +8 -37
- data/.github/workflows/test.yml +17 -12
- data/CHANGELOG.md +7 -1
- data/lib/rubocop/isucon/version.rb +1 -1
- data/rubocop-isucon.gemspec +1 -0
- metadata +18 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6bfbb0aff76e1d721b208ef87bd1f322e210d5e9ac9b6ac3791ac893a97f9486
|
|
4
|
+
data.tar.gz: 4e2f1101a5869bf5a5c10349dee879195fc5eb083d696f4e71391adeaf0414ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a07112b77ea1737dc4aa199bf17649eafa00523821656452d75cc67f37597abb9c23d4e84fee5d4ebe49ffb414f6b9317a63fdef3b46b689de62ce61fba90bd3
|
|
7
|
+
data.tar.gz: fb37f3f112520507cc17516ea75f18056c6cb28790843476d8d5a23f8239ac23e1173e9b3bf679eef3cca0b8bcfa530c9085bc45851ca1f11ff48322b9b5452a
|
data/.github/dependabot.yml
CHANGED
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
version: 2
|
|
3
3
|
|
|
4
4
|
updates:
|
|
5
|
+
###########################################################
|
|
6
|
+
# NOTE: following sections are auto generated. DO NOT EDIT!
|
|
7
|
+
###########################################################
|
|
5
8
|
- package-ecosystem: github-actions
|
|
6
9
|
directory: /
|
|
7
10
|
schedule:
|
|
8
|
-
interval:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
interval: monthly
|
|
12
|
+
time: "05:00"
|
|
13
|
+
timezone: Asia/Tokyo
|
|
11
14
|
assignees:
|
|
12
15
|
- sue445
|
|
16
|
+
cooldown:
|
|
17
|
+
default-days: 7
|
|
18
|
+
exclude:
|
|
19
|
+
- ruby/setup-ruby
|
|
20
|
+
###########################################################
|
data/.github/release.yml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# ref. https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes
|
|
2
|
+
|
|
3
|
+
changelog:
|
|
4
|
+
exclude:
|
|
5
|
+
labels:
|
|
6
|
+
- chore
|
|
7
|
+
|
|
8
|
+
categories:
|
|
9
|
+
- title: ":bomb: Breaking Changes"
|
|
10
|
+
labels:
|
|
11
|
+
- breaking change
|
|
12
|
+
|
|
13
|
+
- title: ":lock: Security Fix"
|
|
14
|
+
labels:
|
|
15
|
+
- security
|
|
16
|
+
|
|
17
|
+
- title: ":rocket: Features"
|
|
18
|
+
labels:
|
|
19
|
+
- enhancement
|
|
20
|
+
|
|
21
|
+
- title: ":bug: Bug Fixes"
|
|
22
|
+
labels:
|
|
23
|
+
- bug
|
|
24
|
+
|
|
25
|
+
- title: ":dependabot: Dependency updates"
|
|
26
|
+
labels:
|
|
27
|
+
- dependencies
|
|
28
|
+
|
|
29
|
+
- title: ":pencil: Other Changes"
|
|
30
|
+
labels:
|
|
31
|
+
- "*"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: dependabot-manager
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
- synchronize # PR branch is rebased
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
dependabot-auto-merge:
|
|
11
|
+
uses: sue445/workflows/.github/workflows/dependabot-auto-merge.yml@main
|
|
12
|
+
with:
|
|
13
|
+
repo-name: sue445/rubocop-isucon
|
|
14
|
+
secrets:
|
|
15
|
+
# TODO: Set secrets to Dependabot secrets
|
|
16
|
+
app-id: ${{ secrets.GH_APP_ID }}
|
|
17
|
+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
18
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
19
|
+
|
|
20
|
+
dependabot-security-alert:
|
|
21
|
+
uses: sue445/workflows/.github/workflows/dependabot-security-alert.yml@main
|
|
22
|
+
with:
|
|
23
|
+
repo-name: sue445/rubocop-isucon
|
|
24
|
+
secrets:
|
|
25
|
+
# TODO: Set secrets to Dependabot secrets
|
|
26
|
+
app-id: ${{ secrets.GH_APP_ID }}
|
|
27
|
+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
28
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
data/.github/workflows/pages.yml
CHANGED
|
@@ -1,65 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
name: Deploy static content to Pages
|
|
1
|
+
name: Deploy yard to Pages
|
|
3
2
|
|
|
4
3
|
on:
|
|
5
|
-
# Runs on pushes targeting the default branch
|
|
6
4
|
push:
|
|
7
5
|
branches:
|
|
8
6
|
- main
|
|
9
|
-
|
|
10
|
-
# Allows you to run this workflow manually from the Actions tab
|
|
11
7
|
workflow_dispatch:
|
|
12
8
|
|
|
13
|
-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
14
9
|
permissions:
|
|
15
10
|
contents: read
|
|
16
11
|
pages: write
|
|
17
12
|
id-token: write
|
|
18
13
|
|
|
19
|
-
# Allow one concurrent deployment
|
|
20
|
-
concurrency:
|
|
21
|
-
group: "pages"
|
|
22
|
-
cancel-in-progress: true
|
|
23
|
-
|
|
24
14
|
jobs:
|
|
25
|
-
# Single deploy job since we're just deploying
|
|
26
15
|
deploy:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- name: Install packages
|
|
36
|
-
run: |
|
|
37
|
-
set -xe
|
|
38
|
-
sudo apt-get update
|
|
39
|
-
sudo apt-get install -y libgda-5.0
|
|
40
|
-
|
|
41
|
-
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
42
|
-
with:
|
|
43
|
-
ruby-version: ruby
|
|
44
|
-
bundler-cache: true
|
|
45
|
-
|
|
46
|
-
- run: bundle exec yard
|
|
47
|
-
|
|
48
|
-
- name: Setup Pages
|
|
49
|
-
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
|
|
50
|
-
- name: Upload artifact
|
|
51
|
-
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
|
|
52
|
-
with:
|
|
53
|
-
# Upload entire repository
|
|
54
|
-
path: './doc'
|
|
55
|
-
- name: Deploy to GitHub Pages
|
|
56
|
-
id: deployment
|
|
57
|
-
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
|
|
58
|
-
|
|
59
|
-
- name: Slack Notification (not success)
|
|
60
|
-
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
61
|
-
if: "! success()"
|
|
62
|
-
continue-on-error: true
|
|
63
|
-
with:
|
|
64
|
-
status: ${{ job.status }}
|
|
65
|
-
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
16
|
+
uses: sue445/workflows/.github/workflows/pages-yard.yml@main
|
|
17
|
+
secrets:
|
|
18
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
19
|
+
with:
|
|
20
|
+
before-command: |
|
|
21
|
+
sudo apt-get update
|
|
22
|
+
sudo apt-get install -y libgda-5.0
|
|
@@ -5,43 +5,14 @@ on:
|
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
7
|
release:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
uses: sue445/workflows/.github/workflows/release_gem.yml@main
|
|
9
|
+
with:
|
|
10
|
+
repo-name: sue445/rubocop-isucon
|
|
11
|
+
gem-name: rubocop-isucon
|
|
12
|
+
before-command: |
|
|
13
|
+
set -xe
|
|
14
|
+
sudo apt-get update
|
|
15
|
+
sudo apt-get install -y libgda-5.0
|
|
15
16
|
permissions:
|
|
16
17
|
contents: write
|
|
17
18
|
id-token: write
|
|
18
|
-
|
|
19
|
-
steps:
|
|
20
|
-
- name: Harden Runner
|
|
21
|
-
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
|
22
|
-
with:
|
|
23
|
-
egress-policy: audit
|
|
24
|
-
|
|
25
|
-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
26
|
-
|
|
27
|
-
- name: Install packages
|
|
28
|
-
run: |
|
|
29
|
-
set -xe
|
|
30
|
-
sudo apt-get update
|
|
31
|
-
sudo apt-get install -y libgda-5.0
|
|
32
|
-
|
|
33
|
-
- name: Set up Ruby
|
|
34
|
-
uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
|
|
35
|
-
with:
|
|
36
|
-
bundler-cache: true
|
|
37
|
-
ruby-version: ruby
|
|
38
|
-
|
|
39
|
-
- name: Publish to RubyGems
|
|
40
|
-
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
|
|
41
|
-
|
|
42
|
-
- name: Create GitHub release
|
|
43
|
-
run: |
|
|
44
|
-
tag_name="$(git describe --tags --abbrev=0)"
|
|
45
|
-
gh release create "${tag_name}" --verify-tag --generate-notes
|
|
46
|
-
env:
|
|
47
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -24,6 +24,7 @@ jobs:
|
|
|
24
24
|
- "3.2"
|
|
25
25
|
- "3.3"
|
|
26
26
|
- "3.4"
|
|
27
|
+
- "4.0"
|
|
27
28
|
gemfile:
|
|
28
29
|
- activerecord_8_0
|
|
29
30
|
- activerecord_8_1
|
|
@@ -32,7 +33,7 @@ jobs:
|
|
|
32
33
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
|
33
34
|
|
|
34
35
|
steps:
|
|
35
|
-
- uses: actions/checkout@
|
|
36
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
36
37
|
|
|
37
38
|
- name: Install packages
|
|
38
39
|
run: |
|
|
@@ -40,7 +41,7 @@ jobs:
|
|
|
40
41
|
sudo apt-get update
|
|
41
42
|
sudo apt-get install -y libgda-5.0
|
|
42
43
|
|
|
43
|
-
- uses: ruby/setup-ruby@
|
|
44
|
+
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
44
45
|
with:
|
|
45
46
|
ruby-version: ${{ matrix.ruby }}
|
|
46
47
|
bundler-cache: true
|
|
@@ -54,10 +55,15 @@ jobs:
|
|
|
54
55
|
|
|
55
56
|
- run: bundle exec rspec
|
|
56
57
|
- run: bundle exec rubocop
|
|
57
|
-
|
|
58
|
+
|
|
59
|
+
- name: yard generating test
|
|
60
|
+
run: |
|
|
61
|
+
set -xe
|
|
62
|
+
bundle exec yard --fail-on-warning
|
|
63
|
+
ls -ld doc/
|
|
58
64
|
|
|
59
65
|
- name: Slack Notification (not success)
|
|
60
|
-
uses: act10ns/slack@
|
|
66
|
+
uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
|
|
61
67
|
if: "! success()"
|
|
62
68
|
continue-on-error: true
|
|
63
69
|
with:
|
|
@@ -65,17 +71,16 @@ jobs:
|
|
|
65
71
|
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
66
72
|
matrix: ${{ toJson(matrix) }}
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
all-pass:
|
|
75
|
+
if: always()
|
|
76
|
+
|
|
69
77
|
needs:
|
|
70
78
|
- test
|
|
71
79
|
|
|
72
|
-
runs-on: ubuntu-
|
|
80
|
+
runs-on: ubuntu-slim
|
|
73
81
|
|
|
74
82
|
steps:
|
|
75
|
-
- name:
|
|
76
|
-
uses:
|
|
77
|
-
if: always()
|
|
78
|
-
continue-on-error: true
|
|
83
|
+
- name: check dependent jobs
|
|
84
|
+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
|
|
79
85
|
with:
|
|
80
|
-
|
|
81
|
-
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
86
|
+
jobs: ${{ toJSON(needs) }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
|
-
[full changelog](http://github.com/sue445/rubocop-isucon/compare/v2.0.
|
|
2
|
+
[full changelog](http://github.com/sue445/rubocop-isucon/compare/v2.0.3...main)
|
|
3
|
+
|
|
4
|
+
## [2.0.3](https://github.com/sue445/rubocop-isucon/releases/tag/v2.0.3) - 2026-08-23
|
|
5
|
+
[full changelog](http://github.com/sue445/rubocop-isucon/compare/v2.0.2...v2.0.3)
|
|
6
|
+
|
|
7
|
+
* Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
|
|
8
|
+
* https://github.com/sue445/rubocop-isucon/pull/311
|
|
3
9
|
|
|
4
10
|
## [2.0.2](https://github.com/sue445/rubocop-isucon/releases/tag/v2.0.2) - 2025-11-30
|
|
5
11
|
[full changelog](http://github.com/sue445/rubocop-isucon/compare/v2.0.1...v2.0.2)
|
data/rubocop-isucon.gemspec
CHANGED
|
@@ -43,6 +43,7 @@ Gem::Specification.new do |spec|
|
|
|
43
43
|
spec.add_dependency "rubocop-performance", ">= 1.24.0"
|
|
44
44
|
|
|
45
45
|
spec.add_development_dependency "benchmark-ips"
|
|
46
|
+
spec.add_development_dependency "irb"
|
|
46
47
|
spec.add_development_dependency "pry-byebug"
|
|
47
48
|
spec.add_development_dependency "rake", "~> 13.0"
|
|
48
49
|
spec.add_development_dependency "redcarpet"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-isucon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
@@ -93,6 +93,20 @@ dependencies:
|
|
|
93
93
|
- - ">="
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
95
|
version: '0'
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: irb
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - ">="
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '0'
|
|
103
|
+
type: :development
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - ">="
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
96
110
|
- !ruby/object:Gem::Dependency
|
|
97
111
|
name: pry-byebug
|
|
98
112
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -227,6 +241,8 @@ extensions: []
|
|
|
227
241
|
extra_rdoc_files: []
|
|
228
242
|
files:
|
|
229
243
|
- ".github/dependabot.yml"
|
|
244
|
+
- ".github/release.yml"
|
|
245
|
+
- ".github/workflows/dependabot-manager.yml"
|
|
230
246
|
- ".github/workflows/pages.yml"
|
|
231
247
|
- ".github/workflows/release_gem.yml"
|
|
232
248
|
- ".github/workflows/test.yml"
|
|
@@ -320,7 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
320
336
|
- !ruby/object:Gem::Version
|
|
321
337
|
version: '0'
|
|
322
338
|
requirements: []
|
|
323
|
-
rubygems_version:
|
|
339
|
+
rubygems_version: 4.0.16
|
|
324
340
|
specification_version: 4
|
|
325
341
|
summary: RuboCop plugin for ruby reference implementation of ISUCON
|
|
326
342
|
test_files: []
|