diff --git a/.ruby-gemset b/.ruby-gemset deleted file mode 100644 index 5a6c467b..00000000 --- a/.ruby-gemset +++ /dev/null @@ -1 +0,0 @@ -secureheaders diff --git a/.ruby-version b/.ruby-version index 94ff29cc..8a4b2758 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.1.1 +3.1.6 \ No newline at end of file diff --git a/README.md b/README.md index 1683c84f..598cdd59 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Secure Headers ![Build + Test](https://github.com/github/secure_headers/workflows/Build%20+%20Test/badge.svg?branch=main) -**main branch represents 6.x line**. See the [upgrading to 4.x doc](docs/upgrading-to-4-0.md), [upgrading to 5.x doc](docs/upgrading-to-5-0.md), or [upgrading to 6.x doc](docs/upgrading-to-6-0.md) for instructions on how to upgrade. Bug fixes should go in the 5.x branch for now. +**main branch represents 7.x line**. See the [upgrading to 4.x doc](docs/upgrading-to-4-0.md), [upgrading to 5.x doc](docs/upgrading-to-5-0.md), [upgrading to 6.x doc](docs/upgrading-to-6-0.md) or [upgrading to 7.x doc](docs/upgrading-to-7-0.md) for instructions on how to upgrade. Bug fixes should go in the `6.x` branch for now. The gem will automatically apply several headers that are related to security. This includes: - Content Security Policy (CSP) - Helps detect/prevent XSS, mixed-content, and other classes of attack. [CSP 2 Specification](https://www.w3.org/TR/CSP2/) diff --git a/secure_headers.gemspec b/secure_headers.gemspec index af0e2187..f8b6c5b9 100644 --- a/secure_headers.gemspec +++ b/secure_headers.gemspec @@ -14,10 +14,20 @@ Gem::Specification.new do |gem| including content-security-policy, x-frame-options, strict-transport-security, etc.' gem.homepage = "https://github.com/github/secure_headers" + gem.metadata = { + "bug_tracker_uri" => "https://github.com/github/secure_headers/issues", + "changelog_uri" => "https://github.com/github/secure_headers/blob/master/CHANGELOG.md", + "documentation_uri" => "https://rubydoc.info/gems/secure_headers", + "homepage_uri" => gem.homepage, + "source_code_uri" => "https://github.com/github/secure_headers", + "rubygems_mfa_required" => "true", + } gem.license = "MIT" - gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) - gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) } - gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) + + gem.files = Dir["bin/**/*", "lib/**/*", "README.md", "CHANGELOG.md", "LICENSE", "Gemfile", "secure_headers.gemspec"] gem.require_paths = ["lib"] + + gem.extra_rdoc_files = Dir["README.md", "CHANGELOG.md", "LICENSE"] + gem.add_development_dependency "rake" end