Skip to content

Commit

Permalink
chefstyle myself
Browse files Browse the repository at this point in the history
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
  • Loading branch information
lamont-granquist committed Jan 15, 2019
1 parent f111e6c commit 8638257
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bin/chefstyle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env ruby
# -*- encoding: utf-8 -*-

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), %w[.. lib])
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), %w{.. lib})

require "chefstyle"

if ARGV.size == 1 && %w[-v --version].include?(ARGV.first)
if ARGV.size == 1 && %w{-v --version}.include?(ARGV.first)
puts "Chefstyle #{Chefstyle::VERSION}"
print " * RuboCop "
end
Expand Down
8 changes: 4 additions & 4 deletions chefstyle.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'chefstyle/version'
require "chefstyle/version"

Gem::Specification.new do |spec|
spec.name = "chefstyle"
Expand All @@ -14,8 +14,8 @@ Gem::Specification.new do |spec|
spec.license = "Apache-2.0"
spec.required_ruby_version = ">= 2.2"

spec.files = %w{LICENSE chefstyle.gemspec Gemfile} + Dir.glob("{bin,config,lib}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
spec.executables = %w[chefstyle]
spec.files = %w{LICENSE chefstyle.gemspec Gemfile} + Dir.glob("{bin,config,lib}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
spec.executables = %w{chefstyle}
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler"
Expand Down

0 comments on commit 8638257

Please sign in to comment.