omniauth-gplus 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  omniauth-gplus
2
2
  =========
3
3
 
4
+ - [![Gem Version](https://badge.fury.io/rb/omniauth-gplus.png)](https://rubygems.org/gems/omniauth-gplus)
4
5
  - [![Code Climate](https://codeclimate.com/github/krainboltgreene/omniauth-gplus.png)](https://codeclimate.com/github/krainboltgreene/omniauth-gplus)
5
6
  - [![Build Status](https://travis-ci.org/krainboltgreene/omniauth-gplus.png)](https://travis-ci.org/krainboltgreene/omniauth-gplus)
7
+ - [![Dependency Status](https://gemnasium.com/krainboltgreene/omniauth-gplus.png)](https://gemnasium.com/krainboltgreene/omniauth-gplus)
8
+ - [![Coverage Status](https://coveralls.io/repos/krainboltgreene/omniauth-gplus/badge.png?branch=master)](https://coveralls.io/r/krainboltgreene/omniauth-gplus)
6
9
 
7
10
  `omniauth-gplus` is a Google+ strategy for OmniAuth.
8
11
  It allows you to easily interact with the Google+ OAuth2 endpoint.
@@ -86,6 +89,9 @@ Absolutely feel free to contribute, please!
86
89
 
87
90
  Changelog
88
91
  ---------
92
+ **v1.1.0**
93
+
94
+ * Fixed UID field always being nil
89
95
 
90
96
  **v1.0.0**
91
97
 
@@ -113,6 +119,8 @@ Contributing
113
119
  Credits
114
120
  -------
115
121
 
122
+ - [Sam Dunne](https://github.com/samdunne), for initial work and bug fixes
123
+
116
124
 
117
125
  License
118
126
  -------
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module GPlus
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -10,6 +10,10 @@ module OmniAuth
10
10
  option :scope, 'email'
11
11
 
12
12
  option :uid_field, :uid
13
+
14
+ uid do
15
+ raw_info['id']
16
+ end
13
17
 
14
18
  info do
15
19
  {
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'omniauth/gplus/version'
@@ -6,8 +5,8 @@ require 'omniauth/gplus/version'
6
5
  Gem::Specification.new do |spec|
7
6
  spec.name = "omniauth-gplus"
8
7
  spec.version = OmniAuth::GPlus::VERSION
9
- spec.authors = ["Kurtis Rainbolt-Greene"]
10
- spec.email = ["me@kurtisrainboltgreene.name"]
8
+ spec.authors = ["Kurtis Rainbolt-Greene", "Sam Dunne"]
9
+ spec.email = ["me@kurtisrainboltgreene.name", "sam@sam-dunne.com"]
11
10
  spec.summary = %q{A Google+ OAuth2 solution for Omniauth}
12
11
  spec.description = spec.summary
13
12
  spec.homepage = "http://krainboltgreene.github.com/omniauth-gplus"
@@ -49,4 +49,8 @@ class TestOmniAuthGPlus < MiniTest::Unit::TestCase
49
49
  actual = new_oauth.options.uid_field
50
50
  assert_equal(expected, actual)
51
51
  end
52
+
53
+ def test_uid_not_nil
54
+ refute_nil(new_oauth.options.uid_field)
55
+ end
52
56
  end
metadata CHANGED
@@ -1,147 +1,149 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-gplus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kurtis Rainbolt-Greene
9
+ - Sam Dunne
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-02-27 00:00:00.000000000 Z
13
+ date: 2013-03-07 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
- name: omniauth-oauth2
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
16
+ version_requirements: !ruby/object:Gem::Requirement
18
17
  requirements:
19
18
  - - ~>
20
19
  - !ruby/object:Gem::Version
21
20
  version: '1.1'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
21
  none: false
22
+ prerelease: false
23
+ name: omniauth-oauth2
24
+ requirement: !ruby/object:Gem::Requirement
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
28
  version: '1.1'
29
+ none: false
30
+ type: :runtime
30
31
  - !ruby/object:Gem::Dependency
32
+ version_requirements: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ none: false
38
+ prerelease: false
31
39
  name: bundler
32
40
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
41
  requirements:
35
42
  - - ! '>='
36
43
  - !ruby/object:Gem::Version
37
44
  version: '0'
45
+ none: false
38
46
  type: :development
39
- prerelease: false
47
+ - !ruby/object:Gem::Dependency
40
48
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
49
  requirements:
43
50
  - - ! '>='
44
51
  - !ruby/object:Gem::Version
45
52
  version: '0'
46
- - !ruby/object:Gem::Dependency
53
+ none: false
54
+ prerelease: false
47
55
  name: rake
48
56
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
57
  requirements:
51
58
  - - ! '>='
52
59
  - !ruby/object:Gem::Version
53
60
  version: '0'
61
+ none: false
54
62
  type: :development
55
- prerelease: false
63
+ - !ruby/object:Gem::Dependency
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
65
  requirements:
59
66
  - - ! '>='
60
67
  - !ruby/object:Gem::Version
61
68
  version: '0'
62
- - !ruby/object:Gem::Dependency
69
+ none: false
70
+ prerelease: false
63
71
  name: mocha
64
72
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
73
  requirements:
67
74
  - - ! '>='
68
75
  - !ruby/object:Gem::Version
69
76
  version: '0'
77
+ none: false
70
78
  type: :development
71
- prerelease: false
79
+ - !ruby/object:Gem::Dependency
72
80
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
81
  requirements:
75
82
  - - ! '>='
76
83
  - !ruby/object:Gem::Version
77
84
  version: '0'
78
- - !ruby/object:Gem::Dependency
85
+ none: false
86
+ prerelease: false
79
87
  name: yard
80
88
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
89
  requirements:
83
90
  - - ! '>='
84
91
  - !ruby/object:Gem::Version
85
92
  version: '0'
93
+ none: false
86
94
  type: :development
87
- prerelease: false
95
+ - !ruby/object:Gem::Dependency
88
96
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
97
  requirements:
91
98
  - - ! '>='
92
99
  - !ruby/object:Gem::Version
93
100
  version: '0'
94
- - !ruby/object:Gem::Dependency
101
+ none: false
102
+ prerelease: false
95
103
  name: kramdown
96
104
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
105
  requirements:
99
106
  - - ! '>='
100
107
  - !ruby/object:Gem::Version
101
108
  version: '0'
109
+ none: false
102
110
  type: :development
103
- prerelease: false
111
+ - !ruby/object:Gem::Dependency
104
112
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
113
  requirements:
107
114
  - - ! '>='
108
115
  - !ruby/object:Gem::Version
109
116
  version: '0'
110
- - !ruby/object:Gem::Dependency
117
+ none: false
118
+ prerelease: false
111
119
  name: pry
112
120
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
121
  requirements:
115
122
  - - ! '>='
116
123
  - !ruby/object:Gem::Version
117
124
  version: '0'
125
+ none: false
118
126
  type: :development
119
- prerelease: false
127
+ - !ruby/object:Gem::Dependency
120
128
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
129
  requirements:
123
130
  - - ! '>='
124
131
  - !ruby/object:Gem::Version
125
132
  version: '0'
126
- - !ruby/object:Gem::Dependency
133
+ none: false
134
+ prerelease: false
127
135
  name: coveralls
128
136
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
137
  requirements:
131
138
  - - ! '>='
132
139
  - !ruby/object:Gem::Version
133
140
  version: '0'
134
- type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
141
  none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
+ type: :development
142
143
  description: A Google+ OAuth2 solution for Omniauth
143
144
  email:
144
145
  - me@kurtisrainboltgreene.name
146
+ - sam@sam-dunne.com
145
147
  executables: []
146
148
  extensions: []
147
149
  extra_rdoc_files: []
@@ -168,23 +170,23 @@ rdoc_options: []
168
170
  require_paths:
169
171
  - lib
170
172
  required_ruby_version: !ruby/object:Gem::Requirement
171
- none: false
172
173
  requirements:
173
174
  - - ! '>='
174
175
  - !ruby/object:Gem::Version
176
+ hash: 3277017232971062915
175
177
  version: '0'
176
178
  segments:
177
179
  - 0
178
- hash: -1689882291510446331
179
- required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  none: false
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
181
182
  requirements:
182
183
  - - ! '>='
183
184
  - !ruby/object:Gem::Version
185
+ hash: 3277017232971062915
184
186
  version: '0'
185
187
  segments:
186
188
  - 0
187
- hash: -1689882291510446331
189
+ none: false
188
190
  requirements: []
189
191
  rubyforge_project:
190
192
  rubygems_version: 1.8.25