lib/rubocop/cop/chef/deprecation/deprecated_chefspec_platform.rb in cookstyle-7.31.0 vs lib/rubocop/cop/chef/deprecation/deprecated_chefspec_platform.rb in cookstyle-7.31.1

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true # -# Copyright:: 2020, Chef Software Inc. +# Copyright:: 2020-2022, Chef Software Inc. # Author:: Tim Smith (<tsmith@chef.io>) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -32,10 +32,11 @@ MSG = "Use currently supported platforms in ChefSpec listed at https://github.com/chefspec/fauxhai/blob/main/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" DEPRECATED_MAPPING = { 'amazon' => { '2017.12' => '2', + '> 2010' => true, }, 'aix' => { '~> 6' => true, }, 'smartos' => { @@ -44,19 +45,19 @@ 'ubuntu' => { '< 16.04' => true, '> 16.04, < 18.04' => true, }, 'fedora' => { - '< 31' => '31', + '< 32' => '32', }, 'freebsd' => { - '~> 11.0, < 11.2' => '11', '= 12.0' => '12', - '< 11' => true, + '< 12' => true, }, 'mac_os_x' => { '< 10.14' => '10.15', + ' = 11.0' => '11', }, 'suse' => { '~> 12.0, < 12.4' => '12', '< 12' => true, }, @@ -65,20 +66,20 @@ '~> 42.0' => true, '~> 15.0, < 15.2' => '15', }, 'debian' => { '< 9' => true, - '> 9.0, < 9.11' => '9', + '> 9.0, < 9.12' => '9', }, 'centos' => { '< 6.0' => true, '~> 6.0, < 6.10' => '6', - '~> 7.0, < 7.7 ' => '7', + '~> 7.0, < 7.8 ' => '7', }, 'redhat' => { '< 6.0' => true, '~> 6.0, < 6.10' => '6', - '~> 7.0, < 7.7' => '7', + '~> 7.0, < 7.8' => '7', }, 'oracle' => { '< 6.0' => true, '~> 6.0, < 6.10' => '6', '~> 7.0, < 7.6 ' => '7',