Skip to content

Commit 022f0b5

Browse files
committed
Merge pull request #165 from twitter/kill-1.8.7
Print deprecation warning for 1.8.7 users.
2 parents a2664d3 + 3bdcc4f commit 022f0b5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/secure_headers.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def secure_headers_options
3939
end
4040

4141
def ensure_security_headers options = {}
42+
if RUBY_VERSION == "1.8.7"
43+
warn "[DEPRECATION] secure_headers ruby 1.8.7 support will dropped in the next release"
44+
end
4245
self.secure_headers_options = options
4346
before_filter :prep_script_hash
4447
before_filter :set_hsts_header

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 = "2.2.3"
2+
VERSION = "2.2.4"
33
end

0 commit comments

Comments
 (0)