rails-auth 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d372187c646424f03fc0c51565e968dcbb3f6a4
4
- data.tar.gz: 5de2b2d0f88d7112402a9dee2680772fd04e23a9
3
+ metadata.gz: 859d0073cd6debe3a360ae76e53e1776515fed4f
4
+ data.tar.gz: 94af3585ac7dec94d5f1c4abe30e71abadcb1a0c
5
5
  SHA512:
6
- metadata.gz: 0a8445e89067478c73a7a98a7e4bec6ede6986e883af8e252ee488853b281f1d626bf651a740e178e4ec29d3f907e34d09445ad64a36feefdef14b310e6a2ca6
7
- data.tar.gz: 52f2b7cc60c0ca6ec7a71cd167e8d2a2041a9b650e20949aa8f9d841d06e3fdb1ae83a83693dbe2321ebf43eb4a7281f886ec740f40eea74ec986100aa6aadc8
6
+ metadata.gz: 9e1524d42f7431b3bc348ca4f31cafc4adbd0ae21fc7cd10545449d7bc8b383ba7eadd84d53be205c7aa06683d3002a25de294699edd58d60326ca8cc550d758
7
+ data.tar.gz: 2272cf19faa31c19dfede2f602752e873c126d09a4dc31773e18a63ba963f0e3d2c42efe789e23d24a5ea5f7e6b7de0ce2abfbaa5fbd2b51b451d86afb80a119
data/CHANGES.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 0.5.2 (2016-04-27)
2
+
3
+ * [#21](https://github.com/square/rails-auth/pull/21)
4
+ Send correct Content-Type on ErrorPage middleware.
5
+ ([@tarcieri])
6
+
1
7
  ### 0.5.1 (2016-04-24)
2
8
 
3
9
  * [#20](https://github.com/square/rails-auth/pull/20)
@@ -14,6 +14,7 @@ module Rails
14
14
  # This is just in case someone pulls off reflective XSS, but hopefully all values are
15
15
  # properly escaped on the page so that won't happen.
16
16
  RESPONSE_HEADERS = {
17
+ "Content-Type" => "text/html",
17
18
  "Content-Security-Policy" =>
18
19
  "default-src 'self'; " \
19
20
  "script-src 'none'; " \
@@ -13,7 +13,7 @@ module Rails
13
13
  def call(env)
14
14
  @app.call(env)
15
15
  rescue Rails::Auth::NotAuthorizedError
16
- [403, {}, [@page_body]]
16
+ [403, { "Content-Type" => "text/html" }, [@page_body]]
17
17
  end
18
18
  end
19
19
  end
@@ -3,6 +3,6 @@
3
3
  module Rails
4
4
  # Pluggable authentication and authorization for Rack/Rails
5
5
  module Auth
6
- VERSION = "0.5.1".freeze
6
+ VERSION = "0.5.2".freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-25 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack