omniauth-gplus 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -6,10 +6,10 @@
6
6
  # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
7
7
  # Only full ruby name is supported here, for short names use:
8
8
  # echo "rvm use 1.9.3" > .rvmrc
9
- environment_id="ruby-1.9.3-p385@omniauth-gplus"
9
+ environment_id="ruby-1.9.3-p392@omniauth-gplus"
10
10
 
11
11
  # Uncomment the following lines if you want to verify rvm version per project
12
- # rvmrc_rvm_version="1.18.6 ()" # 1.10.1 seams as a safe start
12
+ # rvmrc_rvm_version="1.18.18 (stable)" # 1.10.1 seams as a safe start
13
13
  # eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
14
14
  # echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
15
15
  # return 1
@@ -23,13 +23,8 @@ if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
23
23
  && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
24
24
  then
25
25
  \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
26
- for __hook in "${rvm_path:-$HOME/.rvm}/hooks/after_use"*
27
- do
28
- if [[ -f "${__hook}" && -x "${__hook}" && -s "${__hook}" ]]
29
- then \. "${__hook}" || true
30
- fi
31
- done
32
- unset __hook
26
+ [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
27
+ \. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
33
28
  else
34
29
  # If the environment file has not yet been created, use the RVM CLI to select.
35
30
  rvm --create "$environment_id" || {
data/README.md CHANGED
@@ -89,13 +89,18 @@ Absolutely feel free to contribute, please!
89
89
 
90
90
  Changelog
91
91
  ---------
92
+
93
+ **v1.1.1**
94
+
95
+ * Using the correct api scope
96
+
92
97
  **v1.1.0**
93
98
 
94
- * Fixed UID field always being nil
99
+ * Fixed UID field always being nil
95
100
 
96
101
  **v1.0.0**
97
102
 
98
- * Initial release
103
+ * Initial release
99
104
 
100
105
 
101
106
  Contributing
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module GPlus
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ module OmniAuth
7
7
  token_url: 'https://www.google.com/accounts/o8/oauth2/token'
8
8
  }
9
9
 
10
- option :scope, 'email'
10
+ option :scope, 'userinfo.email'
11
11
 
12
12
  option :uid_field, :uid
13
13
 
@@ -51,7 +51,7 @@ module OmniAuth
51
51
  end
52
52
 
53
53
  def format_scope(scope)
54
- "https://www.googleapis.com/auth/userinfo.#{scope}"
54
+ "https://www.googleapis.com/auth/#{scope}"
55
55
  end
56
56
 
57
57
  def custom_parameters(params)
@@ -31,7 +31,7 @@ class TestOmniAuthGPlus < MiniTest::Unit::TestCase
31
31
  end
32
32
 
33
33
  def test_default_scope_is_email
34
- expected = 'email'
34
+ expected = 'userinfo.email'
35
35
  actual = strategy.options['scope']
36
36
  assert_equal(expected, actual)
37
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-gplus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-03-07 00:00:00.000000000 Z
13
+ date: 2013-03-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  version_requirements: !ruby/object:Gem::Requirement
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  requirements:
174
174
  - - ! '>='
175
175
  - !ruby/object:Gem::Version
176
- hash: 3277017232971062915
176
+ hash: 3554233067913369947
177
177
  version: '0'
178
178
  segments:
179
179
  - 0
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  requirements:
183
183
  - - ! '>='
184
184
  - !ruby/object:Gem::Version
185
- hash: 3277017232971062915
185
+ hash: 3554233067913369947
186
186
  version: '0'
187
187
  segments:
188
188
  - 0