rubocop-itamae 0.1.1 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de50a2f8296050f2ebc28763202b5dddd5e604eef64938a38298d049ac7e31fe
4
- data.tar.gz: 76cc076b47e4c29a28d39c65b07aa758fe84c236ff529618b53dd02ba73ae73b
3
+ metadata.gz: 7ebcf4807f37ebc43aef7405761450c8b2782e7450ffcdb720ba80bce11a581b
4
+ data.tar.gz: b5d1010a2bb6f997a591fae1dcee7970e4d0e8667217b1ac4d509ce1184851a5
5
5
  SHA512:
6
- metadata.gz: 446808bcde60e9d235890ac299828c08c7541442719d224a4ea102cfaac75eb7163203dbfd1cdb0e586816456190c4bc9e16e53d4539d8260a46de803d13e0d7
7
- data.tar.gz: 56548023458bad444acee82dc608857210918e24d16a927c1b9dac1db0f6d9efed41cc91bf9bd30605754c33e2ed892cabead7a3da3104b9f200d7a82cb32fb5
6
+ metadata.gz: 55ec446d819b90560e5512360f4434c06eddce9efd3e7a7ceec9b10c6192c170b94546d5fa2718311a676a6ad1f661612807f7ee9b22663672902e6b963083e1
7
+ data.tar.gz: 031f8e878476470e21f75925a57eeb56588038d3280032c3cd817f1940767a0e13f8d4ff40622566386aab61cb76f9e80950de04e0641dafa91ab99dd10d2158
@@ -0,0 +1,109 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
12
+ schedule:
13
+ - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
+
15
+ env:
16
+ CI: "true"
17
+
18
+ jobs:
19
+ test:
20
+ runs-on: ubuntu-latest
21
+
22
+ container: ${{ matrix.ruby }}
23
+
24
+ strategy:
25
+ fail-fast: false
26
+
27
+ matrix:
28
+ ruby:
29
+ - ruby:2.5
30
+ - ruby:2.6
31
+ - ruby:2.7
32
+ - ruby:3.0
33
+ - rubylang/ruby:master-nightly-bionic
34
+ include:
35
+ - ruby: rubylang/ruby:master-nightly-bionic
36
+ allow_failures: "true"
37
+
38
+ steps:
39
+ - uses: actions/checkout@v2
40
+
41
+
42
+ - name: Cache vendor/bundle
43
+ uses: actions/cache@v1
44
+ id: cache_gem
45
+ with:
46
+ path: vendor/bundle
47
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
48
+ restore-keys: |
49
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
50
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
51
+
52
+ - name: bundle update
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' }}
58
+
59
+ - name: Setup Code Climate Test Reporter
60
+ uses: aktions/codeclimate-test-reporter@v1
61
+ with:
62
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
63
+ command: before-build
64
+ if: matrix.ruby >= 'ruby:2.4'
65
+ continue-on-error: true
66
+
67
+ - name: Run test
68
+ run: |
69
+ set -xe
70
+ bundle exec rspec
71
+ bundle exec rubocop -P
72
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
73
+
74
+ - name: Teardown Code Climate Test Reporter
75
+ uses: aktions/codeclimate-test-reporter@v1
76
+ with:
77
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
78
+ command: after-build
79
+ if: matrix.ruby >= 'ruby:2.4' && always()
80
+ continue-on-error: true
81
+
82
+ - name: Slack Notification (not success)
83
+ uses: lazy-actions/slatify@master
84
+ if: "! success()"
85
+ continue-on-error: true
86
+ with:
87
+ job_name: ${{ format('*build* ({0})', matrix.ruby) }}
88
+ type: ${{ job.status }}
89
+ icon_emoji: ":octocat:"
90
+ url: ${{ secrets.SLACK_WEBHOOK }}
91
+ token: ${{ secrets.GITHUB_TOKEN }}
92
+
93
+ notify:
94
+ needs:
95
+ - test
96
+
97
+ runs-on: ubuntu-latest
98
+
99
+ steps:
100
+ - name: Slack Notification (success)
101
+ uses: lazy-actions/slatify@master
102
+ if: always()
103
+ continue-on-error: true
104
+ with:
105
+ job_name: '*build*'
106
+ type: ${{ job.status }}
107
+ icon_emoji: ":octocat:"
108
+ url: ${{ secrets.SLACK_WEBHOOK }}
109
+ token: ${{ secrets.GITHUB_TOKEN }}
data/.rubocop.yml CHANGED
@@ -1,15 +1,23 @@
1
1
  AllCops:
2
- # rubocop requires ruby 2.2+
3
- # https://github.com/rubocop-hq/rubocop/pull/5990
4
- TargetRubyVersion: 2.2
2
+ NewCops: enable
3
+ SuggestExtensions: false
4
+
5
+ # rubocop 1.13.0+ requires ruby 2.5+
6
+ TargetRubyVersion: 2.5
7
+
8
+ Layout/LineLength:
9
+ Exclude:
10
+ - "spec/spec_helper.rb"
5
11
 
6
12
  Metrics/BlockLength:
7
13
  Exclude:
8
14
  - "spec/**/*.rb"
15
+ - "rubocop-itamae.gemspec"
9
16
 
10
- Metrics/LineLength:
17
+ Naming/FileName:
11
18
  Exclude:
12
- - "spec/spec_helper.rb"
19
+ - "lib/rubocop-itamae.rb"
20
+ - "rubocop-itamae.gemspec"
13
21
 
14
22
  Style/HashSyntax:
15
23
  Exclude:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.1...master)
2
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.5...master)
3
+
4
+ ## v0.1.5
5
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.4...v0.1.5)
6
+
7
+ * Enable MFA requirement for gem releasing
8
+ * https://github.com/sue445/rubocop-itamae/pull/52
9
+
10
+ ## v0.1.4
11
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.3...v0.1.4)
12
+
13
+ * Requires rubocop 1.13.0+ and drop ruby 2.4
14
+ * https://github.com/sue445/rubocop-itamae/pull/51
15
+
16
+ ## v0.1.3
17
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.2...v0.1.3)
18
+
19
+ * Fixed. failed spec since rubocop v0.87.0
20
+ * https://github.com/sue445/rubocop-itamae/pull/47
21
+ * Migrate to rubocop v1 syntax
22
+ * https://github.com/sue445/rubocop-itamae/pull/46
23
+
24
+ ## v0.1.2
25
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.1...v0.1.2)
26
+
27
+ * Upgrade rubocop and drop ruby 2.3
28
+ * https://github.com/sue445/rubocop-itamae/pull/43
3
29
 
4
30
  ## v0.1.1
5
31
  [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.0...v0.1.1)
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
  [![Gem Version](https://badge.fury.io/rb/rubocop-itamae.svg)](https://badge.fury.io/rb/rubocop-itamae)
6
- [![Build Status](https://travis-ci.org/sue445/rubocop-itamae.svg?branch=master)](https://travis-ci.org/sue445/rubocop-itamae)
6
+ [![Build Status](https://github.com/sue445/rubocop-itamae/workflows/test/badge.svg?branch=master)](https://github.com/sue445/rubocop-itamae/actions?query=workflow%3Atest)
7
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
8
  [![Maintainability](https://api.codeclimate.com/v1/badges/bf2f4b2cbf9c2cfc0e92/maintainability)](https://codeclimate.com/github/sue445/rubocop-itamae/maintainability)
9
9
 
@@ -13,8 +13,8 @@ module RuboCop
13
13
  # execute 'rm -rf /tmp/*' do
14
14
  # cwd '/tmp'
15
15
  # end
16
- class CdInExecute < Cop
17
- MSG = "Insert `cwd '%<dir>s'` and remove this.".freeze
16
+ class CdInExecute < Base
17
+ MSG = "Insert `cwd '%<dir>s'` and remove this."
18
18
 
19
19
  def_node_search :find_execute_with_block, <<-PATTERN
20
20
  (block
@@ -51,14 +51,13 @@ module RuboCop
51
51
  end
52
52
 
53
53
  def on_send(node)
54
- return if node.parent && node.parent.block_type?
54
+ return if node.parent&.block_type?
55
55
 
56
56
  find_execute_without_block(node) do |name|
57
57
  add_offense_for_execute_name(node, name)
58
58
  end
59
59
  end
60
60
 
61
- # rubocop:disable Metrics/LineLength
62
61
  # def autocorrect(node)
63
62
  # if node.block_type?
64
63
  # lambda do |corrector|
@@ -103,7 +102,6 @@ module RuboCop
103
102
  # end
104
103
  # end
105
104
  # end
106
- # rubocop:enable Metrics/LineLength
107
105
 
108
106
  private
109
107
 
@@ -112,7 +110,7 @@ module RuboCop
112
110
  return unless dir
113
111
 
114
112
  loc = cd_location(node.child_nodes.first, name)
115
- add_offense(node, message: format(MSG, dir: dir), location: loc)
113
+ add_offense(loc, message: format(MSG, dir: dir))
116
114
  end
117
115
 
118
116
  def add_offence_for_execute_block_name(node, name)
@@ -120,7 +118,7 @@ module RuboCop
120
118
  return unless dir
121
119
 
122
120
  loc = cd_location(node.child_nodes.first.child_nodes.first, name)
123
- add_offense(node, message: format(MSG, dir: dir), location: loc)
121
+ add_offense(loc, message: format(MSG, dir: dir))
124
122
  end
125
123
 
126
124
  def add_offense_for_command_param(param_node, command)
@@ -135,7 +133,7 @@ module RuboCop
135
133
  end
136
134
 
137
135
  loc = cd_location(command_node, command)
138
- add_offense(param_node, message: format(MSG, dir: dir), location: loc)
136
+ add_offense(loc, message: format(MSG, dir: dir))
139
137
  end
140
138
 
141
139
  def cd_dir_in_command(command)
@@ -17,11 +17,12 @@ module RuboCop
17
17
  # execute 'Remove temporary files' do
18
18
  # command 'rm -rf /tmp/*'
19
19
  # end
20
- class CommandEqualsToName < Cop
20
+ class CommandEqualsToName < Base
21
21
  include RangeHelp
22
+ extend AutoCorrector
22
23
 
23
24
  MSG = 'Prefer to omit `command` if `command` equals to ' \
24
- 'name of `execute`'.freeze
25
+ 'name of `execute`'
25
26
 
26
27
  def_node_search :find_execute, <<-PATTERN
27
28
  (block
@@ -45,27 +46,27 @@ module RuboCop
45
46
  find_command(param_node) do |command|
46
47
  next unless name == command
47
48
 
48
- add_offense(param_node, location: :expression)
49
+ add_param_node_offense(param_node)
49
50
  end
50
51
  end
51
52
  end
52
53
  end
53
54
 
54
- def autocorrect(node)
55
- lambda do |corrector|
56
- if node.begin_type?
57
- node.each_child_node do |param_node|
58
- remove_command_param(corrector, node.parent, param_node)
55
+ private
56
+
57
+ def add_param_node_offense(param_node)
58
+ add_offense(param_node.loc.expression) do |corrector|
59
+ if param_node.begin_type?
60
+ param_node.each_child_node do |child_param_node|
61
+ remove_command_param(corrector, param_node.parent, child_param_node)
59
62
  end
60
63
 
61
- elsif node.send_type?
62
- remove_command_param(corrector, node.parent, node)
64
+ elsif param_node.send_type?
65
+ remove_command_param(corrector, param_node.parent, param_node)
63
66
  end
64
67
  end
65
68
  end
66
69
 
67
- private
68
-
69
70
  def remove_command_param(corrector, parent_node, param_node)
70
71
  find_execute(parent_node) do |name|
71
72
  find_command(param_node) do |command|
@@ -17,27 +17,28 @@ module RuboCop
17
17
  #
18
18
  # package 'git'
19
19
  #
20
- class NeedlessDefaultAction < Cop
20
+ class NeedlessDefaultAction < Base
21
21
  include RangeHelp
22
+ extend AutoCorrector
22
23
 
23
- MSG = 'Prefer to omit the default action.'.freeze
24
+ MSG = 'Prefer to omit the default action.'
24
25
 
25
26
  RESOURCE_DEFAULT_ACTIONS = {
26
- directory: :create,
27
- execute: :run,
28
- file: :create,
29
- gem_package: :install,
30
- git: :sync,
31
- group: :create,
32
- http_request: :create,
33
- link: :create,
27
+ directory: :create,
28
+ execute: :run,
29
+ file: :create,
30
+ gem_package: :install,
31
+ git: :sync,
32
+ group: :create,
33
+ http_request: :create,
34
+ link: :create,
34
35
  local_ruby_block: :run,
35
- package: :install,
36
+ package: :install,
36
37
  remote_directory: :create,
37
- remote_file: :create,
38
- service: :nothing,
39
- template: :create,
40
- user: :create
38
+ remote_file: :create,
39
+ service: :nothing,
40
+ template: :create,
41
+ user: :create
41
42
  }.freeze
42
43
 
43
44
  def_node_search :find_resource, <<-PATTERN
@@ -62,18 +63,14 @@ module RuboCop
62
63
  find_action(param_node) do |action|
63
64
  next unless action == RESOURCE_DEFAULT_ACTIONS[resource]
64
65
 
65
- add_offense(param_node, location: :expression)
66
+ add_offense(param_node.loc.expression) do |corrector|
67
+ remove_action_param(corrector, param_node.parent, param_node) if param_node.send_type?
68
+ end
66
69
  end
67
70
  end
68
71
  end
69
72
  end
70
73
 
71
- def autocorrect(node)
72
- lambda do |corrector|
73
- remove_action_param(corrector, node.parent, node) if node.send_type?
74
- end
75
- end
76
-
77
74
  private
78
75
 
79
76
  def remove_action_param(corrector, parent_node, param_node)
@@ -17,28 +17,25 @@ module RuboCop
17
17
  # cookbooks/nginx/default.rb
18
18
  # roles/web.rb
19
19
  #
20
- class RecipePath < Cop
20
+ class RecipePath < Base
21
21
  include RangeHelp
22
22
 
23
23
  MSG = 'Prefer recipe to placed under `cookbooks` dir' \
24
- ' or `roles` dir.'.freeze
24
+ ' or `roles` dir.'
25
25
 
26
- def investigate(processed_source)
26
+ def on_new_investigation
27
27
  file_path = processed_source.file_path
28
28
  return if config.file_to_include?(file_path)
29
29
 
30
- for_bad_filename(file_path) do |range, msg|
31
- add_offense(nil, location: range, message: msg)
32
- end
30
+ add_global_offense if bad_filename?(file_path)
33
31
  end
34
32
 
35
33
  private
36
34
 
37
- def for_bad_filename(file_path)
35
+ def bad_filename?(file_path)
38
36
  return unless File.extname(file_path) == '.rb'
39
- return if file_path =~ %r{/(cookbooks|roles)/}
40
37
 
41
- yield source_range(processed_source.buffer, 1, 0), MSG
38
+ !file_path.match?(%r{/(cookbooks|roles)/})
42
39
  end
43
40
  end
44
41
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Itamae
5
- VERSION = '0.1.1'.freeze
5
+ VERSION = '0.1.5'
6
6
  end
7
7
  end
@@ -15,21 +15,35 @@ Gem::Specification.new do |spec|
15
15
  spec.homepage = 'https://github.com/sue445/rubocop-itamae'
16
16
  spec.license = 'MIT'
17
17
 
18
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
20
+ if spec.respond_to?(:metadata)
21
+ spec.metadata['homepage_uri'] = spec.homepage
22
+ spec.metadata['source_code_uri'] = spec.homepage
23
+ spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md"
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
29
+
30
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
31
  f.match(%r{^(test|spec|features)/})
20
32
  end
21
33
  spec.bindir = 'exe'
22
34
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
35
  spec.require_paths = ['lib']
24
36
 
25
- spec.add_dependency 'rubocop', '>= 0.53.0'
37
+ spec.required_ruby_version = '>= 2.5.0'
38
+
39
+ spec.add_dependency 'rubocop', '>= 1.13.0'
26
40
 
27
- spec.add_development_dependency 'bundler', '~> 1.16'
28
- spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.0'
41
+ spec.add_development_dependency 'bundler', '>= 1.16'
29
42
  spec.add_development_dependency 'coveralls'
30
- spec.add_development_dependency 'pry-byebug'
31
43
  spec.add_development_dependency 'rake', '>= 11.0'
32
44
  spec.add_development_dependency 'rspec', '~> 3.0'
33
- spec.add_development_dependency 'simplecov'
45
+ spec.add_development_dependency 'rubocop', '>= 1.23.0'
46
+ spec.add_development_dependency 'rubocop_auto_corrector'
47
+ spec.add_development_dependency 'simplecov', '< 0.18.0'
34
48
  spec.add_development_dependency 'yard'
35
49
  end
data/tasks/new_cop.rake CHANGED
@@ -20,7 +20,7 @@ task :new_cop, [:cop] do |_task, args|
20
20
 
21
21
  begin
22
22
  generator.inject_config(config_file_path: 'config/default.yml')
23
- rescue TypeError # rubocop:disable Lint/HandleExceptions
23
+ rescue TypeError
24
24
  # nop
25
25
  end
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-18 00:00:00.000000000 Z
11
+ date: 2021-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,112 +16,112 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.53.0
19
+ version: 1.13.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.53.0
26
+ version: 1.13.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.16'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.16'
41
41
  - !ruby/object:Gem::Dependency
42
- name: codeclimate-test-reporter
42
+ name: coveralls
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.0.0
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.0
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: coveralls
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '11.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '11.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pry-byebug
70
+ name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '3.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '3.0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rake
84
+ name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '11.0'
89
+ version: 1.23.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '11.0'
96
+ version: 1.23.0
97
97
  - !ruby/object:Gem::Dependency
98
- name: rspec
98
+ name: rubocop_auto_corrector
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '3.0'
103
+ version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '3.0'
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "<"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 0.18.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "<"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 0.18.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: yard
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -144,10 +144,10 @@ extensions: []
144
144
  extra_rdoc_files: []
145
145
  files:
146
146
  - ".coveralls.yml"
147
+ - ".github/workflows/test.yml"
147
148
  - ".gitignore"
148
149
  - ".rspec"
149
150
  - ".rubocop.yml"
150
- - ".travis.yml"
151
151
  - ".yardopts"
152
152
  - CHANGELOG.md
153
153
  - Gemfile
@@ -170,8 +170,12 @@ files:
170
170
  homepage: https://github.com/sue445/rubocop-itamae
171
171
  licenses:
172
172
  - MIT
173
- metadata: {}
174
- post_install_message:
173
+ metadata:
174
+ homepage_uri: https://github.com/sue445/rubocop-itamae
175
+ source_code_uri: https://github.com/sue445/rubocop-itamae
176
+ changelog_uri: https://github.com/sue445/rubocop-itamae/blob/master/CHANGELOG.md
177
+ rubygems_mfa_required: 'true'
178
+ post_install_message:
175
179
  rdoc_options: []
176
180
  require_paths:
177
181
  - lib
@@ -179,16 +183,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
183
  requirements:
180
184
  - - ">="
181
185
  - !ruby/object:Gem::Version
182
- version: '0'
186
+ version: 2.5.0
183
187
  required_rubygems_version: !ruby/object:Gem::Requirement
184
188
  requirements:
185
189
  - - ">="
186
190
  - !ruby/object:Gem::Version
187
191
  version: '0'
188
192
  requirements: []
189
- rubyforge_project:
190
- rubygems_version: 2.7.6
191
- signing_key:
193
+ rubygems_version: 3.2.22
194
+ signing_key:
192
195
  specification_version: 4
193
196
  summary: Code style checking for itamae recipes
194
197
  test_files: []
data/.travis.yml DELETED
@@ -1,30 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2
5
- - 2.3
6
- - 2.4
7
- - 2.5
8
- - ruby-head
9
- bundler_args: "--jobs=4"
10
- cache: bundler
11
- before_install:
12
- - gem update --system --no-document
13
- - gem install bundler --no-document
14
- before_script:
15
- - export CODECLIMATE_REPO_TOKEN=7e9993b9f657bb33552e76a7b9c8292541cf9a5d8d6811f585f6cfbc0785c820
16
- before_script:
17
- script:
18
- - bundle exec rspec
19
- - bundle exec codeclimate-test-reporter
20
- - bundle exec rubocop
21
- branches:
22
- only:
23
- - master
24
- notifications:
25
- email: false
26
- slack:
27
- secure: eKV6s6mQEb3T9qeatHvUMvAQPVOn+hjvdPl+v+1RYQaC/kgTMpLkCwRPokrDYiK51/HgMSH1cPGVl6QfoqaJvdHKdZtuAmikVeqhygablFPdLYuseMTHTr9zT9MOoEzSbyzO9tUTL3jIHeLIrXdBhVJ/YCw/9uWIlA10iFDE0KZ8WiPIIAJ34GORnzIqIASHY5zGKhiIqer1xeNecXXhTBcnUYzOhN7qBYCRl0yYL11NIy7xh50DLcKSYYAIUr6oBYOI6QeSe/0cZGOGst0JfHE5jQvT/3O6wMK2lGnrXovXuL4JIbFT6bODo9XyzSSkyy/P1wqPe8hpY7Thh4qyt1r+tRdO8oBdkxdzQTopRgemyc3wOa/5mE7keEXJh8V1TPCi4yfa/rfXxLSXmXYGXa3q8TBwDkxmWFd1Ej2KV3e3c1AVVqp7cqflq12HH6v2XHPXHyX6zZszOKpDjELCc2SZ49jx+D1tg15YHJ+Q8FIyUVAvyjD1bW7z+v8fsXqViyhwrue11jVsdpfSy0ZaXwtiSC7RyUwX7u/TdnHbMKRaGNQ9GHyqfirT+f7tcnHxGqBIpR5oqnnFnNEfVTxm+k1YmX4VY5q2kVn0jT8GDyRygUHAhFMOxGg2g85/sFxSx1bJD9pRUDTX3cHgxMhmEj7z0aI7gfEZW+NrqJO5AX8=
28
- matrix:
29
- allow_failures:
30
- - rvm: ruby-head