secure_headers 3.0.0.pre1 → 3.0.0.pre2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of secure_headers might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54b745f9955363c185766acb0a39ebf913a88151
4
- data.tar.gz: 315ec9e43586e58f76c359b51c9ed3cdc83eb51e
3
+ metadata.gz: d6e439e921b5270ed007c604d2287b04a5ef691f
4
+ data.tar.gz: 6ae708cd125952e4ad7f24121d1be4f5b8d54d1d
5
5
  SHA512:
6
- metadata.gz: 6842017c4fe05a04c391f8fb447fb524b77ec8577348b5f44c062a772565a32032a71801529ed24e918570a1b55defb4a273240c9c6edbfcd9eb222836c95428
7
- data.tar.gz: c54f33d09186b27857246371a0af1a3d4f7699dc0d0796b532255aa0513c848810570271a78263b59f57a510fb00a9529b3454ddddea7a118dad088b574ff188
6
+ metadata.gz: a426253499c8e6e1c70d6f1f11cde022d90f4ea9dc8db1073f1055ee0c82e6be007b2746ff5e98cb4e12c0f0064b7e656c4861e97bf10fd01f156f8e78d551a1
7
+ data.tar.gz: 91ef0e9f9f32d311389d35c0caf3b607da10b6e8fc029d1a4a1514c35ca2df92b1a9dbda224d6e4808d39517dc4d2ef62317bcf1c7f3d1071cd37231fe461141
data/README.md CHANGED
@@ -24,7 +24,7 @@ All `nil` values will fallback to their default value. `SecureHeaders::OPT_OUT`
24
24
 
25
25
  ```ruby
26
26
  SecureHeaders::Configuration.default do |config|
27
- config.hsts = 20.years.to_i.to_s
27
+ config.hsts = "max-age=#{20.years.to_i}"
28
28
  config.x_frame_options = "DENY"
29
29
  config.x_content_type_options = "nosniff"
30
30
  config.x_xss_protection = "1; mode=block"
@@ -4,7 +4,7 @@ module SecureHeaders
4
4
  # Instructs secure_headers to append a nonce to style/script-src directives.
5
5
  #
6
6
  # Returns an html-safe style tag with the nonce attribute.
7
- def nonced_style_tag(content_or_options = nil, &block)
7
+ def nonced_style_tag(content_or_options = {}, &block)
8
8
  nonced_tag(:style, content_or_options, block)
9
9
  end
10
10
 
@@ -12,7 +12,7 @@ module SecureHeaders
12
12
  # Instructs secure_headers to append a nonce to style/script-src directives.
13
13
  #
14
14
  # Returns an html-safe script tag with the nonce attribute.
15
- def nonced_javascript_tag(content_or_options = nil, &block)
15
+ def nonced_javascript_tag(content_or_options = {}, &block)
16
16
  nonced_tag(:script, content_or_options, block)
17
17
  end
18
18
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "secure_headers"
4
- gem.version = "3.0.0.pre1"
4
+ gem.version = "3.0.0.pre2"
5
5
  gem.authors = ["Neil Matatall"]
6
6
  gem.email = ["neil.matatall@gmail.com"]
7
7
  gem.description = 'Security related headers all in one gem.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secure_headers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre1
4
+ version: 3.0.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neil Matatall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-11 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake