Skip to content

Commit 282a712

Browse files
authored
Merge branch 'master' into master
2 parents d911e4c + 4deb478 commit 282a712

File tree

6 files changed

+44
-5
lines changed

6 files changed

+44
-5
lines changed

Berksfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ source 'https://supermarket.chef.io'
44

55
metadata
66

7-
cookbook 'apt'
7+
cookbook 'apt'

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
# Change Log
22

3-
## [1.0.0](https://github.com/dev-sec/chef-nginx-hardening/tree/1.0.0) (2016-06-03)
3+
## [v1.1.0](https://github.com/dev-sec/chef-nginx-hardening/tree/v1.1.0) (2016-11-20)
44
**Closed issues:**
55

6+
- release version [\#30](https://github.com/dev-sec/chef-nginx-hardening/issues/30)
67
- Improve detection [\#5](https://github.com/dev-sec/chef-nginx-hardening/issues/5)
78

89
**Merged pull requests:**
910

11+
- delete duplicate entry about server tokens [\#36](https://github.com/dev-sec/chef-nginx-hardening/pull/36) ([rndmh3ro](https://github.com/rndmh3ro))
12+
- Add fedora to platform\_family. [\#35](https://github.com/dev-sec/chef-nginx-hardening/pull/35) ([chris-rock](https://github.com/chris-rock))
13+
- remove net-ssh version pin and fix chefspec issue [\#34](https://github.com/dev-sec/chef-nginx-hardening/pull/34) ([atomic111](https://github.com/atomic111))
14+
- remove ubuntu 15.10 from kitchen.yml [\#32](https://github.com/dev-sec/chef-nginx-hardening/pull/32) ([atomic111](https://github.com/atomic111))
15+
- bump version to 1.0.0 [\#31](https://github.com/dev-sec/chef-nginx-hardening/pull/31) ([chris-rock](https://github.com/chris-rock))
1016
- change hardeni-io in dev-sec [\#29](https://github.com/dev-sec/chef-nginx-hardening/pull/29) ([atomic111](https://github.com/atomic111))
1117
- migrate to kitchen-dokken and create content for README.md [\#28](https://github.com/dev-sec/chef-nginx-hardening/pull/28) ([atomic111](https://github.com/atomic111))
1218
- update common kitchen.yml platforms [\#27](https://github.com/dev-sec/chef-nginx-hardening/pull/27) ([chris-rock](https://github.com/chris-rock))

Gemfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ source 'https://rubygems.org'
44

55
gem 'berkshelf', '~> 5.0'
66
gem 'chef', '>= 12.0'
7-
gem 'inspec', '~> 0'
7+
8+
# pin dependency for Ruby 1.9.3 since bundler is not
9+
# detecting that net-ssh 3 does not work with 1.9.3
10+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.2')
11+
gem 'listen', '~> 3.0.0'
12+
gem 'ruby_dep', '~> 1.3.0'
13+
gem 'rack', '< 2.0'
14+
end
815

916
group :test do
1017
gem 'rake'

Rakefile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
#!/usr/bin/env rake
22

3+
<<<<<<< master
34
# Style tests. cookstyle (rubocop) and Foodcritic
45
namespace :style do
56
begin
67
require 'cookstyle'
78
require 'rubocop/rake_task'
9+
=======
10+
require 'foodcritic'
11+
require 'rspec/core/rake_task'
12+
require 'rubocop/rake_task'
13+
require 'chef/cookbook/metadata'
14+
>>>>>>> master
815

916
desc 'Run Ruby style checks'
1017
RuboCop::RakeTask.new(:ruby)
@@ -69,8 +76,15 @@ task default: %w(style spec)
6976
# Automatically generate a changelog for this project. Only loaded if
7077
# the necessary gem is installed.
7178
begin
79+
# read version from metadata
80+
metadata = Chef::Cookbook::Metadata.new
81+
metadata.instance_eval(File.read('metadata.rb'))
82+
83+
# build changelog
7284
require 'github_changelog_generator/task'
73-
GitHubChangelogGenerator::RakeTask.new :changelog
85+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
86+
config.future_release = "v#{metadata.version}"
87+
end
7488
rescue LoadError
7589
puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'
7690
end

metadata.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,22 @@
2121
license 'Apache 2.0'
2222
description 'Configures nginx hardening'
2323
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
24+
<<<<<<< master
2425
version '1.0.0'
2526

2627
depends 'chef_nginx', '>= 4.0'
28+
=======
29+
version "1.1.0"
30+
31+
issues_url 'https://github.com/dev-sec/chef-nginx-hardening/issues'
32+
source_url 'https://github.com/dev-sec/chef-nginx-hardening'
33+
34+
supports 'debian', '>= 7'
35+
supports 'ubuntu', '>= 12.04'
36+
supports 'centos', '>= 6.6'
37+
38+
depends 'chef_nginx'
39+
>>>>>>> master
2740
depends 'openssl'
2841

2942
recipe 'nginx-hardening::default', 'configures nginx for hardening'

spec/recipes/default_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
before { allow_any_instance_of(Chef::Recipe).to receive(:search) }
2222
let(:runner) { ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '16.04') }
2323
let(:node) { runner.node }
24-
let(:chef_run) { runner.converge('chef_nginx::default', described_recipe) }
2524

2625
before do
2726
stub_command('/usr/sbin/apache2 -t')

0 commit comments

Comments
 (0)