Skip to content

Commit 0403174

Browse files
committed
update rubocop dependency
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
1 parent 1528d2c commit 0403174

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.rubocop.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
AllCops:
33
Exclude:
44
- vendor/**/*
5-
- "*/puppet/Puppetfile"
6-
- "*/puppet/.tmp/**/*"
7-
TargetRubyVersion: 1.9
5+
Style/Encoding:
6+
Enabled: false
87
Documentation:
98
Enabled: false
109
AlignParameters:

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
source 'https://rubygems.org'
22

33
gem 'highline', '~> 1.6.0'
4-
gem 'inspec', '~> 1'
4+
gem 'inspec', '~> 2'
55
gem 'rack', '1.6.4'
66
gem 'rake'
7-
gem 'rubocop', '~> 0.46.0'
7+
gem 'rubocop', '~> 0.59.0'
88

99
group :tools do
1010
gem 'github_changelog_generator', '~> 1.12.0'

Rakefile

100644100755
File mode changed.

controls/postgres_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# encoding: utf-8
2-
#
2+
33
# Copyright 2016, Patrick Muench
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -241,7 +241,7 @@
241241
control 'postgres-11' do
242242
impact 1.0
243243
title 'SSL is deactivated just for testing the chef-hardening-cookbook. It is recommended to activate ssl communication.'
244-
desc 'The chef-hardening-cookbook will delete the links from #var/lib/postgresql/#{node[\'postgresql\'][\'version\']}/main/server.crt to etc/ssl/certs/ssl-cert-snakeoil.pem and #var/lib/postgresql/#{node[\'postgresql\'][\'version\']}/main/server.key to etc/ssl/private/ssl-cert-snakeoil.key on Debian systems. This certificates are self-signed (see http://en.wikipedia.org/wiki/Snake_oil_%28cryptography%29) and therefore not trusted. You have to #provide our own trusted certificates for SSL.'
244+
desc 'The hardening-cookbook will delete the links from #var/lib/postgresql/%postgresql-version%/main/server.crt to etc/ssl/certs/ssl-cert-snakeoil.pem and #var/lib/postgresql/%postgresql-version%/main/server.key to etc/ssl/private/ssl-cert-snakeoil.key on Debian systems. This certificates are self-signed (see http://en.wikipedia.org/wiki/Snake_oil_%28cryptography%29) and therefore not trusted. You have to #provide our own trusted certificates for SSL.'
245245
describe postgres_conf(POSTGRES_CONF_PATH) do
246246
its('ssl') { should eq 'off' }
247247
end

0 commit comments

Comments
 (0)