omniauth-stackexchange 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,3 +6,8 @@
6
6
  ```ruby
7
7
  provider :stackexchange, "client_id", "client_secret", public_key: "key", site: 'stackoverflow'
8
8
  ```
9
+
10
+ ## 0.2.0 (July 16, 2012) ##
11
+
12
+ ### enhancements
13
+ * You can pass the site api key as the value for a GET parameter named sites (e.g. /auth/stackexchange?site=superuser) (by [@ginnyd](https://github.com/ginnyd))
data/README.md CHANGED
@@ -30,6 +30,8 @@ You will obviously have to put in your client_id, client_secret and public_key,
30
30
 
31
31
  You will also need to specify a site option to uniquely identify the StackExchange site (e.g. `stackoverflow` or `superuser`) you wish to authenticate against. A list of valid site api keys can be found at https://api.stackexchange.com/docs/sites. It's `stackoverflow` by default.
32
32
 
33
+ If your application needs to be able to support multiple StackExchange sites, you can pass the site api key as the value for a GET parameter named sites (e.g. /auth/stackexchange?site=superuser)
34
+
33
35
  Now just follow the README at: https://github.com/intridea/omniauth
34
36
 
35
37
  ## Supported Rubies
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module StackExchange
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -54,7 +54,7 @@ module OmniAuth
54
54
  end
55
55
 
56
56
  def site
57
- options.site || 'stackoverflow'
57
+ request.env['omniauth.params']['site'] || options.site || 'stackoverflow'
58
58
  end
59
59
  end
60
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-stackexchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-11 00:00:00.000000000 Z
12
+ date: 2012-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
16
- requirement: &26976260 !ruby/object:Gem::Requirement
16
+ requirement: &16796700 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *26976260
24
+ version_requirements: *16796700
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: omniauth-oauth2
27
- requirement: &26975740 !ruby/object:Gem::Requirement
27
+ requirement: &16795880 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '1.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *26975740
35
+ version_requirements: *16795880
36
36
  description: StackExchange OAuth strategy for OmniAuth
37
37
  email:
38
38
  - younash@gmail.com
@@ -67,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  segments:
69
69
  - 0
70
- hash: -3679528809500990391
70
+ hash: -3707971449820523548
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  segments:
78
78
  - 0
79
- hash: -3679528809500990391
79
+ hash: -3707971449820523548
80
80
  requirements: []
81
81
  rubyforge_project:
82
82
  rubygems_version: 1.8.10