sinatra_auth_github 0.1.2 → 0.1.3
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.
- data/lib/sinatra/auth/github.rb +6 -0
- data/sinatra_auth_github.gemspec +1 -1
- metadata +4 -4
data/lib/sinatra/auth/github.rb
CHANGED
@@ -10,6 +10,9 @@ module Sinatra
|
|
10
10
|
# Simple way to serve an image early in the stack and not get blocked by
|
11
11
|
# application level before filters
|
12
12
|
class AccessDenied < Sinatra::Base
|
13
|
+
enable :raise_errors
|
14
|
+
disable :show_exceptions
|
15
|
+
|
13
16
|
get '/_images/securocat.png' do
|
14
17
|
send_file(File.join(File.dirname(__FILE__), "views", "securocat.png"))
|
15
18
|
end
|
@@ -17,6 +20,9 @@ module Sinatra
|
|
17
20
|
|
18
21
|
# The default failure application, this is overridable from the extension config
|
19
22
|
class BadAuthentication < Sinatra::Base
|
23
|
+
enable :raise_errors
|
24
|
+
disable :show_exceptions
|
25
|
+
|
20
26
|
helpers do
|
21
27
|
def unauthorized_template
|
22
28
|
@unauthenticated_template ||= File.read(File.join(File.dirname(__FILE__), "views", "401.html"))
|
data/sinatra_auth_github.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra_auth_github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Corey Donohoe
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-11 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|