diff --git a/lib/secure_headers.rb b/lib/secure_headers.rb index e0e6142f..10ad906c 100644 --- a/lib/secure_headers.rb +++ b/lib/secure_headers.rb @@ -39,6 +39,9 @@ def secure_headers_options end def ensure_security_headers options = {} + if RUBY_VERSION == "1.8.7" + warn "[DEPRECATION] secure_headers ruby 1.8.7 support will dropped in the next release" + end self.secure_headers_options = options before_filter :prep_script_hash before_filter :set_hsts_header diff --git a/lib/secure_headers/version.rb b/lib/secure_headers/version.rb index 97a63c67..767e57ce 100644 --- a/lib/secure_headers/version.rb +++ b/lib/secure_headers/version.rb @@ -1,3 +1,3 @@ module SecureHeaders - VERSION = "2.2.3" + VERSION = "2.2.4" end