rubocop-itamae 0.1.0.alpha2 → 0.1.4

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: 8a6dcc9ca91e8578aacc2f1392c3c6980248910bf23ef70344444f08bf0c8845
4
- data.tar.gz: 74b0f1f90551217e6e3f28f85cf903e90d2beedb9472a91a7b5fc3c11890ebf9
3
+ metadata.gz: c0545cb256f4f5641e6587cf42e66b4a86593ee93309b6427d82aae32144d5ff
4
+ data.tar.gz: 05addbf3baaac6c8c6746a2357754533daddec4e4bb01db38208abd8fbc377a9
5
5
  SHA512:
6
- metadata.gz: 741d394a7a7c555c7098ee4e99438cfcf742b1ecc61d20098c823b0ac888bba8f71d3f88d4a978274d885125fee3f985f29fa57f793ebbcab532b3b2bcfd789e
7
- data.tar.gz: 0e362de43e270348505adf76d17e42cac8b22e6022f1a5299e5f96880064ab317362ab00d4bee54346d47e1ce19f11f7e96a5c4ffb0a80c4112486adccf9406b
6
+ metadata.gz: a573df0167945879e173318f7c6e305bc31864a36fa269bf98792e09f29add35cb24bfe73ebc1d766db0436e0b148c6cb6f3a0819ddac984967f414cd65c17a2
7
+ data.tar.gz: a643297e792c09258e0855686c7ed071492c2a1e51a8730ae68fc9cb2f1ff2c29483c192f4879baeb05d6f4a5b27f5d164a2cd4dd695f7c040eec144148c47b1
@@ -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,22 @@
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"
9
15
 
10
- Metrics/LineLength:
16
+ Naming/FileName:
11
17
  Exclude:
12
- - "spec/spec_helper.rb"
18
+ - "lib/rubocop-itamae.rb"
19
+ - "rubocop-itamae.gemspec"
13
20
 
14
21
  Style/HashSyntax:
15
22
  Exclude:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.0...master)
2
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.4...master)
3
+
4
+ ## v0.1.4
5
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.3...v0.1.4)
6
+
7
+ * Requires rubocop 1.13.0+ and drop ruby 2.4
8
+ * https://github.com/sue445/rubocop-itamae/pull/51
9
+
10
+ ## v0.1.3
11
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.2...v0.1.3)
12
+
13
+ * Fixed. failed spec since rubocop v0.87.0
14
+ * https://github.com/sue445/rubocop-itamae/pull/47
15
+ * Migrate to rubocop v1 syntax
16
+ * https://github.com/sue445/rubocop-itamae/pull/46
17
+
18
+ ## v0.1.2
19
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.1...v0.1.2)
20
+
21
+ * Upgrade rubocop and drop ruby 2.3
22
+ * https://github.com/sue445/rubocop-itamae/pull/43
23
+
24
+ ## v0.1.1
25
+ [full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.0...v0.1.1)
26
+
27
+ * Fix can't load `RangeHelp` error
28
+ * https://github.com/sue445/rubocop-itamae/pull/16
3
29
 
4
30
  ## v0.1.0
5
31
  * first release
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
 
@@ -27,9 +27,7 @@ Or install it yourself as:
27
27
  Add this line to your application's `.rubocop.yml`
28
28
 
29
29
  ```yml
30
- inherit_gem:
31
- rubocop-itamae:
32
- - config/default.yml
30
+ require: rubocop-itamae
33
31
  ```
34
32
 
35
33
  ## Development
@@ -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)
@@ -6,6 +6,8 @@ module RuboCop
6
6
  # Checks whether the recipe is placed under `cookbooks` dir
7
7
  # or `roles` dir.
8
8
  #
9
+ # @see https://github.com/itamae-kitchen/itamae/wiki/Best-Practice#directory-structure
10
+ #
9
11
  # @example
10
12
  # # bad
11
13
  # default.rb
@@ -15,28 +17,25 @@ module RuboCop
15
17
  # cookbooks/nginx/default.rb
16
18
  # roles/web.rb
17
19
  #
18
- class RecipePath < Cop
20
+ class RecipePath < Base
19
21
  include RangeHelp
20
22
 
21
23
  MSG = 'Prefer recipe to placed under `cookbooks` dir' \
22
- ' or `roles` dir.'.freeze
24
+ ' or `roles` dir.'
23
25
 
24
- def investigate(processed_source)
26
+ def on_new_investigation
25
27
  file_path = processed_source.file_path
