Skip to content

Commit 2d6edc0

Browse files
authored
Merge pull request #164 from dev-sec/ruby-2.4
CI: update to ruby 2.4.1 and gem update
2 parents e2261fb + caba6d4 commit 2d6edc0

36 files changed

+61
-20
lines changed

.kitchen.do.local.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
driver:
55
name: digitalocean
66
size: 512mb
7+
region: nyc3
78

89
transport:
910
ssh_key: '~/.ssh/ci_id_rsa'

.rubocop.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ AllCops:
44
Exclude:
55
- vendor/**/*
66
- test/**/*
7+
TargetRubyVersion: 2.1 # we need this because of chef 12.5.1 support
78
Metrics/AbcSize:
89
Max: 29
910
Metrics/LineLength:
@@ -13,13 +14,13 @@ Metrics/MethodLength:
1314
Max: 40
1415
Style/Documentation:
1516
Enabled: false
16-
Style/DotPosition:
17+
Layout/DotPosition:
1718
EnforcedStyle: trailing
1819
Enabled: true
1920
Style/Encoding:
2021
EnforcedStyle: always
2122
Enabled: true
22-
Style/ExtraSpacing:
23+
Layout/ExtraSpacing:
2324
Exclude:
2425
- attributes/default.rb
2526
Style/HashSyntax:
@@ -30,6 +31,11 @@ Style/NumericLiterals:
3031
MinDigits: 10
3132
Style/RegexpLiteral:
3233
AllowInnerSlashes: true
33-
Style/SpaceAroundOperators:
34+
Layout/SpaceAroundOperators:
3435
Exclude:
3536
- attributes/default.rb
37+
Metrics/BlockLength:
38+
Exclude:
39+
- 'spec/**/*'
40+
Style/FrozenStringLiteralComment:
41+
Enabled: false

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ bundler_args: "--without development"
55
dist: trusty
66
cache: bundler
77

8-
rvm: 2.3.3
8+
rvm: 2.4.1
99

1010
before_install:
1111
- gem update --system # see https://github.com/bundler/bundler/issues/5357

Gemfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
source 'https://rubygems.org'
44

5-
gem 'berkshelf', '~> 5.3'
6-
gem 'chef', '~> 12.5'
5+
gem 'berkshelf', '~> 6.1'
6+
gem 'chef', '~> 12.5' # chefspec builds get stucked with 13.1
77

88
group :test do
9-
gem 'chefspec', '~> 5.3.0'
9+
gem 'chefspec', '~> 7.1.0'
1010
gem 'coveralls', require: false
11-
gem 'foodcritic', '~> 6.0'
11+
gem 'foodcritic', '~> 11.1'
1212
gem 'rake'
13-
gem 'rubocop', '~> 0.46.0'
13+
gem 'rubocop', '~> 0.49.0'
1414
gem 'simplecov', '~> 0.10'
1515
end
1616

1717
group :development do
1818
gem 'guard'
19-
gem 'guard-foodcritic', '~>2.1'
19+
gem 'guard-foodcritic', '~> 3.0'
2020
gem 'guard-rspec'
2121
gem 'guard-rubocop'
2222
end
@@ -29,5 +29,5 @@ group :integration do
2929
end
3030

3131
group :tools do
32-
gem 'github_changelog_generator', '~> 1.12.0'
32+
gem 'github_changelog_generator', '~> 1.14'
3333
end

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#!/usr/bin/env rake
21
# encoding: utf-8
32

3+
# rubocop:disable Style/SymbolArray
4+
45
require 'foodcritic'
56
require 'rspec/core/rake_task'
67
require 'rubocop/rake_task'

attributes/default.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# encoding: utf-8
2+
23
#
34
# Cookbook Name:: os-hardening
45
# Attributes:: default
@@ -76,7 +77,7 @@
7677
default['os-hardening']['auth']['pam']['passwdqc']['options'] = 'min=disabled,disabled,16,12,8'
7778
default['os-hardening']['auth']['pam']['cracklib']['options'] = 'try_first_pass retry=3 type='
7879
default['os-hardening']['auth']['pam']['pwquality']['options'] = 'try_first_pass retry=3 type='
79-
default['os-hardening']['auth']['root_ttys'] = %w(console tty1 tty2 tty3 tty4 tty5 tty6)
80+
default['os-hardening']['auth']['root_ttys'] = %w[console tty1 tty2 tty3 tty4 tty5 tty6]
8081
default['os-hardening']['auth']['uid_min'] = 1000
8182
default['os-hardening']['auth']['gid_min'] = 1000
8283
default['os-hardening']['auth']['sys_uid_min'] = 100

attributes/sysctl.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# encoding: utf-8
2+
23
#
34
# Cookbook Name:: os-hardening
45
# Attributes:: sysctl

libraries/apt_package_extras.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# encoding: utf-8
2+
23
#
34
# Cookbook Name:: os-hardening
45
# Library:: apt_package_extras

libraries/cookbook_version.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# encoding: utf-8
2+
23
#
34
# Cookbook Name:: os-hardening
45
# Library:: cookbook_version

libraries/gpgcheck.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# encoding: utf-8
2+
23
#
34
# Cookbook Name:: os-hardening
45
# Library:: gpgcheck

0 commit comments

Comments
 (0)