roauth 0.0.7 → 0.0.8

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/roauth.rb +5 -5
  3. data/roauth.gemspec +13 -20
  4. metadata +19 -29
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -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] = escape(
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| [key, "\"#{value}\""].join("=") }.join(", ")
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}"] = escape(value)
70
+ hash["oauth_#{key}"] = value
71
71
  hash
72
72
  }
73
73
  end
@@ -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 the gemspec command
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.6"
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{2010-10-13}
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
- "README.markdown"
17
+ "README.markdown"
18
18
  ]
19
19
  s.files = [
20
- ".gitignore",
21
- "LICENSE",
22
- "README.markdown",
23
- "Rakefile",
24
- "VERSION",
25
- "lib/roauth.rb",
26
- "roauth.gemspec",
27
- "test/helper.rb",
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.3.7}
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: "0"
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: "0"
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
56
48
  requirements: []
57
-
58
49
  rubyforge_project:
59
- rubygems_version: 1.6.0
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
-