Skip to content

Commit e961e86

Browse files
committed
Deprecate and bump version
1 parent 5c3bfd1 commit e961e86

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

app/controllers/content_security_policy_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class ContentSecurityPolicyController < ActionController::Base
55
CA_FILE = File.expand_path(File.join('..','..', '..', 'config', 'curl-ca-bundle.crt'), __FILE__)
66

77
def scribe
8+
warn "[DEPRECATION] ContentSecurityPolicyController is removed in 2.0"
89
csp = ::SecureHeaders::Configuration.csp || {}
910

1011
forward_endpoint = csp[:forward_endpoint]

lib/secure_headers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def set_header(name_or_header, value=nil)
126126
end
127127
end
128128

129-
129+
require "securerandom"
130130
require "secure_headers/version"
131131
require "secure_headers/header"
132132
require "secure_headers/headers/content_security_policy"

lib/secure_headers/headers/content_security_policy.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module Constants
3030
# :report used to determine what :ssl_request, :ua, and :request_uri are set to
3131
def initialize(config=nil, options={})
3232
@experimental = !!options.delete(:experimental)
33+
warn "[DEPRECATION] 'experimental' config is removed in 2.0"
3334
@controller = options.delete(:controller)
3435

3536
if options[:request]
@@ -171,6 +172,7 @@ def normalize_reporting_endpoint
171172
end
172173

173174
if forward_endpoint
175+
warn "[DEPRECATION] forwarder is removed in 2.0"
174176
@report_uri = FF_CSP_ENDPOINT
175177
end
176178
end

lib/secure_headers/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module SecureHeaders
2-
VERSION = "1.3.4"
2+
VERSION = "1.4.0"
33
end

0 commit comments

Comments
 (0)