Skip to content

Commit

Permalink
Update to Chefstyle 1.2 + some fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Jul 14, 2020
1 parent 421013c commit 5e9a693
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 26 deletions.
14 changes: 7 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GIT
remote: https://github.com/chef/chefstyle.git
revision: d8d6cc3aa61b8ba9611be452f43618f5a6138ade
revision: 605f02c66120e999c00895fe3d53769472759aa5
branch: master
specs:
chefstyle (1.1.2)
rubocop (= 0.86.0)
chefstyle (1.2.0)
rubocop (= 0.88.0)

GIT
remote: https://github.com/chef/ohai.git
Expand Down Expand Up @@ -228,7 +228,7 @@ GEM
ipaddress (0.8.3)
iso8601 (0.13.0)
json (2.3.1)
json_schemer (0.2.11)
json_schemer (0.2.12)
ecma-re-validator (~> 0.2)
hana (~> 1.3)
regexp_parser (~> 1.5)
Expand Down Expand Up @@ -318,13 +318,13 @@ GEM
rspec_junit_formatter (0.2.3)
builder (< 4)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (0.86.0)
rubocop (0.88.0)
parallel (~> 1.10)
parser (>= 2.7.0.1)
parser (>= 2.7.1.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.7)
rexml
rubocop-ast (>= 0.0.3, < 1.0)
rubocop-ast (>= 0.1.0, < 1.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (0.1.0)
Expand Down
1 change: 0 additions & 1 deletion chef-bin/chef-bin.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "chef-bin/version"
Expand Down
1 change: 0 additions & 1 deletion chef-config/chef-config.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "chef-config/version"
Expand Down
1 change: 0 additions & 1 deletion chef-utils/chef-utils.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "chef-utils/version"
Expand Down
1 change: 0 additions & 1 deletion lib/chef/provider/mount/solaris.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Encoding: utf-8
# Author:: Hugo Fichter
# Author:: Lamont Granquist (<[email protected]>)
# Author:: Joshua Timberman (<[email protected]>)
Expand Down
1 change: 0 additions & 1 deletion lib/chef/provider/package/zypper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Authors:: Adam Jacob (<[email protected]>)
# Ionuț Arțăriși (<[email protected]>)
Expand Down
4 changes: 2 additions & 2 deletions lib/chef/resource/execute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -630,11 +630,11 @@ def qualify_user(specified_user, password = nil, specified_domain = nil)
end

# if domain is provided in both username and domain
if specified_user.kind_of?(String) && ((specified_user.include? '\\') || (specified_user.include? "@")) && specified_domain
if specified_user.is_a?(String) && ((specified_user.include? '\\') || (specified_user.include? "@")) && specified_domain
raise ArgumentError, "The domain is provided twice. Username: `#{specified_user}`, Domain: `#{specified_domain}`. Please specify domain only once."
end

if specified_user.kind_of?(String) && specified_domain.nil?
if specified_user.is_a?(String) && specified_domain.nil?
# Splitting username of format: Domain\Username
domain_and_user = user.split('\\')

Expand Down
12 changes: 6 additions & 6 deletions omnibus/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
GIT
remote: https://github.com/chef/omnibus
revision: 320d9350cdf39abdcc4c37d5bc2971b3c222a0a0
revision: 67f54efcae3ca08c7035b8835fd808f2d1c755de
branch: master
specs:
omnibus (7.0.14)
omnibus (7.0.15)
aws-sdk-s3 (~> 1)
chef-cleanroom (~> 1.0)
chef-sugar (>= 3.3)
Expand Down Expand Up @@ -32,7 +32,7 @@ GEM
artifactory (3.0.15)
awesome_print (1.8.0)
aws-eventstream (1.1.0)
aws-partitions (1.339.0)
aws-partitions (1.341.0)
aws-sdk-core (3.103.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.239.0)
Expand All @@ -41,7 +41,7 @@ GEM
aws-sdk-kms (1.36.0)
aws-sdk-core (~> 3, >= 3.99.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.73.0)
aws-sdk-s3 (1.74.0)
aws-sdk-core (~> 3, >= 3.102.1)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.1)
Expand Down Expand Up @@ -230,7 +230,7 @@ GEM
wmi-lite (~> 1.0)
mixlib-versioning (1.2.12)
molinillo (0.6.6)
multi_json (1.14.1)
multi_json (1.15.0)
multipart-post (2.1.1)
necromancer (0.5.1)
net-scp (3.0.0)
Expand Down Expand Up @@ -295,7 +295,7 @@ GEM
structured_warnings (0.4.0)
syslog-logger (1.6.8)
systemu (2.6.5)
test-kitchen (2.5.2)
test-kitchen (2.5.3)
bcrypt_pbkdf (~> 1.0)
ed25519 (~> 1.2)
license-acceptance (~> 1.0, >= 1.0.11)
Expand Down
1 change: 0 additions & 1 deletion spec/functional/resource/aix_service_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
#
# Author:: Kaustubh Deorukhkar (<[email protected]>)
# Copyright:: Copyright (c) Chef Software Inc.
Expand Down
1 change: 0 additions & 1 deletion spec/functional/resource/aixinit_service_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
#
# Author:: Kaustubh Deorukhkar (<[email protected]>)
# Copyright:: Copyright (c) Chef Software Inc.
Expand Down
1 change: 0 additions & 1 deletion spec/functional/resource/apt_package_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
#
# Author:: Daniel DeLeo (<[email protected]>)
# Copyright:: Copyright (c) Chef Software Inc.
Expand Down
1 change: 0 additions & 1 deletion spec/functional/resource/cron_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
#
# Author:: Kaustubh Deorukhkar (<[email protected]>)
# Copyright:: Copyright (c) Chef Software Inc.
Expand Down
1 change: 0 additions & 1 deletion spec/functional/resource/insserv_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
#
# Author:: Dheeraj Dubey (<[email protected]>)
# Copyright:: Copyright (c) Chef Software Inc.
Expand Down
1 change: 0 additions & 1 deletion spec/unit/mixin/securable_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
#
# Author:: Mark Mzyk (<[email protected]>)
# Copyright:: Copyright (c) Chef Software Inc.
Expand Down

0 comments on commit 5e9a693

Please sign in to comment.