tasks/helpers.rb in chef-dk-1.2.22 vs tasks/helpers.rb in chef-dk-1.3.40

- old
+ new

@@ -15,11 +15,11 @@ # limitations under the License. # # Putting this method in a module so it is easier to test module RakeDependenciesTaskHelpers - def update_gemfile_from_stable(gemfile, product_name, gemfile_name, version_prefix="") + def update_gemfile_from_stable(gemfile, product_name, gemfile_name, version_prefix = "") version = get_latest_version_for(product_name) version = "#{version_prefix}#{version}" found = gemfile.sub!(/^(\s*gem "#{gemfile_name}", github: "chef\/#{gemfile_name}", branch: ")([^"]*)(")$/m) do if $2 != "#{version}" puts "Setting #{product_name} version in Gemfile to #{version} (was #{$2})" @@ -33,10 +33,10 @@ end gemfile end def get_latest_version_for(product_name, channel_name = :stable) - require 'mixlib/install' + require "mixlib/install" puts "Getting latest '#{channel_name}' channel #{product_name} version ..." options = { channel: channel_name.to_sym, product_version: :latest, product_name: product_name,