exvo-auth 0.8.0 → 0.8.2

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.8.0
1
+ 0.8.2
data/exvo-auth.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{exvo-auth}
8
- s.version = "0.8.0"
8
+ s.version = "0.8.2"
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-25}
12
+ s.date = %q{2010-08-30}
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 = [
@@ -30,4 +30,17 @@ module ExvoAuth::Config
30
30
  def self.client_secret
31
31
  @@client_secret
32
32
  end
33
+
34
+ # Set this to false during development ONLY!
35
+ def self.require_ssl=(require_ssl)
36
+ @@require_ssl = require_ssl
37
+ end
38
+
39
+ def self.require_ssl
40
+ if @@require_ssl.nil?
41
+ @@require_ssl = true
42
+ else
43
+ @@require_ssl
44
+ end
45
+ end
33
46
  end
@@ -43,7 +43,7 @@ module ExvoAuth::Controllers::Base
43
43
  end
44
44
 
45
45
  def authenticate_app_in_scope!(scope)
46
- raise("SSL not configured") unless request.ssl?
46
+ raise("SSL not configured") unless request.ssl? || ExvoAuth::Config.require_ssl == false
47
47
 
48
48
  send(basic_authentication_method_name) do |consumer_id, access_token|
49
49
  current_scopes = ExvoAuth::Autonomous::Provider.new(
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exvo-auth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 0
10
- version: 0.8.0
9
+ - 2
10
+ version: 0.8.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacek Becela
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-25 00:00:00 +02:00
18
+ date: 2010-08-30 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency