diff --git a/CHANGELOG.md b/CHANGELOG.md index 66b75778..7727ed6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,9 @@ This file is used to list changes made in the last 3 major versions of the postg Standardise files with files in sous-chefs/repo-management -Standardise files with files in sous-chefs/repo-management +## 12.0.1 - *2024-11-10* -Standardise files with files in sous-chefs/repo-management +- resolved cookstyle error: `libraries/sql/_connection.rb:77:11` refactor: `Chef/Style/UnnecessaryPlatformCaseStatement` ## 12.0.0 - *2024-11-05* diff --git a/libraries/sql/_connection.rb b/libraries/sql/_connection.rb index aa83ccce..2ca4e5cb 100644 --- a/libraries/sql/_connection.rb +++ b/libraries/sql/_connection.rb @@ -74,8 +74,7 @@ def install_pg_gem 'libpq5' end - case node['platform_family'] - when 'rhel' + if platform_family?('rhel') case node['platform_version'].to_i when 7 declare_resource(:package, 'epel-release') { compile_time(true) } diff --git a/metadata.rb b/metadata.rb index 4994951c..2bb273be 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,7 +3,7 @@ maintainer_email 'help@sous-chefs.org' license 'Apache-2.0' description 'Installs and configures postgresql for clients or servers' -version '12.0.0' +version '12.0.1' source_url 'https://github.com/sous-chefs/postgresql' issues_url 'https://github.com/sous-chefs/postgresql/issues' chef_version '>= 16.0'