mashape 2.0.3 → 2.0.5
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.
@@ -2,8 +2,8 @@ require File.join(File.dirname(__FILE__), "/oauth_authentication.rb")
|
|
2
2
|
|
3
3
|
module Mashape
|
4
4
|
class OAuth10aAuthentication < OAuthAuthentication
|
5
|
-
def initialize(consumer_key, consumer_secret,
|
6
|
-
super(consumer_key, consumer_secret,
|
5
|
+
def initialize(consumer_key, consumer_secret, callback_url)
|
6
|
+
super(consumer_key, consumer_secret, callback_url)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -2,8 +2,8 @@ require File.join(File.dirname(__FILE__), "/oauth_authentication.rb")
|
|
2
2
|
|
3
3
|
module Mashape
|
4
4
|
class OAuth2Authentication < OAuthAuthentication
|
5
|
-
def initialize(consumer_key, consumer_secret,
|
6
|
-
super(consumer_key, consumer_secret,
|
5
|
+
def initialize(consumer_key, consumer_secret, callback_url)
|
6
|
+
super(consumer_key, consumer_secret, callback_url)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -3,11 +3,11 @@ require File.join(File.dirname(__FILE__), "/authentication.rb")
|
|
3
3
|
module Mashape
|
4
4
|
class OAuthAuthentication < Authentication
|
5
5
|
|
6
|
-
def initialize(consumer_key, consumer_secret,
|
6
|
+
def initialize(consumer_key, consumer_secret, callback_url)
|
7
7
|
super()
|
8
8
|
@params[:consumer_key] = consumer_key
|
9
9
|
@params[:consumer_secret] = consumer_secret
|
10
|
-
@params[:
|
10
|
+
@params[:callback_url] = callback_url
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 2.0.
|
8
|
+
- 5
|
9
|
+
version: 2.0.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Mashape
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-
|
17
|
+
date: 2012-10-11 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|