rack-simple_auth 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/simple_auth/hmac/middleware.rb +0 -17
- data/lib/rack/simple_auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 185f4e18284df3e3d9a0a54d91ab5d6f44efa43d
|
4
|
+
data.tar.gz: 170edd2a83ad1b31c9f9b84fd554592bc5695e91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 625d216c440cbb2d84448d7652f23e4f4b45b00ffdd427ae8571a5e974f1873fcca41fc67dae4496c82950c3e82aeb9496f70cbc0255f8f94a01e53a6dcab2f2
|
7
|
+
data.tar.gz: 2fa968ad1e8e9489a9fc636da5f4a0f249c76f1166cda18e8070ad5454165c0b6d7f76e72cbee1db8e6f4bc04c48d96412bb4b3955cf11af19eda675a67769d9
|
@@ -30,23 +30,6 @@ module Rack
|
|
30
30
|
# run Rack::Lobster.new"
|
31
31
|
#
|
32
32
|
class Middleware
|
33
|
-
##
|
34
|
-
# Throw NoMethodError and give hint if method who was called is Rack::SimpleAuth::Middleware.call
|
35
|
-
#
|
36
|
-
# @param [Symbol] name
|
37
|
-
# @param [Array] args
|
38
|
-
#
|
39
|
-
# @raise [NoMethodError] if the method isn't defined
|
40
|
-
# and outputs additional hint for calling Rack::SimpleAuth::Middleware.call
|
41
|
-
def self.method_missing(name, *args)
|
42
|
-
msg = "Did you try to use HMAC Middleware as Rack Application via 'run'?\n" if name.eql?(:call)
|
43
|
-
msg << "method: #{name}\n"
|
44
|
-
msg << "args: #{args.inspect}\n" unless name.eql?(:call)
|
45
|
-
msg << "on: #{self}"
|
46
|
-
|
47
|
-
fail NoMethodError, msg
|
48
|
-
end
|
49
|
-
|
50
33
|
##
|
51
34
|
# Constructor for Rack Middleware (passing the rack stack)
|
52
35
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-simple_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benny1992
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|