Skip to content

Commit b3877b2

Browse files
authored
Merge pull request #32 from dev-sec/ap/bump-version-2.0.4
Bump version to 2.0.4 and switch to inspec 3 for check
2 parents 1eee3f0 + b2af84e commit b3877b2

File tree

6 files changed

+49
-24
lines changed

6 files changed

+49
-24
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
**/.tmp
44
Gemfile.lock
55
Berksfile.lock
6+
inspec.lock
67
nbproject

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
---
1+
sudo: false
22
language: ruby
33
cache: bundler
4+
45
rvm:
5-
- 2.3.3
6+
- 2.4.1
67

78
bundler_args: --without integration
89
script: bundle exec rake

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Change Log
22

3+
## [2.0.4](https://github.com/dev-sec/postgres-baseline/tree/2.0.4) (2019-05-08)
4+
[Full Changelog](https://github.com/dev-sec/postgres-baseline/compare/2.0.3...2.0.4)
5+
6+
**Closed issues:**
7+
8+
- Update supported versions [\#23](https://github.com/dev-sec/postgres-baseline/issues/23)
9+
10+
**Merged pull requests:**
11+
12+
- Update issue templates [\#29](https://github.com/dev-sec/postgres-baseline/pull/29) ([rndmh3ro](https://github.com/rndmh3ro))
13+
- Update baseline title [\#27](https://github.com/dev-sec/postgres-baseline/pull/27) ([chris-rock](https://github.com/chris-rock))
14+
- allows patch levels \(ie 9.5.14\) [\#26](https://github.com/dev-sec/postgres-baseline/pull/26) ([ojongerius](https://github.com/ojongerius))
15+
- Fix \#23 - update supported versions [\#25](https://github.com/dev-sec/postgres-baseline/pull/25) ([pmav99](https://github.com/pmav99))
16+
317
## [2.0.3](https://github.com/dev-sec/postgres-baseline/tree/2.0.3) (2017-12-01)
418
[Full Changelog](https://github.com/dev-sec/postgres-baseline/compare/2.0.2...2.0.3)
519

@@ -19,6 +33,7 @@
1933

2034
**Merged pull requests:**
2135

36+
- update rubocop dependency [\#28](https://github.com/dev-sec/postgres-baseline/pull/28) ([chris-rock](https://github.com/chris-rock))
2237
- update metadata [\#19](https://github.com/dev-sec/postgres-baseline/pull/19) ([chris-rock](https://github.com/chris-rock))
2338
- restrict ruby testing to version 2.3.3 and update gemfile [\#18](https://github.com/dev-sec/postgres-baseline/pull/18) ([atomic111](https://github.com/atomic111))
2439
- adjust the service for each os type and correct the control 10 [\#16](https://github.com/dev-sec/postgres-baseline/pull/16) ([atomic111](https://github.com/atomic111))

Gemfile

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

3-
gem 'highline', '~> 1.6.0'
4-
gem 'inspec', '~> 2'
5-
gem 'rack', '1.6.4'
6-
gem 'rake'
7-
gem 'rubocop', '~> 0.59.0'
3+
gem 'highline', '~> 2.0.2'
4+
gem 'inspec', '~> 3'
5+
gem 'rack', '~> 2.0.7'
6+
gem 'rake', '~> 12.3.2'
7+
gem 'rubocop', '~> 0.68.1'
88

99
group :tools do
10-
gem 'github_changelog_generator', '~> 1.12.0'
10+
gem 'github_changelog_generator', '~> 1.14.3'
11+
gem 'pry-coolline', '~> 0.2.5'
1112
end

Rakefile

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,30 @@ task default: [:lint, 'test:check']
2020
namespace :test do
2121
# run inspec check to verify that the profile is properly configured
2222
task :check do
23-
dir = File.join(File.dirname(__FILE__))
24-
sh("bundle exec inspec check #{dir}")
23+
require 'inspec'
24+
puts " * Checking profile with InSpec version: #{Inspec::VERSION}"
25+
profile = Inspec::Profile.for_target('.', backend: Inspec::Backend.create(Inspec::Config.mock))
26+
pp profile.check
2527
end
2628
end
2729

28-
# Automatically generate a changelog for this project. Only loaded if
29-
# the necessary gem is installed. By default its picking up the version from
30-
# inspec.yml. You can override that behavior with `rake changelog to=1.2.0`
31-
begin
32-
require 'yaml'
33-
metadata = YAML.load_file('inspec.yml')
34-
v = ENV['to'] || metadata['version']
35-
puts "Generate changelog for version #{v}"
36-
require 'github_changelog_generator/task'
37-
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
38-
config.future_release = v
30+
task :changelog do
31+
# Automatically generate a changelog for this project. Only loaded if
32+
# the necessary gem is installed. By default its picking up the version from
33+
# inspec.yml. You can override that behavior with `rake changelog to=1.2.0`
34+
begin
35+
require 'yaml'
36+
metadata = YAML.load_file('inspec.yml')
37+
v = ENV['to'] || metadata['version']
38+
puts " * Generating changelog for version #{v}"
39+
require 'github_changelog_generator/task'
40+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
41+
config.future_release = v
42+
config.user = 'dev-sec'
43+
config.project = 'postgres-baseline'
44+
end
45+
Rake::Task[:changelog].execute
46+
rescue LoadError
47+
puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'
3948
end
40-
rescue LoadError
41-
puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'
4249
end

inspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ copyright: DevSec Hardening Framework Team
55
copyright_email: hello@dev-sec.io
66
license: Apache-2.0
77
summary: Test-suite for best-practice postgres hardening
8-
version: 2.0.3
8+
version: 2.0.4
99
supports:
1010
- os-family: unix

0 commit comments

Comments
 (0)