rails-auth 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2477fcfc16e05681799207a97fe61296121e61eb
4
- data.tar.gz: d128786141a40153a93f7ec41b6359a0fa322869
3
+ metadata.gz: 53175b906593724848fe6edf409ec1ae4587be25
4
+ data.tar.gz: 22fc25df91e79d8fa2930644ca29db47c3f7270a
5
5
  SHA512:
6
- metadata.gz: c34fe8c56e17ec1037140f63eced9e7613693e90b870041fec0643526df7c8129fa2f1c711ab1b9a43c7774956431f251d4bd21928309021dc14c9ed2b82fa6d
7
- data.tar.gz: 55c5648df8f1f2fb5777313ac45d2ff35bcd1261223ed3dc882191bdd162e0214ddbad26cb1905e62e6c3e43eca4d7c25e607941b44eae82999e4cfac60f37c4
6
+ metadata.gz: b25632b4984227bce11e227e4842595b7be966819876c3a2dc0d67f05b77b65e76917b788dc179b1c4aa7a4473766aab2d43de0e3958d98ed33f97877bc9796a
7
+ data.tar.gz: 0c584823d4fa31db393742b56a1511a9c7628caf01d6773c6b98a72491e7f6a731cd77b6245031db409f275adf840d987eaa57242c19cd8b63754d9e32614d18
data/CHANGES.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 2.1.2 (2017-01-27)
2
+
3
+ * [#42](https://github.com/square/rails-auth/pull/42)
4
+ Don't leak credentials between requests in test / development.
5
+ ([@nerdrew])
6
+
1
7
  ### 2.1.1 (2016-09-24)
2
8
 
3
9
  * [#41](https://github.com/square/rails-auth/pull/41)
@@ -51,8 +51,7 @@ module Rails
51
51
  #
52
52
  # @return [Hash] Rack environment
53
53
  def to_rack
54
- credentials = @env[CREDENTIALS_ENV_KEY] ||= {}
55
- credentials.merge!(@credentials.to_hash)
54
+ @env[CREDENTIALS_ENV_KEY] = (@env[CREDENTIALS_ENV_KEY] || {}).merge(@credentials.to_hash)
56
55
 
57
56
  @env[AUTHORIZED_ENV_KEY] = @authorized if @authorized
58
57
  @env[ALLOWED_BY_ENV_KEY] = @allowed_by if @allowed_by
@@ -3,6 +3,6 @@
3
3
  module Rails
4
4
  # Pluggable authentication and authorization for Rack/Rails
5
5
  module Auth
6
- VERSION = "2.1.1".freeze
6
+ VERSION = "2.1.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: 2.1.1
4
+ version: 2.1.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-09-28 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.5.1
148
+ rubygems_version: 2.6.8
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Modular resource-oriented authentication and authorization for Rails/Rack