Skip to content

Commit 9c61942

Browse files
authored
Merge pull request #42 from dev-sec/fix-github-resolve
fix github resolve
2 parents f6a72e8 + a9333d4 commit 9c61942

File tree

6 files changed

+25
-22
lines changed

6 files changed

+25
-22
lines changed

Berksfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# encoding: utf-8
2-
32
source 'https://supermarket.chef.io'
43

54
metadata
65

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

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# Change Log
22

3-
## [v1.1.0](https://github.com/dev-sec/chef-nginx-hardening/tree/v1.1.0) (2016-11-20)
3+
## [v2.0.0](https://github.com/dev-sec/chef-nginx-hardening/tree/v2.0.0) (2016-12-21)
4+
[Full Changelog](https://github.com/dev-sec/chef-nginx-hardening/compare/v1.1.0...v2.0.0)
5+
6+
**Closed issues:**
7+
8+
- Upload to supermarket? [\#38](https://github.com/dev-sec/chef-nginx-hardening/issues/38)
9+
10+
**Merged pull requests:**
11+
12+
- Added sources and issue url, for the Chef Supermarket reference [\#40](https://github.com/dev-sec/chef-nginx-hardening/pull/40) ([enzor](https://github.com/enzor))
13+
- Switch to chef\_nginx and update testing [\#39](https://github.com/dev-sec/chef-nginx-hardening/pull/39) ([tas50](https://github.com/tas50))
14+
- move to chef\_nginx fork [\#37](https://github.com/dev-sec/chef-nginx-hardening/pull/37) ([mburns](https://github.com/mburns))
15+
16+
## [v1.1.0](https://github.com/dev-sec/chef-nginx-hardening/tree/v1.1.0) (2016-11-21)
417
**Closed issues:**
518

619
- release version [\#30](https://github.com/dev-sec/chef-nginx-hardening/issues/30)

Rakefile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
#!/usr/bin/env rake
22

3-
<<<<<<< master
43
# Style tests. cookstyle (rubocop) and Foodcritic
54
namespace :style do
65
begin
76
require 'cookstyle'
87
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
15-
168
desc 'Run Ruby style checks'
179
RuboCop::RakeTask.new(:ruby)
1810
rescue LoadError => e
@@ -26,7 +18,7 @@ require 'chef/cookbook/metadata'
2618
FoodCritic::Rake::LintTask.new(:chef) do |t|
2719
t.options = {
2820
fail_tags: ['any'],
29-
progress: true
21+
progress: true,
3022
}
3123
end
3224
rescue LoadError
@@ -36,6 +28,7 @@ end
3628

3729
desc 'Run all style checks'
3830
task style: ['style:chef', 'style:ruby']
31+
task lint: ['style']
3932

4033
# ChefSpec
4134
begin
@@ -76,6 +69,8 @@ task default: %w(style spec)
7669
# Automatically generate a changelog for this project. Only loaded if
7770
# the necessary gem is installed.
7871
begin
72+
require 'chef/cookbook/metadata'
73+
7974
# read version from metadata
8075
metadata = Chef::Cookbook::Metadata.new
8176
metadata.instance_eval(File.read('metadata.rb'))

attributes/hardening.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
'more_clear_headers' => [
4545
'\'Server\'',
46-
'\'X-Powered-By\''
46+
'\'X-Powered-By\'',
4747
],
4848

4949
'client_header_buffer_size' => '1k',
@@ -67,8 +67,8 @@
6767
'X-Content-Type-Options nosniff',
6868

6969
# XSS filter
70-
'X-XSS-Protection "1; mode=block"'
71-
]
70+
'X-XSS-Protection "1; mode=block"',
71+
],
7272

7373
}
7474

metadata.rb

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@
2121
license 'Apache 2.0'
2222
description 'Configures nginx hardening'
2323
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
24-
<<<<<<< master
25-
version '1.0.0'
2624

27-
depends 'chef_nginx', '>= 4.0'
28-
=======
29-
version "1.1.0"
25+
version '2.0.0'
3026

3127
issues_url 'https://github.com/dev-sec/chef-nginx-hardening/issues'
3228
source_url 'https://github.com/dev-sec/chef-nginx-hardening'
@@ -35,8 +31,7 @@
3531
supports 'ubuntu', '>= 12.04'
3632
supports 'centos', '>= 6.6'
3733

38-
depends 'chef_nginx'
39-
>>>>>>> master
34+
depends 'chef_nginx', '>= 4.0'
4035
depends 'openssl'
4136

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

spec/recipes/default_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
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) }
2425

2526
before do
2627
stub_command('/usr/sbin/apache2 -t')

0 commit comments

Comments
 (0)