sinatra_auth_github 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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"))
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "sinatra_auth_github"
6
- s.version = "0.1.2"
6
+ s.version = "0.1.3"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Corey Donohoe"]
9
9
  s.email = ["atmos@atmos.org"]
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
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-06-27 00:00:00 -07:00
18
+ date: 2011-07-11 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency