rails-auth 2.1.3 → 2.1.4

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: 04accd9068297df63d222180e00d66bb5a3cdc24
4
- data.tar.gz: 36dba8c9eee4957f1defe679ae9d98ceba53393f
3
+ metadata.gz: 6d86f415a45113f3337b8446a3b5b271682c6a4d
4
+ data.tar.gz: 79c560e82cb196908a94b836697398af20a04ad0
5
5
  SHA512:
6
- metadata.gz: 790da2f08086cee1fd8719fff050e18e7cfc1301fb12483c327d117c0875bdc945fe404d7040a184f28dd69c352803b525acd720f94b8f7920f550776d950371
7
- data.tar.gz: 4f6d90c4d94195cc5b42cd0f783d64168aa045178bea6ac6e646cbf80e221bc0668a9400358271449e570fe8358592ae7ae2d84897771da583c2a45592325426
6
+ metadata.gz: b030ade8c37b4f91fba160037f8f951ce8729884dc18fd1d6d038464b7b8a9af10bb38934d1d1f4bdf8672ef66425555abf49e12af8c603e2bf80c5dbc7e03c6
7
+ data.tar.gz: 0c0a1c9edd16819f0ab1ed10b5e98d734193fb14151586e2ab752088c706074fdb3d98cfa027635be16dc79bb7d3ec94c4f2e0be3de3f0252a3c0d0eb1fffab9
data/CHANGES.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 2.1.4 (2018-07-12)
2
+
3
+ * [#51](https://github.com/square/rails-auth/pull/51)
4
+ Fix bug in `permit` custom matcher so that a description is rendered.
5
+ ([@yellow-beard])
6
+
1
7
  ### 2.1.3 (2017-08-04)
2
8
 
3
9
  * [#44](https://github.com/square/rails-auth/pull/44)
@@ -11,7 +11,7 @@ module Rails
11
11
  matchers: matchers
12
12
  )
13
13
 
14
- config.middleware.use Rails::Auth::ACL::Middleware, acl: config.x.acl
14
+ config.middleware.use Rails::Auth::ACL::Middleware, acl: config.x.rails_auth.acl
15
15
  end
16
16
 
17
17
  # Development configuration (i.e. config/environments/development.rb)
@@ -10,7 +10,7 @@ module Rails
10
10
  extend Forwardable
11
11
  include Enumerable
12
12
 
13
- def_delegators :@credentials, :fetch, :empty?, :key?, :each, :to_hash
13
+ def_delegators :@credentials, :fetch, :empty?, :key?, :each, :to_hash, :values
14
14
 
15
15
  def self.from_rack_env(env)
16
16
  new(env.fetch(Rails::Auth::Env::CREDENTIALS_ENV_KEY, {}))
@@ -24,7 +24,7 @@ module Rails
24
24
 
25
25
  # Mark what authorized the request in the Rack environment
26
26
  #
27
- # @param [Hash] :env Rack environment
27
+ # @param [Hash] :rack_env Rack environment
28
28
  # @param [String] :allowed_by what allowed this request
29
29
  def set_allowed_by(rack_env, allowed_by)
30
30
  Env.new(rack_env).tap do |env|
@@ -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.3".freeze
6
+ VERSION = "2.1.4".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.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-04 00:00:00.000000000 Z
11
+ date: 2018-07-17 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.6.11
148
+ rubygems_version: 2.4.8
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Modular resource-oriented authentication and authorization for Rails/Rack