oauth-ok 0.0.1 → 0.0.2
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.
- data/.gitignore +2 -1
- data/lib/oauth/ok.rb +3 -3
- data/lib/oauth/ok/version.rb +1 -1
- metadata +1 -1
data/.gitignore
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
pkg/*
|
|
1
|
+
pkg/*
|
|
2
|
+
gem/*
|
data/lib/oauth/ok.rb
CHANGED
|
@@ -6,6 +6,7 @@ module Oauth
|
|
|
6
6
|
# Class for OAuth 2.0 on http://odnoklassniki.ru/
|
|
7
7
|
#
|
|
8
8
|
class OkAuth
|
|
9
|
+
require 'net/http'
|
|
9
10
|
|
|
10
11
|
@options # array aplication options
|
|
11
12
|
@@auth_url_options = {
|
|
@@ -25,9 +26,8 @@ module Oauth
|
|
|
25
26
|
# return string
|
|
26
27
|
#
|
|
27
28
|
def initialize(auth_options)
|
|
28
|
-
|
|
29
|
-
@options
|
|
30
|
-
@options = @options.merge(urlOptions)
|
|
29
|
+
@options = OkAuth.getUrlOptions
|
|
30
|
+
@options = @options.merge(auth_options)
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
|
data/lib/oauth/ok/version.rb
CHANGED