roauth 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/roauth.rb +5 -5
- data/roauth.gemspec +13 -20
- metadata +19 -29
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/lib/roauth.rb
CHANGED
@@ -21,11 +21,11 @@ module ROAuth
|
|
21
21
|
oauth[:token_secret] ||= oauth.delete(:access_secret)
|
22
22
|
|
23
23
|
sig_params = oauth_params(oauth)
|
24
|
-
sig_params[:oauth_signature] =
|
25
|
-
signature(oauth, uri, sig_params.merge(params), http_method)
|
26
|
-
)
|
24
|
+
sig_params[:oauth_signature] = signature(oauth, uri, sig_params.merge(params), http_method)
|
27
25
|
sorted_sig_params = sig_params.sort_by{|k,v| [k.to_s, v.to_s] }
|
28
|
-
authorization_params = sorted_sig_params.map {|key, value|
|
26
|
+
authorization_params = sorted_sig_params.map {|key, value|
|
27
|
+
[escape(key), "\"#{escape(value)}\""].join("=")
|
28
|
+
}.join(", ")
|
29
29
|
|
30
30
|
%{OAuth } + authorization_params
|
31
31
|
end
|
@@ -67,7 +67,7 @@ module ROAuth
|
|
67
67
|
OAUTH_PARAMS.include?(key)
|
68
68
|
}
|
69
69
|
oauth.inject({}) {|hash, (key, value)|
|
70
|
-
hash["oauth_#{key}"] =
|
70
|
+
hash["oauth_#{key}"] = value
|
71
71
|
hash
|
72
72
|
}
|
73
73
|
end
|
data/roauth.gemspec
CHANGED
@@ -1,44 +1,37 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{roauth}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alex MacCaw"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-06-09}
|
13
13
|
s.description = %q{Simple Ruby OAuth library}
|
14
14
|
s.email = %q{info@eribium.org}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.markdown"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
"
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
"test/test_roauth.rb"
|
20
|
+
"LICENSE",
|
21
|
+
"README.markdown",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"lib/roauth.rb",
|
25
|
+
"roauth.gemspec",
|
26
|
+
"test/helper.rb",
|
27
|
+
"test/test_roauth.rb"
|
29
28
|
]
|
30
29
|
s.homepage = %q{http://github.com/maccman/roauth}
|
31
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
32
30
|
s.require_paths = ["lib"]
|
33
|
-
s.rubygems_version = %q{1.
|
31
|
+
s.rubygems_version = %q{1.6.0}
|
34
32
|
s.summary = %q{Simple Ruby OAuth library}
|
35
|
-
s.test_files = [
|
36
|
-
"test/helper.rb",
|
37
|
-
"test/test_roauth.rb"
|
38
|
-
]
|
39
33
|
|
40
34
|
if s.respond_to? :specification_version then
|
41
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
42
35
|
s.specification_version = 3
|
43
36
|
|
44
37
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,29 +1,24 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: roauth
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.8
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.7
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Alex MacCaw
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2011-06-09 00:00:00 -07:00
|
14
|
-
default_executable:
|
12
|
+
date: 2011-09-23 00:00:00.000000000Z
|
15
13
|
dependencies: []
|
16
|
-
|
17
14
|
description: Simple Ruby OAuth library
|
18
15
|
email: info@eribium.org
|
19
16
|
executables: []
|
20
|
-
|
21
17
|
extensions: []
|
22
|
-
|
23
|
-
extra_rdoc_files:
|
18
|
+
extra_rdoc_files:
|
24
19
|
- LICENSE
|
25
20
|
- README.markdown
|
26
|
-
files:
|
21
|
+
files:
|
27
22
|
- LICENSE
|
28
23
|
- README.markdown
|
29
24
|
- Rakefile
|
@@ -32,33 +27,28 @@ files:
|
|
32
27
|
- roauth.gemspec
|
33
28
|
- test/helper.rb
|
34
29
|
- test/test_roauth.rb
|
35
|
-
has_rdoc: true
|
36
30
|
homepage: http://github.com/maccman/roauth
|
37
31
|
licenses: []
|
38
|
-
|
39
32
|
post_install_message:
|
40
33
|
rdoc_options: []
|
41
|
-
|
42
|
-
require_paths:
|
34
|
+
require_paths:
|
43
35
|
- lib
|
44
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
37
|
none: false
|
46
|
-
requirements:
|
47
|
-
- -
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version:
|
50
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ! '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
43
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version:
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
56
48
|
requirements: []
|
57
|
-
|
58
49
|
rubyforge_project:
|
59
|
-
rubygems_version: 1.6
|
50
|
+
rubygems_version: 1.8.6
|
60
51
|
signing_key:
|
61
52
|
specification_version: 3
|
62
53
|
summary: Simple Ruby OAuth library
|
63
54
|
test_files: []
|
64
|
-
|