26
28
  return if config.file_to_include?(file_path)
27
29
 
28
- for_bad_filename(file_path) do |range, msg|
29
- add_offense(nil, location: range, message: msg)
30
- end
30
+ add_global_offense if bad_filename?(file_path)
31
31
  end
32
32
 
33
33
  private
34
34
 
35
- def for_bad_filename(file_path)
35
+ def bad_filename?(file_path)
36
36
  return unless File.extname(file_path) == '.rb'
37
- return if file_path =~ %r{/(cookbooks|roles)/}
38
37
 
39
- yield source_range(processed_source.buffer, 1, 0), MSG
38
+ !file_path.match?(%r{/(cookbooks|roles)/})
40
39
  end
41
40
  end
42
41
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Itamae
5
- VERSION = '0.1.0.alpha2'.freeze
5
+ VERSION = '0.1.4'
6
6
  end
7
7
  end
@@ -22,14 +22,15 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_dependency 'rubocop'
25
+ spec.required_ruby_version = '>= 2.5.0'
26
26
 
27
- spec.add_development_dependency 'bundler', '~> 1.16'
28
- spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.0'
27
+ spec.add_dependency 'rubocop', '>= 1.13.0'
28
+
29
+ spec.add_development_dependency 'bundler', '>= 1.16'
29
30
  spec.add_development_dependency 'coveralls'
30
- spec.add_development_dependency 'pry-byebug'
31
31
  spec.add_development_dependency 'rake', '>= 11.0'
32
32
  spec.add_development_dependency 'rspec', '~> 3.0'
33
- spec.add_development_dependency 'simplecov'
33
+ spec.add_development_dependency 'rubocop_auto_corrector'
34
+ spec.add_development_dependency 'simplecov', '< 0.18.0'
34
35
  spec.add_development_dependency 'yard'
35
36
  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.0.alpha2
4
+ version: 0.1.4
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-16 00:00:00.000000000 Z
11
+ date: 2021-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,42 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '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'
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
- - !ruby/object:Gem::Dependency
42
- name: codeclimate-test-reporter
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 1.0.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 1.0.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: coveralls
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,20 +52,6 @@ dependencies:
66
52
  - - ">="
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: pry-byebug
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
55
  - !ruby/object:Gem::Dependency
84
56
  name: rake
85
57
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +81,7 @@ dependencies:
109
81
  - !ruby/object:Gem::Version
110
82
  version: '3.0'
111
83
  - !ruby/object:Gem::Dependency
112
- name: simplecov
84
+ name: rubocop_auto_corrector
113
85
  requirement: !ruby/object:Gem::Requirement
114
86
  requirements:
115
87
  - - ">="
@@ -122,6 +94,20 @@ dependencies:
122
94
  - - ">="
123
95
  - !ruby/object:Gem::Version
124
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "<"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.18.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "<"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.18.0
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: yard
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -144,10 +130,10 @@ extensions: []
144
130
  extra_rdoc_files: []
145
131
  files:
146
132
  - ".coveralls.yml"
133
+ - ".github/workflows/test.yml"
147
134
  - ".gitignore"
148
135
  - ".rspec"
149
136
  - ".rubocop.yml"
150
- - ".travis.yml"
151
137
  - ".yardopts"
152
138
  - CHANGELOG.md
153
139
  - Gemfile
@@ -171,7 +157,7 @@ homepage: https://github.com/sue445/rubocop-itamae
171
157
  licenses:
172
158
  - MIT
173
159
  metadata: {}
174
- post_install_message:
160
+ post_install_message:
175
161
  rdoc_options: []
176
162
  require_paths:
177
163
  - lib
@@ -179,16 +165,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
165
  requirements:
180
166
  - - ">="
181
167
  - !ruby/object:Gem::Version
182
- version: '0'
168
+ version: 2.5.0
183
169
  required_rubygems_version: !ruby/object:Gem::Requirement
184
170
  requirements:
185
- - - ">"
171
+ - - ">="
186
172
  - !ruby/object:Gem::Version
187
- version: 1.3.1
173
+ version: '0'
188
174
  requirements: []
189
- rubyforge_project:
190
- rubygems_version: 2.7.6
191
- signing_key:
175
+ rubygems_version: 3.2.3
176
+ signing_key:
192
177
  specification_version: 4
193
178
  summary: Code style checking for itamae recipes
194
179
  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