Skip to content

Commit

Permalink
Merge pull request #165 from twitter/kill-1.8.7
Browse files Browse the repository at this point in the history
Print deprecation warning for 1.8.7 users.
  • Loading branch information
oreoshake committed Aug 26, 2015
2 parents a2664d3 + 3bdcc4f commit 022f0b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/secure_headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/secure_headers/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module SecureHeaders
VERSION = "2.2.3"
VERSION = "2.2.4"
end

0 comments on commit 022f0b5

Please sign in to comment.