diff --git a/post-bundle-install.rb b/post-bundle-install.rb index d35308c70..f20728b8a 100644 --- a/post-bundle-install.rb +++ b/post-bundle-install.rb @@ -15,9 +15,9 @@ matches = File.basename(gempath).match(/.*-[A-Fa-f0-9]{12}/) next unless matches - %w[chef-utils chef-config].each do |gem_need_install| + %w{chef-utils chef-config}.each do |gem_need_install| dir_path = "#{gempath}/#{gem_need_install}" - gem_name = File.basename(Dir["#{dir_path}/*.gemspec"].first, ".gemspec") + gem_name = File.basename(Dir["#{dir_path}/*.gemspec"].first, ".gemspec") # FIXME: should strip any valid ruby platform off of the gem_name if it matches next unless gem_name @@ -25,8 +25,8 @@ puts "re-installing #{gem_name}..." Dir.chdir(dir_path) do - system("gem build #{gem_name}.gemspec") or raise "gem build failed" - system("gem install #{gem_name}*.gem --conservative --minimal-deps --no-document") or raise "gem install failed" + system("gem build #{gem_name}.gemspec") or raise "gem build failed" + system("gem install #{gem_name}*.gem --conservative --minimal-deps --no-document") or raise "gem install failed" end end end