rubocop-itamae 0.2.0 → 0.2.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: d3dc78e48b2caa8da158c09037d9f70dd3c6452b7b69b9553c09aadbb0f2ea2f
4
- data.tar.gz: bf840e36d0987f8710188d5201b09f5a76f6e355dfe24bbd1b78d6337452f1ca
3
+ metadata.gz: 0f68c805115dfef12b924b72faae33a6832c98ef156ebd88fc93d68581627236
4
+ data.tar.gz: ec81b5fa9b91a661f386253279fecb58707a96595878c4e351d280de03b10c95
5
5
  SHA512:
6
- metadata.gz: 627d693c9b3fba525e11ae845a8c37bc2a673764bba72d8b942d995b9874d2d39901e33eedeead6e02cda51b8636b84e4d2a6968e8c017c582278a92143cc8a7
7
- data.tar.gz: 51148e70526c38d7e0cf1e8117be38c09bee11cc287fb9e16c250005e71fac955d95ce8d281fd14627f6c888bc9b85c4f7aa4f062dc050e38522199a0ef9d99b
6
+ metadata.gz: d536d34f949d926dbcd4295ed21b524270c635681a0e1c0e88d2665487e3bebae52701c5f2514f327a5116a30abc5d906b9492f3cf21bfc8aabbc35530b7d00e
7
+ data.tar.gz: 6c8ee744c88c4664a4cb6980938b906ee4d7f92cff9507d327ebe42df4754c609f5eaf876feb61eaff97e4d1d4c321e0b43f437645ec78098957eb8cc6452d12
@@ -2,9 +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
11
+ interval: monthly
12
+ time: "05:00"
13
+ timezone: Asia/Tokyo
9
14
  assignees:
10
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-itamae
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-itamae
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@v4
34
-
35
- - uses: ruby/setup-ruby@v1
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@v5
44
- - name: Upload artifact
45
- uses: actions/upload-pages-artifact@v3
46
- with:
47
- # Upload entire repository
48
- path: './doc'
49
- - name: Deploy to GitHub Pages
50
- id: deployment
51
- uses: actions/deploy-pages@main
52
-
53
- - name: Slack Notification (not success)
54
- uses: act10ns/slack@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 }}
@@ -0,0 +1,14 @@
1
+ name: Publish gem to rubygems.org
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ release:
8
+ uses: sue445/workflows/.github/workflows/release_gem.yml@main
9
+ with:
10
+ repo-name: sue445/rubocop-itamae
11
+ gem-name: rubocop-itamae
12
+ permissions:
13
+ contents: write
14
+ id-token: write
@@ -27,55 +27,99 @@ jobs:
27
27
  - "3.2"
28
28
  - "3.3"
29
29
  - "3.4"
30
+ - "4.0"
30
31
 
31
32
  steps:
32
- - uses: actions/checkout@v4
33
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
33
34
 
34
- - uses: ruby/setup-ruby@v1
35
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
35
36
  with:
36
37
  ruby-version: ${{ matrix.ruby }}
37
38
  bundler-cache: true
38
39
 
39
40
  - run: bundle update --jobs $(nproc) --retry 3
40
41
 
41
- - name: Setup Code Climate Test Reporter
42
- uses: aktions/codeclimate-test-reporter@v1
43
- with:
44
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
45
- command: before-build
42
+ - run: bundle exec rspec
43
+
44
+ - name: Slack Notification (not success)
45
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
46
+ if: "! success()"
46
47
  continue-on-error: true
48
+ with:
49
+ status: ${{ job.status }}
50
+ webhook-url: ${{ secrets.SLACK_WEBHOOK }}
51
+ matrix: ${{ toJson(matrix) }}
47
52
 
48
- - run: bundle exec rspec
49
- - run: bundle exec rubocop -P
53
+ yard:
54
+ runs-on: ubuntu-latest
50
55
 
51
- - name: Teardown Code Climate Test Reporter
52
- uses: aktions/codeclimate-test-reporter@v1
56
+ steps:
57
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
58
+
59
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
53
60
  with:
54
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
55
- command: after-build
56
- if: always()
57
- continue-on-error: true
61
+ ruby-version: ruby
62
+ bundler-cache: true
63
+
64
+ - name: bundle update
65
+ run: |
66
+ set -xe
67
+ bundle config path vendor/bundle
68
+ bundle update --all --jobs $(nproc) --retry 3
69
+
70
+ - name: yard generating test
71
+ run: |
72
+ set -xe
73
+ bundle exec yard
74
+ ls -ld doc/
58
75
 
59
76
  - name: Slack Notification (not success)
60
- uses: act10ns/slack@v2
77
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
61
78
  if: "! success()"
62
79
  continue-on-error: true
63
80
  with:
64
81
  status: ${{ job.status }}
65
82
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
66
- matrix: ${{ toJson(matrix) }}
67
-
68
- notify:
69
- needs:
70
- - test
71
83
 
84
+ rubocop:
72
85
  runs-on: ubuntu-latest
73
86
 
74
87
  steps:
75
- - name: Slack Notification (success)
76
- uses: act10ns/slack@v2
77
- if: always()
88
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
89
+
90
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
91
+ with:
92
+ ruby-version: ruby
93
+ bundler-cache: true
94
+
95
+ - name: bundle update
96
+ run: |
97
+ set -xe
98
+ bundle config path vendor/bundle
99
+ bundle update --all --jobs $(nproc) --retry 3
100
+
101
+ - run: bundle exec rubocop -P
102
+
103
+ - name: Slack Notification (not success)
104
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
105
+ if: "! success()"
78
106
  continue-on-error: true
79
107
  with:
80
108
  status: ${{ job.status }}
81
109
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
110
+
111
+ all-pass:
112
+ if: always()
113
+
114
+ needs:
115
+ - test
116
+ - yard
117
+ - rubocop
118
+
119
+ runs-on: ubuntu-slim
120
+
121
+ steps:
122
+ - name: check dependent jobs
123
+ uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
124
+ with:
125
+ jobs: ${{ toJSON(needs) }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.2.0...master)
2
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.2.2...master)
3
+
4
+ ## [v0.2.2](https://github.com/sue445/rubocop-itamae/releases/tag/v0.2.2)
5
+
6
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.2.1...v0.2.2)
7
+
8
+ * Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
9
+ * https://github.com/sue445/rubocop-itamae/pull/124
10
+
11
+ ## [v0.2.1](https://github.com/sue445/rubocop-itamae/releases/tag/v0.2.1)
12
+
13
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.2.0...v0.2.1)
14
+
15
+ * Release gem from GitHub Actions
16
+ * https://github.com/sue445/rubocop-itamae/pull/86
3
17
 
4
18
  ## [v0.2.0](https://github.com/sue445/rubocop-itamae/releases/tag/v0.2.0)
5
19
 
data/README.md CHANGED
@@ -4,8 +4,7 @@ Code style checking for [itamae](https://github.com/itamae-kitchen/itamae) recip
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/rubocop-itamae.svg)](https://badge.fury.io/rb/rubocop-itamae)
6
6
  [![test](https://github.com/sue445/rubocop-itamae/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/rubocop-itamae/actions/workflows/test.yml)
7
- [![Coverage Status](https://coveralls.io/repos/github/sue445/rubocop-itamae/badge.svg?branch=master)](https://coveralls.io/github/sue445/rubocop-itamae?branch=master)
8
- [![Maintainability](https://api.codeclimate.com/v1/badges/bf2f4b2cbf9c2cfc0e92/maintainability)](https://codeclimate.com/github/sue445/rubocop-itamae/maintainability)
7
+ [![Maintainability](https://qlty.sh/gh/sue445/projects/rubocop-itamae/maintainability.svg)](https://qlty.sh/gh/sue445/projects/rubocop-itamae)
9
8
 
10
9
  ## Installation
11
10
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Itamae
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
@@ -36,7 +36,10 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.add_development_dependency 'bundler', '>= 1.16'
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', '>= 11.0'
42
+ spec.add_development_dependency 'rdoc'
40
43
  spec.add_development_dependency 'rspec', '~> 3.0'
41
44
  spec.add_development_dependency 'rubocop_auto_corrector'
42
45
  spec.add_development_dependency 'simplecov', '< 0.18.0'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: lint_roller
@@ -65,6 +65,34 @@ dependencies:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: logger
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'
82
+ - !ruby/object:Gem::Dependency
83
+ name: ostruct
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
68
96
  - !ruby/object:Gem::Dependency
69
97
  name: rake
70
98
  requirement: !ruby/object:Gem::Requirement
@@ -79,6 +107,20 @@ dependencies:
79
107
  - - ">="
80
108
  - !ruby/object:Gem::Version
81
109
  version: '11.0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rdoc
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ type: :development
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
82
124
  - !ruby/object:Gem::Dependency
83
125
  name: rspec
84
126
  requirement: !ruby/object:Gem::Requirement
@@ -158,7 +200,10 @@ extra_rdoc_files: []
158
200
  files:
159
201
  - ".coveralls.yml"
160
202
  - ".github/dependabot.yml"
203
+ - ".github/release.yml"
204
+ - ".github/workflows/dependabot-manager.yml"
161
205
  - ".github/workflows/pages.yml"
206
+ - ".github/workflows/release_gem.yml"
162
207
  - ".github/workflows/test.yml"
163
208
  - ".gitignore"
164
209
  - ".rspec"
@@ -207,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
252
  - !ruby/object:Gem::Version
208
253
  version: '0'
209
254
  requirements: []
210
- rubygems_version: 3.6.2
255
+ rubygems_version: 4.0.16
211
256
  specification_version: 4
212
257
  summary: Code style checking for itamae recipes
213
258
  test_files: []