rubocop_auto_corrector 0.5.1 → 0.5.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: 9e079481e71f940939ad708bcded9def83c707ec205019af753039aa4902888f
4
- data.tar.gz: a41369b3d252d2915ef6345780f1913cbf0a88bc4c8fa27132b92ba04ca29c82
3
+ metadata.gz: 10479ba5f5e43a21d5b9da2d6417e06b5b189a5e64a5850be477907fecf0cfab
4
+ data.tar.gz: 1e83dc80d3bc69d0db062e0d18a829d98fac3d6c3f3b47c1d21efdab3704e014
5
5
  SHA512:
6
- metadata.gz: 2665875db09f4a811d8ae6b343006a19aae845a84ec0efc8aef5594f8aed6c52efd296b5a5e8bfa48ec7280707fb2c0b1a5566232842024815e5c2c1ad68c2ab
7
- data.tar.gz: 82d3347044bba0aa9a4006b022b155e85c4bd41142a5d65cbbb4f6006765c64eb0210cacc2020f09142020f73c0d4d914f4ec51e3a49d36236f27b22460f0b64
6
+ metadata.gz: 50247f71e4c4cf39264043cdbda47d5b7f062ed415b5d1b8d84d9f9a23be8985b701032c32fd8964e5b9ac9733e0c5b796918f1cb1a319c5399499143fa24c9e
7
+ data.tar.gz: c2fe311db6339d446d9fabe38e72d44bc2c4142845a81ad3b3870e2b6985b0996c9ada466ce42bf77836457383016dad3a6e23e6348fb45f70edce93b6026cb1
@@ -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: weekly
9
- cooldown:
10
- default-days: 7
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
+ ###########################################################
@@ -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_auto_corrector
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_auto_corrector
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 }}
@@ -1,59 +1,18 @@
1
- # Simple workflow for deploying static content to GitHub Pages
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
  - master
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
- environment:
28
- name: github-pages
29
- url: ${{ steps.deployment.outputs.page_url }}
30
- runs-on: ubuntu-latest
31
- steps:
32
- - name: Checkout
33
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
34
-
35
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
36
- with:
37
- ruby-version: ruby
38
- bundler-cache: true
39
-
40
- - run: bundle exec yard
41
-
42
- - name: Setup Pages
43
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
44
- - name: Upload artifact
45
- uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
46
- with:
47
- # Upload entire repository
48
- path: './doc'
49
- - name: Deploy to GitHub Pages
50
- id: deployment
51
- uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
52
-
53
- - name: Slack Notification (not success)
54
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
55
- if: "! success()"
56
- continue-on-error: true
57
- with:
58
- status: ${{ job.status }}
59
- webhook-url: ${{ secrets.SLACK_WEBHOOK }}
16
+ uses: sue445/workflows/.github/workflows/pages-yard.yml@main
17
+ secrets:
18
+ slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
@@ -5,37 +5,10 @@ on:
5
5
 
6
6
  jobs:
7
7
  release:
8
- if: github.repository == 'sue445/rubocop_auto_corrector'
9
- runs-on: ubuntu-latest
10
-
11
- environment:
12
- name: rubygems.org
13
- url: https://rubygems.org/gems/rubocop_auto_corrector
14
-
8
+ uses: sue445/workflows/.github/workflows/release_gem.yml@main
9
+ with:
10
+ repo-name: sue445/rubocop_auto_corrector
11
+ gem-name: rubocop_auto_corrector
15
12
  permissions:
16
13
  contents: write
17
14
  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: Set up Ruby
28
- uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
29
- with:
30
- bundler-cache: true
31
- ruby-version: ruby
32
-
33
- - name: Publish to RubyGems
34
- uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
35
-
36
- - name: Create GitHub release
37
- run: |
38
- tag_name="$(git describe --tags --abbrev=0)"
39
- gh release create "${tag_name}" --verify-tag --generate-notes
40
- env:
41
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -28,24 +28,18 @@ jobs:
28
28
  - "3.2"
29
29
  - "3.3"
30
30
  - "3.4"
31
+ - "4.0"
31
32
 
32
33
  steps:
33
- - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
34
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
34
35
 
35
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
36
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
36
37
  with:
37
38
  ruby-version: ${{ matrix.ruby }}
38
39
  bundler-cache: true
39
40
 
40
41
  - run: bundle update --jobs $(nproc) --retry 3
41
42
 
42
- - name: Setup Code Climate Test Reporter
43
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
44
- with:
45
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
46
- command: before-build
47
- continue-on-error: true
48
-
49
43
  - name: Set up git
50
44
  run: |
51
45
  set -xe
@@ -53,17 +47,9 @@ jobs:
53
47
  git config --global user.name "github runner"
54
48
 
55
49
  - run: bundle exec rspec
56
- - run: bundle exec rubocop -P
57
-
58
- - name: Teardown Code Climate Test Reporter
59
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
60
- with:
61
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
62
- command: after-build
63
- continue-on-error: true
64
50
 
65
51
  - name: Slack Notification (not success)
66
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
52
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
67
53
  if: "! success()"
68
54
  continue-on-error: true
69
55
  with:
@@ -71,17 +57,76 @@ jobs:
71
57
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
72
58
  matrix: ${{ toJson(matrix) }}
73
59
 
74
- notify:
75
- needs:
76
- - test
60
+ rubocop:
61
+ runs-on: ubuntu-latest
62
+
63
+ steps:
64
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
77
65
 
66
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
67
+ with:
68
+ ruby-version: ruby
69
+ bundler-cache: true
70
+
71
+ - name: bundle update
72
+ run: |
73
+ set -xe
74
+ bundle config path vendor/bundle
75
+ bundle update --all --jobs $(nproc) --retry 3
76
+
77
+ - run: bundle exec rubocop -P
78
+
79
+ - name: Slack Notification (not success)
80
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
81
+ if: "! success()"
82
+ continue-on-error: true
83
+ with:
84
+ status: ${{ job.status }}
85
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
86
+
87
+ yard:
78
88
  runs-on: ubuntu-latest
79
89
 
80
90
  steps:
81
- - name: Slack Notification (success)
82
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
83
- if: always()
91
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
92
+
93
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
94
+ with:
95
+ ruby-version: ruby
96
+ bundler-cache: true
97
+
98
+ - name: bundle update
99
+ run: |
100
+ set -xe
101
+ bundle config path vendor/bundle
102
+ bundle update --all --jobs $(nproc) --retry 3
103
+
104
+ - name: yard generating test
105
+ run: |
106
+ set -xe
107
+ bundle exec yard
108
+ ls -ld doc/
109
+
110
+ - name: Slack Notification (not success)
111
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
112
+ if: "! success()"
84
113
  continue-on-error: true
85
114
  with:
86
115
  status: ${{ job.status }}
87
116
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
117
+
118
+ all-pass:
119
+ if: always()
120
+
121
+ needs:
122
+ - test
123
+ - rubocop
124
+ - yard
125
+
126
+ runs-on: ubuntu-slim
127
+
128
+ steps:
129
+ - name: check dependent jobs
130
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
131
+ with:
132
+ jobs: ${{ toJSON(needs) }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.5.1...master)
2
+ [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.5.2...master)
3
+
4
+ ## [v0.5.2](https://github.com/sue445/rubocop_auto_corrector/releases/tag/v0.5.2)
5
+ [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.5.1...v0.5.2)
6
+
7
+ * Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
8
+ * https://github.com/sue445/rubocop_auto_corrector/pull/113
3
9
 
4
10
  ## v0.5.1
5
11
  [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.5.0...v0.5.1)
data/README.md CHANGED
@@ -4,7 +4,7 @@ Run `rubocop --autocorrect && git commit` with each cop.
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/rubocop_auto_corrector.svg)](https://badge.fury.io/rb/rubocop_auto_corrector)
6
6
  [![test](https://github.com/sue445/rubocop_auto_corrector/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/rubocop_auto_corrector/actions/workflows/test.yml)
7
- [![Maintainability](https://api.codeclimate.com/v1/badges/384834e50f94e344c439/maintainability)](https://codeclimate.com/github/sue445/rubocop_auto_corrector/maintainability)
7
+ [![Maintainability](https://qlty.sh/gh/sue445/projects/rubocop_auto_corrector/maintainability.svg)](https://qlty.sh/gh/sue445/projects/rubocop_auto_corrector)
8
8
  [![Coverage Status](https://coveralls.io/repos/github/sue445/rubocop_auto_corrector/badge.svg?branch=master)](https://coveralls.io/github/sue445/rubocop_auto_corrector?branch=master)
9
9
 
10
10
  ## Example
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopAutoCorrector
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.2'
5
5
  end
@@ -36,7 +36,10 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.add_development_dependency 'bundler', '>= 1.17'
38
38
  spec.add_development_dependency 'coveralls_reborn'
39
+ spec.add_development_dependency 'logger'
40
+ spec.add_development_dependency 'ostruct'
39
41
  spec.add_development_dependency 'rake'
42
+ spec.add_development_dependency 'rdoc'
40
43
  spec.add_development_dependency 'rspec', '~> 3.0'
41
44
  spec.add_development_dependency 'rspec-parameterized'
42
45
  spec.add_development_dependency 'rspec-temp_dir', '>= 1.1.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop_auto_corrector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -51,6 +51,34 @@ dependencies:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: logger
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: ostruct
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
54
82
  - !ruby/object:Gem::Dependency
55
83
  name: rake
56
84
  requirement: !ruby/object:Gem::Requirement
@@ -65,6 +93,20 @@ dependencies:
65
93
  - - ">="
66
94
  - !ruby/object:Gem::Version
67
95
  version: '0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: rdoc
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'
68
110
  - !ruby/object:Gem::Dependency
69
111
  name: rspec
70
112
  requirement: !ruby/object:Gem::Requirement
@@ -201,6 +243,8 @@ extra_rdoc_files: []
201
243
  files:
202
244
  - ".coveralls.yml"
203
245
  - ".github/dependabot.yml"
246
+ - ".github/release.yml"
247
+ - ".github/workflows/dependabot-manager.yml"
204
248
  - ".github/workflows/pages.yml"
205
249
  - ".github/workflows/release_gem.yml"
206
250
  - ".github/workflows/test.yml"
@@ -245,7 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
289
  - !ruby/object:Gem::Version
246
290
  version: '0'
247
291
  requirements: []
248
- rubygems_version: 3.6.7
292
+ rubygems_version: 4.0.16
249
293
  specification_version: 4
250
294
  summary: Run `rubocop --autocorrect && git commit` with each cop.
251
295
  test_files: []