omniauth-twitchtv 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -38,18 +38,12 @@ module OmniAuth
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def info_url
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
"https://api.twitch.tv/kraken/channel"
|
45
|
-
elsif self.options.scope.to_sym == :user_read then
|
46
|
-
"https://api.twitch.tv/kraken/user"
|
47
|
-
elsif self.options.scope.to_sym == :channel_read then
|
48
|
-
"https://api.twitch.tv/kraken/channel"
|
49
|
-
else
|
41
|
+
unless self.options.scopes && (self.options.scopes.index("user_read") || self.options.scopes.index(:user_read)) ||
|
42
|
+
self.options.scopes && (self.options.scopes.index("user_read") || self.options.scopes.index(:user_read)) ||
|
43
|
+
self.options.scope.to_sym == :user_read || self.options.scope.to_sym == :channel_read
|
50
44
|
raise Omniauth::Twitchtv::TwitchtvError.new("Must include at least either the channel or user read scope in omniauth-twitchtv initializer")
|
51
45
|
end
|
52
|
-
|
46
|
+
"https://api.twitch.tv/kraken/user"
|
53
47
|
end
|
54
48
|
end
|
55
49
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-twitchtv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth-oauth2
|