omniauth-stackexchange 0.2.0 → 0.2.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0b426b72bf7f3d603fe7a13e835a6ef6ab7ec43b
4
+ data.tar.gz: 8c08aeaf9967c207f4b5633ecd52a71a76d9a349
5
+ SHA512:
6
+ metadata.gz: be0ac7154117d9a1510c35b6c89e5ba1661253460d356d311a86618635de0672fea0ef3edbd584e52483b2db2bc9f1fd0af78399253f24dfc45b1797ba0892fb
7
+ data.tar.gz: 2f18e92fbe0b9852a94cb02538c4fa0093554c1ea7eb6af790aa0bbf4f8f9189a667f752126a54739f00c88e27ab7bd0d2f62640479a227ef6eac4a462a50f09
@@ -1,3 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.0
6
+ - 2.2.0
@@ -1,3 +1,13 @@
1
+ ## 0.2.1 (September 22, 2015) ##
2
+
3
+ ### enhancements
4
+ * Throw omniauth exception when user is not registered on StackExchange so you can rescue it in your app (by [@yimajo](https://github.com/yimajo))
5
+
6
+ ## 0.2.0 (July 16, 2012) ##
7
+
8
+ ### enhancements
9
+ * 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))
10
+
1
11
  ## 0.1.0 (July 11, 2012) ##
2
12
 
3
13
  ### enhancements
@@ -6,8 +16,3 @@
6
16
  ```ruby
7
17
  provider :stackexchange, "client_id", "client_secret", public_key: "key", site: 'stackoverflow'
8
18
  ```
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))
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module StackExchange
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -56,6 +56,12 @@ module OmniAuth
56
56
  def site
57
57
  request.env['omniauth.params']['site'] || options.site || 'stackoverflow'
58
58
  end
59
+
60
+ def callback_phase
61
+ super
62
+ rescue NotRegisteredForStackExchangeSiteError => e
63
+ fail!(:user_is_not_registered, e)
64
+ end
59
65
  end
60
66
  end
61
67
  end
metadata CHANGED
@@ -1,38 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-stackexchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Vasiliy Ermolovich
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-16 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: omniauth
16
- requirement: &16796700 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *16796700
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: omniauth-oauth2
27
- requirement: &16795880 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ~>
31
+ - - "~>"
31
32
  - !ruby/object:Gem::Version
32
33
  version: '1.0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *16795880
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
36
41
  description: StackExchange OAuth strategy for OmniAuth
37
42
  email:
38
43
  - younash@gmail.com
@@ -40,8 +45,8 @@ executables: []
40
45
  extensions: []
41
46
  extra_rdoc_files: []
42
47
  files:
43
- - .gitignore
44
- - .travis.yml
48
+ - ".gitignore"
49
+ - ".travis.yml"
45
50
  - CHANGELOG.md
46
51
  - Gemfile
47
52
  - LICENSE
@@ -55,33 +60,26 @@ files:
55
60
  - test/test_helper.rb
56
61
  homepage: https://github.com/nashby/omniauth-stackexchange
57
62
  licenses: []
63
+ metadata: {}
58
64
  post_install_message:
59
65
  rdoc_options: []
60
66
  require_paths:
61
67
  - lib
62
68
  required_ruby_version: !ruby/object:Gem::Requirement
63
- none: false
64
69
  requirements:
65
- - - ! '>='
70
+ - - ">="
66
71
  - !ruby/object:Gem::Version
67
72
  version: '0'
68
- segments:
69
- - 0
70
- hash: -3707971449820523548
71
73
  required_rubygems_version: !ruby/object:Gem::Requirement
72
- none: false
73
74
  requirements:
74
- - - ! '>='
75
+ - - ">="
75
76
  - !ruby/object:Gem::Version
76
77
  version: '0'
77
- segments:
78
- - 0
79
- hash: -3707971449820523548
80
78
  requirements: []
81
79
  rubyforge_project:
82
- rubygems_version: 1.8.10
80
+ rubygems_version: 2.4.6
83
81
  signing_key:
84
- specification_version: 3
82
+ specification_version: 4
85
83
  summary: StackExchange OAuth strategy for OmniAuth
86
84
  test_files:
87
85
  - test/stackexchange_test.rb