exvo-auth 0.7.13 → 0.7.14

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.13
1
+ 0.7.14
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{exvo-auth}
8
- s.version = "0.7.13"
8
+ s.version = "0.7.14"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jacek Becela"]
12
- s.date = %q{2010-08-13}
12
+ s.date = %q{2010-08-24}
13
13
  s.description = %q{Sign in with Exvo account}
14
14
  s.email = %q{jacek.becela@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -27,6 +27,10 @@ class ExvoAuth::Autonomous::Consumer < ExvoAuth::Autonomous::Base
27
27
  def authorization!
28
28
  response = auth.get("/apps/consumer/authorizations/#{URI.escape(params[:provider_id])}.json")
29
29
 
30
- @@cache.write(params, response["authorization"])
30
+ if response["authorization"]
31
+ @@cache.write(params, response["authorization"])
32
+ else
33
+ raise "Unauthorized"
34
+ end
31
35
  end
32
36
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 13
9
- version: 0.7.13
8
+ - 14
9
+ version: 0.7.14
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jacek Becela
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-13 00:00:00 +02:00
17
+ date: 2010-08-24 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency