lib/rubocop/cop/chef/deprecation/deprecated_chefspec_platform.rb in cookstyle-6.11.4 vs lib/rubocop/cop/chef/deprecation/deprecated_chefspec_platform.rb in cookstyle-6.12.6

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true # # Copyright:: 2020, Chef Software Inc. # Author:: Tim Smith (<tsmith@chef.io>) # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -26,10 +27,10 @@ # let(:chef_run) { ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '14.04') } # class DeprecatedChefSpecPlatform < Cop include RuboCop::Chef::CookbookHelpers - MSG = "Use currently supported platforms in ChefSpec listed at https://github.com/chefspec/fauxhai/blob/master/PLATFORMS.md. Fauxhai / ChefSpec will perform fuzzy matching on platform version so it's always best to be less specific ie. 10 instead of 10.3".freeze + MSG = "Use currently supported platforms in ChefSpec listed at https://github.com/chefspec/fauxhai/blob/master/PLATFORMS.md. Fauxhai / ChefSpec will perform fuzzy matching on platform version so it's always best to be less specific ie. 10 instead of 10.3" Gem::Dependency.new('', ['~> 1.4.5', '>= 1.4.6']).match?('', '1.4.6') DEPRECATED_MAPPING = { 'amazon' => {