rack-bearer_auth 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 92570ae4c83643cc6f477ec27efd364f87d536dd5951fd6cdfc1dbf2536a2b22
4
- data.tar.gz: 407b3cbc08de91012b5f08d614b698d1ca54d4ff1b8562202e0fac9326bf88ec
3
+ metadata.gz: 0565a4941f4f03c29d78b554a5e76efcce960817aba7dcb2f0c5847852e54581
4
+ data.tar.gz: 42e1559aaf10510f8e894553594a40005283542d8e8c25dbdc3fddc9abb79874
5
5
  SHA512:
6
- metadata.gz: 6117026d93c4629e033df09823064489d95decaa305f692e75ae3b941f4e42788325287510f5723722ad2c0684699c9428d2d60e1fd0cfd75ec4b831eaff6c7d
7
- data.tar.gz: f5f0db70906d8d82470f5d5952f901d751e5c6926ab4673bc9ea739759c58c2c3f85a726851e4796c3886639fbe371af7c854f6074f5778f80bba9d576779117
6
+ metadata.gz: 738150271acbe8f82bddf0fe4aa257a03df761c6935a2a2bb2ecd4d5f3c4e6b26e8dc773d1223ab4b14c7858500c6d37da3c71c41094dde48d5df053d03cf318
7
+ data.tar.gz: a7a7ea1270a0629d8b244efa483cf1b87b18c86cb743271b2deceb4787b029509bf234eade753cdce9529e7412039a07b61eb1b2e777c6beb7ad80e05f325a0d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  ## Unreleased
2
2
 
3
3
 
4
+ ## 0.1.1 (2018-05-24)
5
+
6
+ * Fix warnings on unmatched routes
7
+
8
+
4
9
  ## 0.1.0 (2018-05-17)
5
10
 
6
11
  * Initial release
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Rack::BearerAuth is middleware that make using [RFC 6750](https://tools.ietf.org/html/rfc6750) bearer auth in Rack apps.
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/rack-bearer_auth.svg)](https://badge.fury.io/rb/rack-bearer_auth)
5
6
  [![Build Status](https://travis-ci.org/yujideveloper/rack-bearer_auth.svg?branch=master)](https://travis-ci.org/yujideveloper/rack-bearer_auth)
6
7
  [![Maintainability](https://api.codeclimate.com/v1/badges/db47f9a4e48bd30edb98/maintainability)](https://codeclimate.com/github/yujideveloper/rack-bearer_auth/maintainability)
7
8
 
@@ -63,6 +64,14 @@ end
63
64
 
64
65
  ```
65
66
 
67
+ ### Configration reference
68
+
69
+ #### matching options
70
+
71
+ * `path` (`String`, `Regexp`, `Proc` , `Array`): The HTTP request path matches for the resource.
72
+ * `via` (`Symbol`, `String`, `Regexp`, `Proc` , `Array`, `:all`): The HTTP request method matchs for the resource.
73
+ * `token` (`String`, `Regexp`, `Proc` , `Array`): The access token for the resource.
74
+
66
75
  ## Restrictions
67
76
 
68
77
  * [Form-Encoded Body Parameter(RFC 6750 section 2.2)](https://tools.ietf.org/html/rfc6750#section-2.2) is not supported.
@@ -35,6 +35,8 @@ module Rack
35
35
  def handle(req)
36
36
  @match_patterns.each do |pattern|
37
37
  case pattern.match(req)
38
+ when :skip
39
+ next
38
40
  when :ok
39
41
  break
40
42
  when :token_required
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  module BearerAuth
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-bearer_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Hanamura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-17 00:00:00.000000000 Z
11
+ date: 2018-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler