rubocop-itamae 0.1.5 → 0.2.1
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 +12 -0
- data/.github/workflows/pages.yml +59 -0
- data/.github/workflows/release_gem.yml +41 -0
- data/.github/workflows/test.yml +23 -51
- data/.rubocop.yml +5 -2
- data/CHANGELOG.md +13 -1
- data/Gemfile +5 -0
- data/README.md +3 -2
- data/config/default.yml +4 -4
- data/lib/rubocop/cop/itamae/recipe_path.rb +2 -3
- data/lib/rubocop/itamae/plugin.rb +31 -0
- data/lib/rubocop/itamae/version.rb +1 -1
- data/lib/rubocop-itamae.rb +1 -0
- data/rubocop-itamae.gemspec +11 -15
- metadata +40 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e297c30885106b9c728f3aa445652fa5cf974ee2821ff351fd42b7e830b77ec
|
|
4
|
+
data.tar.gz: a17193efe2ab8549e5eef4211bdd46d8dd25e3ecf548a965f718399259c657fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b082b025b1d7dbecb31755108a4dfed5a507e2ea3192b4fcf71d90347b45d6610604170fb67722a2fe5846a53521842a5dff2689d45d6cdc32d8de131bf32f0b
|
|
7
|
+
data.tar.gz: 249a88599d8931f34e429987f622f04570450c86b2d94c1b15e54e48e751004dda4cccb736d02ac9d565929a6687853f77c3a0fa970bf39a863243f47c07c677
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
2
|
+
version: 2
|
|
3
|
+
|
|
4
|
+
updates:
|
|
5
|
+
- package-ecosystem: github-actions
|
|
6
|
+
directory: /
|
|
7
|
+
schedule:
|
|
8
|
+
interval: weekly
|
|
9
|
+
cooldown:
|
|
10
|
+
default-days: 7
|
|
11
|
+
assignees:
|
|
12
|
+
- sue445
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Simple workflow for deploying static content to GitHub Pages
|
|
2
|
+
name: Deploy static content to Pages
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
# Runs on pushes targeting the default branch
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- master
|
|
9
|
+
|
|
10
|
+
# Allows you to run this workflow manually from the Actions tab
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
pages: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
# Allow one concurrent deployment
|
|
20
|
+
concurrency:
|
|
21
|
+
group: "pages"
|
|
22
|
+
cancel-in-progress: true
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
# Single deploy job since we're just deploying
|
|
26
|
+
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 }}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
if: github.repository == 'sue445/rubocop-itamae'
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
environment:
|
|
12
|
+
name: rubygems.org
|
|
13
|
+
url: https://rubygems.org/gems/rubocop-itamae
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
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 }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -12,83 +12,58 @@ on:
|
|
|
12
12
|
schedule:
|
|
13
13
|
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
|
14
14
|
|
|
15
|
-
env:
|
|
16
|
-
CI: "true"
|
|
17
|
-
|
|
18
15
|
jobs:
|
|
19
16
|
test:
|
|
20
17
|
runs-on: ubuntu-latest
|
|
21
18
|
|
|
22
|
-
container: ${{ matrix.ruby }}
|
|
23
|
-
|
|
24
19
|
strategy:
|
|
25
20
|
fail-fast: false
|
|
26
21
|
|
|
27
22
|
matrix:
|
|
28
23
|
ruby:
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
- ruby: rubylang/ruby:master-nightly-bionic
|
|
36
|
-
allow_failures: "true"
|
|
24
|
+
- "2.7"
|
|
25
|
+
- "3.0"
|
|
26
|
+
- "3.1"
|
|
27
|
+
- "3.2"
|
|
28
|
+
- "3.3"
|
|
29
|
+
- "3.4"
|
|
37
30
|
|
|
38
31
|
steps:
|
|
39
|
-
- uses: actions/checkout@
|
|
32
|
+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
40
33
|
|
|
41
|
-
|
|
42
|
-
- name: Cache vendor/bundle
|
|
43
|
-
uses: actions/cache@v1
|
|
44
|
-
id: cache_gem
|
|
34
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
45
35
|
with:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
restore-keys: |
|
|
49
|
-
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
|
50
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
36
|
+
ruby-version: ${{ matrix.ruby }}
|
|
37
|
+
bundler-cache: true
|
|
51
38
|
|
|
52
|
-
-
|
|
53
|
-
run: |
|
|
54
|
-
set -xe
|
|
55
|
-
bundle config path vendor/bundle
|
|
56
|
-
bundle update --jobs $(nproc) --retry 3
|
|
57
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
39
|
+
- run: bundle update --jobs $(nproc) --retry 3
|
|
58
40
|
|
|
59
41
|
- name: Setup Code Climate Test Reporter
|
|
60
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
42
|
+
uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
|
|
61
43
|
with:
|
|
62
44
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
63
45
|
command: before-build
|
|
64
|
-
if: matrix.ruby >= 'ruby:2.4'
|
|
65
46
|
continue-on-error: true
|
|
66
47
|
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
set -xe
|
|
70
|
-
bundle exec rspec
|
|
71
|
-
bundle exec rubocop -P
|
|
72
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
|
48
|
+
- run: bundle exec rspec
|
|
49
|
+
- run: bundle exec rubocop -P
|
|
73
50
|
|
|
74
51
|
- name: Teardown Code Climate Test Reporter
|
|
75
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
52
|
+
uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
|
|
76
53
|
with:
|
|
77
54
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
78
55
|
command: after-build
|
|
79
|
-
if:
|
|
56
|
+
if: always()
|
|
80
57
|
continue-on-error: true
|
|
81
58
|
|
|
82
59
|
- name: Slack Notification (not success)
|
|
83
|
-
uses:
|
|
60
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
84
61
|
if: "! success()"
|
|
85
62
|
continue-on-error: true
|
|
86
63
|
with:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
91
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
64
|
+
status: ${{ job.status }}
|
|
65
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
66
|
+
matrix: ${{ toJson(matrix) }}
|
|
92
67
|
|
|
93
68
|
notify:
|
|
94
69
|
needs:
|
|
@@ -98,12 +73,9 @@ jobs:
|
|
|
98
73
|
|
|
99
74
|
steps:
|
|
100
75
|
- name: Slack Notification (success)
|
|
101
|
-
uses:
|
|
76
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
102
77
|
if: always()
|
|
103
78
|
continue-on-error: true
|
|
104
79
|
with:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
icon_emoji: ":octocat:"
|
|
108
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
109
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
80
|
+
status: ${{ job.status }}
|
|
81
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
data/.rubocop.yml
CHANGED
|
@@ -2,8 +2,11 @@ AllCops:
|
|
|
2
2
|
NewCops: enable
|
|
3
3
|
SuggestExtensions: false
|
|
4
4
|
|
|
5
|
-
# rubocop 1.
|
|
6
|
-
TargetRubyVersion: 2.
|
|
5
|
+
# rubocop 1.72.0+ requires ruby 2.7+
|
|
6
|
+
TargetRubyVersion: 2.7
|
|
7
|
+
|
|
8
|
+
Gemspec/DevelopmentDependencies:
|
|
9
|
+
EnforcedStyle: gemspec
|
|
7
10
|
|
|
8
11
|
Layout/LineLength:
|
|
9
12
|
Exclude:
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
## master
|
|
2
|
-
[full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1
|
|
2
|
+
[full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.2.1...master)
|
|
3
|
+
|
|
4
|
+
## [v0.2.1](https://github.com/sue445/rubocop-itamae/releases/tag/v0.2.1)
|
|
5
|
+
|
|
6
|
+
* Release gem from GitHub Actions
|
|
7
|
+
* https://github.com/sue445/rubocop-itamae/pull/86
|
|
8
|
+
|
|
9
|
+
## [v0.2.0](https://github.com/sue445/rubocop-itamae/releases/tag/v0.2.0)
|
|
10
|
+
|
|
11
|
+
[full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.5...v0.2.0)
|
|
12
|
+
|
|
13
|
+
* Pluginfy RuboCop Itamae
|
|
14
|
+
* https://github.com/sue445/rubocop-itamae/pull/82
|
|
3
15
|
|
|
4
16
|
## v0.1.5
|
|
5
17
|
[full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.4...v0.1.5)
|
data/Gemfile
CHANGED
|
@@ -6,3 +6,8 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
|
6
6
|
|
|
7
7
|
# Specify your gem's dependencies in rubocop-itamae.gemspec
|
|
8
8
|
gemspec
|
|
9
|
+
|
|
10
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create('2.7.0')
|
|
11
|
+
# term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
|
|
12
|
+
gem 'term-ansicolor', '< 1.9.0'
|
|
13
|
+
end
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Code style checking for [itamae](https://github.com/itamae-kitchen/itamae) recipes
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/rb/rubocop-itamae)
|
|
6
|
-
[](https://github.com/sue445/rubocop-itamae/actions/workflows/test.yml)
|
|
7
7
|
[](https://coveralls.io/github/sue445/rubocop-itamae?branch=master)
|
|
8
8
|
[](https://codeclimate.com/github/sue445/rubocop-itamae/maintainability)
|
|
9
9
|
|
|
@@ -27,7 +27,8 @@ Or install it yourself as:
|
|
|
27
27
|
Add this line to your application's `.rubocop.yml`
|
|
28
28
|
|
|
29
29
|
```yml
|
|
30
|
-
|
|
30
|
+
plugins:
|
|
31
|
+
- rubocop-itamae
|
|
31
32
|
```
|
|
32
33
|
|
|
33
34
|
## Development
|
data/config/default.yml
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
Itamae/CdInExecute:
|
|
2
2
|
Description: Check that `cd` in `execute`.
|
|
3
3
|
Enabled: true
|
|
4
|
-
StyleGuide:
|
|
4
|
+
StyleGuide: https://sue445.github.io/rubocop-itamae/RuboCop/Cop/Itamae/CdInExecute.html
|
|
5
5
|
|
|
6
6
|
Itamae/CommandEqualsToName:
|
|
7
7
|
Description: Check that `command` doesn't equals to name of `execute`.
|
|
8
8
|
Enabled: true
|
|
9
|
-
StyleGuide:
|
|
9
|
+
StyleGuide: https://sue445.github.io/rubocop-itamae/RuboCop/Cop/Itamae/CommandEqualsToName.html
|
|
10
10
|
|
|
11
11
|
Itamae/NeedlessDefaultAction:
|
|
12
12
|
Description: Checks whether default action is written for resource.
|
|
13
13
|
Enabled: true
|
|
14
|
-
StyleGuide:
|
|
14
|
+
StyleGuide: https://sue445.github.io/rubocop-itamae/RuboCop/Cop/Itamae/NeedlessDefaultAction.html
|
|
15
15
|
|
|
16
16
|
Itamae/RecipePath:
|
|
17
17
|
Description: Checks whether the recipe is placed under `cookbooks` dir or `roles` dir.
|
|
18
18
|
Enabled: true
|
|
19
|
-
StyleGuide:
|
|
19
|
+
StyleGuide: https://sue445.github.io/rubocop-itamae/RuboCop/Cop/Itamae/RecipePath.html
|
|
@@ -20,8 +20,7 @@ module RuboCop
|
|
|
20
20
|
class RecipePath < Base
|
|
21
21
|
include RangeHelp
|
|
22
22
|
|
|
23
|
-
MSG = 'Prefer recipe to placed under `cookbooks` dir'
|
|
24
|
-
' or `roles` dir.'
|
|
23
|
+
MSG = 'Prefer recipe to placed under `cookbooks` dir or `roles` dir.'
|
|
25
24
|
|
|
26
25
|
def on_new_investigation
|
|
27
26
|
file_path = processed_source.file_path
|
|
@@ -33,7 +32,7 @@ module RuboCop
|
|
|
33
32
|
private
|
|
34
33
|
|
|
35
34
|
def bad_filename?(file_path)
|
|
36
|
-
return unless File.extname(file_path) == '.rb'
|
|
35
|
+
return false unless File.extname(file_path) == '.rb'
|
|
37
36
|
|
|
38
37
|
!file_path.match?(%r{/(cookbooks|roles)/})
|
|
39
38
|
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'lint_roller'
|
|
4
|
+
|
|
5
|
+
module RuboCop
|
|
6
|
+
module Itamae
|
|
7
|
+
# A plugin that integrates RuboCop Performance with RuboCop's plugin system.
|
|
8
|
+
class Plugin < LintRoller::Plugin
|
|
9
|
+
def about
|
|
10
|
+
LintRoller::About.new(
|
|
11
|
+
name: 'rubocop-itamae',
|
|
12
|
+
version: VERSION,
|
|
13
|
+
homepage: 'https://github.com/sue445/rubocop-itamae',
|
|
14
|
+
description: 'Code style checking for itamae recipes'
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def supported?(context)
|
|
19
|
+
context.engine == :rubocop
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def rules(_context)
|
|
23
|
+
LintRoller::Rules.new(
|
|
24
|
+
type: :path,
|
|
25
|
+
config_format: :rubocop,
|
|
26
|
+
value: Pathname.new(__dir__).join('../../../config/default.yml')
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
data/lib/rubocop-itamae.rb
CHANGED
data/rubocop-itamae.gemspec
CHANGED
|
@@ -15,17 +15,12 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
spec.homepage = 'https://github.com/sue445/rubocop-itamae'
|
|
16
16
|
spec.license = 'MIT'
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
25
|
-
else
|
|
26
|
-
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
|
27
|
-
'public gem pushes.'
|
|
28
|
-
end
|
|
18
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
|
19
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
|
20
|
+
spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
|
21
|
+
spec.metadata['documentation_uri'] = 'https://sue445.github.io/rubocop-itamae/'
|
|
22
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
23
|
+
spec.metadata['default_lint_roller_plugin'] = 'RuboCop::Itamae::Plugin'
|
|
29
24
|
|
|
30
25
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
31
26
|
f.match(%r{^(test|spec|features)/})
|
|
@@ -34,16 +29,17 @@ Gem::Specification.new do |spec|
|
|
|
34
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
35
30
|
spec.require_paths = ['lib']
|
|
36
31
|
|
|
37
|
-
spec.required_ruby_version = '>= 2.
|
|
32
|
+
spec.required_ruby_version = '>= 2.7.0'
|
|
38
33
|
|
|
39
|
-
spec.add_dependency '
|
|
34
|
+
spec.add_dependency 'lint_roller'
|
|
35
|
+
spec.add_dependency 'rubocop', '>= 1.72.0'
|
|
40
36
|
|
|
41
37
|
spec.add_development_dependency 'bundler', '>= 1.16'
|
|
42
|
-
spec.add_development_dependency '
|
|
38
|
+
spec.add_development_dependency 'coveralls_reborn'
|
|
43
39
|
spec.add_development_dependency 'rake', '>= 11.0'
|
|
44
40
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
45
|
-
spec.add_development_dependency 'rubocop', '>= 1.23.0'
|
|
46
41
|
spec.add_development_dependency 'rubocop_auto_corrector'
|
|
47
42
|
spec.add_development_dependency 'simplecov', '< 0.18.0'
|
|
43
|
+
spec.add_development_dependency 'term-ansicolor', '!= 1.11.1' # ref. https://github.com/flori/term-ansicolor/issues/41
|
|
48
44
|
spec.add_development_dependency 'yard'
|
|
49
45
|
end
|
metadata
CHANGED
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-itamae
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: lint_roller
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '0'
|
|
13
26
|
- !ruby/object:Gem::Dependency
|
|
14
27
|
name: rubocop
|
|
15
28
|
requirement: !ruby/object:Gem::Requirement
|
|
16
29
|
requirements:
|
|
17
30
|
- - ">="
|
|
18
31
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.
|
|
32
|
+
version: 1.72.0
|
|
20
33
|
type: :runtime
|
|
21
34
|
prerelease: false
|
|
22
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
36
|
requirements:
|
|
24
37
|
- - ">="
|
|
25
38
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.
|
|
39
|
+
version: 1.72.0
|
|
27
40
|
- !ruby/object:Gem::Dependency
|
|
28
41
|
name: bundler
|
|
29
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -39,7 +52,7 @@ dependencies:
|
|
|
39
52
|
- !ruby/object:Gem::Version
|
|
40
53
|
version: '1.16'
|
|
41
54
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
55
|
+
name: coveralls_reborn
|
|
43
56
|
requirement: !ruby/object:Gem::Requirement
|
|
44
57
|
requirements:
|
|
45
58
|
- - ">="
|
|
@@ -81,47 +94,47 @@ dependencies:
|
|
|
81
94
|
- !ruby/object:Gem::Version
|
|
82
95
|
version: '3.0'
|
|
83
96
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
97
|
+
name: rubocop_auto_corrector
|
|
85
98
|
requirement: !ruby/object:Gem::Requirement
|
|
86
99
|
requirements:
|
|
87
100
|
- - ">="
|
|
88
101
|
- !ruby/object:Gem::Version
|
|
89
|
-
version:
|
|
102
|
+
version: '0'
|
|
90
103
|
type: :development
|
|
91
104
|
prerelease: false
|
|
92
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
106
|
requirements:
|
|
94
107
|
- - ">="
|
|
95
108
|
- !ruby/object:Gem::Version
|
|
96
|
-
version:
|
|
109
|
+
version: '0'
|
|
97
110
|
- !ruby/object:Gem::Dependency
|
|
98
|
-
name:
|
|
111
|
+
name: simplecov
|
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
|
100
113
|
requirements:
|
|
101
|
-
- - "
|
|
114
|
+
- - "<"
|
|
102
115
|
- !ruby/object:Gem::Version
|
|
103
|
-
version:
|
|
116
|
+
version: 0.18.0
|
|
104
117
|
type: :development
|
|
105
118
|
prerelease: false
|
|
106
119
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
120
|
requirements:
|
|
108
|
-
- - "
|
|
121
|
+
- - "<"
|
|
109
122
|
- !ruby/object:Gem::Version
|
|
110
|
-
version:
|
|
123
|
+
version: 0.18.0
|
|
111
124
|
- !ruby/object:Gem::Dependency
|
|
112
|
-
name:
|
|
125
|
+
name: term-ansicolor
|
|
113
126
|
requirement: !ruby/object:Gem::Requirement
|
|
114
127
|
requirements:
|
|
115
|
-
- - "
|
|
128
|
+
- - "!="
|
|
116
129
|
- !ruby/object:Gem::Version
|
|
117
|
-
version:
|
|
130
|
+
version: 1.11.1
|
|
118
131
|
type: :development
|
|
119
132
|
prerelease: false
|
|
120
133
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
134
|
requirements:
|
|
122
|
-
- - "
|
|
135
|
+
- - "!="
|
|
123
136
|
- !ruby/object:Gem::Version
|
|
124
|
-
version:
|
|
137
|
+
version: 1.11.1
|
|
125
138
|
- !ruby/object:Gem::Dependency
|
|
126
139
|
name: yard
|
|
127
140
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -144,6 +157,9 @@ extensions: []
|
|
|
144
157
|
extra_rdoc_files: []
|
|
145
158
|
files:
|
|
146
159
|
- ".coveralls.yml"
|
|
160
|
+
- ".github/dependabot.yml"
|
|
161
|
+
- ".github/workflows/pages.yml"
|
|
162
|
+
- ".github/workflows/release_gem.yml"
|
|
147
163
|
- ".github/workflows/test.yml"
|
|
148
164
|
- ".gitignore"
|
|
149
165
|
- ".rspec"
|
|
@@ -164,6 +180,7 @@ files:
|
|
|
164
180
|
- lib/rubocop/cop/itamae/recipe_path.rb
|
|
165
181
|
- lib/rubocop/cop/itamae_cops.rb
|
|
166
182
|
- lib/rubocop/itamae.rb
|
|
183
|
+
- lib/rubocop/itamae/plugin.rb
|
|
167
184
|
- lib/rubocop/itamae/version.rb
|
|
168
185
|
- rubocop-itamae.gemspec
|
|
169
186
|
- tasks/new_cop.rake
|
|
@@ -174,8 +191,9 @@ metadata:
|
|
|
174
191
|
homepage_uri: https://github.com/sue445/rubocop-itamae
|
|
175
192
|
source_code_uri: https://github.com/sue445/rubocop-itamae
|
|
176
193
|
changelog_uri: https://github.com/sue445/rubocop-itamae/blob/master/CHANGELOG.md
|
|
194
|
+
documentation_uri: https://sue445.github.io/rubocop-itamae/
|
|
177
195
|
rubygems_mfa_required: 'true'
|
|
178
|
-
|
|
196
|
+
default_lint_roller_plugin: RuboCop::Itamae::Plugin
|
|
179
197
|
rdoc_options: []
|
|
180
198
|
require_paths:
|
|
181
199
|
- lib
|
|
@@ -183,15 +201,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
183
201
|
requirements:
|
|
184
202
|
- - ">="
|
|
185
203
|
- !ruby/object:Gem::Version
|
|
186
|
-
version: 2.
|
|
204
|
+
version: 2.7.0
|
|
187
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
206
|
requirements:
|
|
189
207
|
- - ">="
|
|
190
208
|
- !ruby/object:Gem::Version
|
|
191
209
|
version: '0'
|
|
192
210
|
requirements: []
|
|
193
|
-
rubygems_version: 3.
|
|
194
|
-
signing_key:
|
|
211
|
+
rubygems_version: 3.6.7
|
|
195
212
|
specification_version: 4
|
|
196
213
|
summary: Code style checking for itamae recipes
|
|
197
214
|
test_files: []
|