-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from Rubocop to Chefstyle and resolve all warnings
Signed-off-by: Tim Smith <[email protected]>
- Loading branch information
1 parent
7dd7f44
commit 988e612
Showing
16 changed files
with
268 additions
and
333 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# encoding: utf-8 | ||
|
||
source 'https://supermarket.chef.io' | ||
source "https://supermarket.chef.io" | ||
|
||
cookbook 'apt' | ||
cookbook 'yum' | ||
cookbook 'os_prepare', path: './test/cookbooks/os_prepare' | ||
cookbook 'ssh-hardening', git: 'https://github.com/dev-sec/chef-ssh-hardening.git' | ||
cookbook "apt" | ||
cookbook "yum" | ||
cookbook "os_prepare", path: "./test/cookbooks/os_prepare" | ||
cookbook "ssh-hardening", git: "https://github.com/dev-sec/chef-ssh-hardening.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
# -*- encoding: utf-8 -*- | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
gemspec | ||
|
||
group :guard do | ||
gem 'guard-rspec', :require => nil | ||
gem 'guard-rubocop', :require => nil | ||
gem "guard-rspec", :require => nil | ||
gem "guard-rubocop", :require => nil | ||
end | ||
|
||
group :test do | ||
gem 'bundler', '~> 1.5' | ||
gem 'minitest', '~> 5.5' | ||
gem 'rake', '~> 10' | ||
gem 'rubocop', '~> 0.32' | ||
gem 'concurrent-ruby', '~> 0.9' | ||
gem 'codeclimate-test-reporter', :require => nil | ||
gem "bundler", "~> 1.5" | ||
gem "minitest", "~> 5.5" | ||
gem "rake", "~> 10" | ||
gem "chefstyle", "~> 0.4.0" | ||
gem "concurrent-ruby", "~> 0.9" | ||
gem "codeclimate-test-reporter", :require => nil | ||
end | ||
|
||
# pin dependency for Ruby 1.9.3 since bundler is not | ||
# detecting that net-ssh 3 does not work with 1.9.3 | ||
if Gem::Version.new(RUBY_VERSION) <= Gem::Version.new('1.9.3') | ||
gem 'net-ssh', '~> 2.9' | ||
if Gem::Version.new(RUBY_VERSION) <= Gem::Version.new("1.9.3") | ||
gem "net-ssh", "~> 2.9" | ||
end | ||
|
||
group :integration do | ||
gem 'berkshelf', '>= 4.2.3' | ||
gem 'kitchen-dokken' | ||
gem "berkshelf", ">= 4.2.3" | ||
gem "kitchen-dokken" | ||
end | ||
|
||
group :tools do | ||
gem 'pry', '~> 0.10' | ||
gem 'github_changelog_generator', '1.11.3' | ||
gem "pry", "~> 0.10" | ||
gem "github_changelog_generator", "1.11.3" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
# encoding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
lib = File.expand_path("../lib", __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'kitchen/verifier/inspec_version' | ||
require 'English' | ||
require "kitchen/verifier/inspec_version" | ||
require "English" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'kitchen-inspec' | ||
spec.name = "kitchen-inspec" | ||
spec.version = Kitchen::Verifier::INSPEC_VERSION | ||
spec.license = 'Apache-2.0' | ||
spec.authors = ['Fletcher Nichol'] | ||
spec.email = ['[email protected]'] | ||
spec.license = "Apache-2.0" | ||
spec.authors = ["Fletcher Nichol"] | ||
spec.email = ["[email protected]"] | ||
|
||
spec.summary = 'A Test Kitchen Verifier for InSpec' | ||
spec.summary = "A Test Kitchen Verifier for InSpec" | ||
spec.description = spec.summary | ||
spec.homepage = 'http://github.com/chef/kitchen-inspec' | ||
spec.homepage = "http://github.com/chef/kitchen-inspec" | ||
|
||
spec.files = `git ls-files -z`.split("\x0") | ||
.reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
spec.bindir = 'exe' | ||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ['lib'] | ||
spec.add_dependency 'inspec', '>=0.22.0', '<1.0.0' | ||
spec.add_dependency 'test-kitchen', '~> 1.6' | ||
spec.add_development_dependency 'countloc', '~> 0.4' | ||
spec.add_development_dependency 'bundler', '~> 1.10' | ||
spec.add_development_dependency 'rake', '~> 10.0' | ||
spec.add_development_dependency 'rspec' | ||
spec.add_development_dependency 'simplecov', '~> 0.10' | ||
spec.require_paths = ["lib"] | ||
spec.add_dependency "inspec", ">=0.22.0", "<1.0.0" | ||
spec.add_dependency "test-kitchen", "~> 1.6" | ||
spec.add_development_dependency "countloc", "~> 0.4" | ||
spec.add_development_dependency "bundler", "~> 1.10" | ||
spec.add_development_dependency "rake", "~> 10.0" | ||
spec.add_development_dependency "rspec" | ||
spec.add_development_dependency "simplecov", "~> 0.10" | ||
# style and complexity libraries are tightly version pinned as newer releases | ||
# may introduce new and undesireable style choices which would be immediately | ||
# enforced in CI | ||
spec.add_development_dependency 'finstyle', '1.5.0' | ||
spec.add_development_dependency "chefstyle", "0.4.0" | ||
end |
Oops, something went wrong.