simple_oauth 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +6 -5
- data/README.md +29 -10
- data/Rakefile +0 -0
- data/lib/simple_oauth/header.rb +1 -1
- data/lib/simple_oauth/version.rb +1 -1
- data/simple_oauth.gemspec +17 -18
- data/test/helper.rb +5 -4
- metadata +123 -118
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,13 +1,8 @@
|
|
1
|
-
simple_oauth
|
2
|
-
============
|
3
|
-
Simply builds and verifies OAuth headers
|
1
|
+
# simple_oauth [![Build Status](https://secure.travis-ci.org/laserlemon/simple_oauth.png)](http://travis-ci.org/laserlemon/simple_oauth) [![Dependency Status](https://gemnasium.com/laserlemon/simple_oauth.png)](https://gemnasium.com/laserlemon/simple_oauth)
|
4
2
|
|
5
|
-
|
6
|
-
----------------------
|
7
|
-
[![Build Status](http://travis-ci.org/laserlemon/simple_oauth.png)](http://travis-ci.org/laserlemon/simple_oauth)
|
3
|
+
Simply builds and verifies OAuth headers
|
8
4
|
|
9
|
-
Submitting a Pull Request
|
10
|
-
-------------------------
|
5
|
+
## <a name="pulls"></a>Submitting a Pull Request
|
11
6
|
1. Fork the project.
|
12
7
|
2. Create a topic branch.
|
13
8
|
3. Implement your feature or bug fix.
|
@@ -18,7 +13,31 @@ Submitting a Pull Request
|
|
18
13
|
8. Commit and push your changes.
|
19
14
|
9. Submit a pull request. Please do not include changes to the gemspec or version file. (If you want to create your own version for some reason, please do so in a separate commit.)
|
20
15
|
|
21
|
-
|
22
|
-
|
16
|
+
## <a name="rubies"></a>Supported Rubies
|
17
|
+
This library aims to support and is [tested
|
18
|
+
against](http://travis-ci.org/laserlemon/simple_oauth) the following Ruby
|
19
|
+
implementations:
|
20
|
+
|
21
|
+
* Ruby 1.8.7
|
22
|
+
* Ruby 1.9.2
|
23
|
+
* Ruby 1.9.3
|
24
|
+
* [JRuby](http://www.jruby.org/)
|
25
|
+
* [Rubinius](http://rubini.us/)
|
26
|
+
|
27
|
+
If something doesn't work on one of these interpreters, it should be considered
|
28
|
+
a bug.
|
29
|
+
|
30
|
+
This library may inadvertently work (or seem to work) on other Ruby
|
31
|
+
implementations, however support will only be provided for the versions listed
|
32
|
+
above.
|
33
|
+
|
34
|
+
If you would like this library to support another Ruby version, you may
|
35
|
+
volunteer to be a maintainer. Being a maintainer entails making sure all tests
|
36
|
+
run and pass on that implementation. When something breaks on your
|
37
|
+
implementation, you will be personally responsible for providing patches in a
|
38
|
+
timely fashion. If critical issues for a particular implementation exist at the
|
39
|
+
time of a major release, support for that Ruby version may be dropped.
|
40
|
+
|
41
|
+
## <a name="copyright"></a>Copyright
|
23
42
|
Copyright (c) 2010 Steve Richert, Erik Michaels-Ober.
|
24
43
|
See [LICENSE](https://github.com/laserlemon/simple_oauth/blob/master/LICENSE.md) for details.
|
data/Rakefile
CHANGED
File without changes
|
data/lib/simple_oauth/header.rb
CHANGED
@@ -30,7 +30,7 @@ module SimpleOAuth
|
|
30
30
|
|
31
31
|
def initialize(method, url, params, oauth = {})
|
32
32
|
@method = method.to_s.upcase
|
33
|
-
@uri = URI.parse(url).tap do |uri|
|
33
|
+
@uri = URI.parse(url.to_s).tap do |uri|
|
34
34
|
uri.scheme = uri.scheme.downcase
|
35
35
|
uri.normalize!
|
36
36
|
uri.fragment = nil
|
data/lib/simple_oauth/version.rb
CHANGED
@@ -2,7 +2,7 @@ module SimpleOAuth
|
|
2
2
|
module Version
|
3
3
|
MAJOR = 0 unless defined? ::SimpleOAuth::Version::MAJOR
|
4
4
|
MINOR = 1 unless defined? ::SimpleOAuth::Version::MINOR
|
5
|
-
PATCH =
|
5
|
+
PATCH = 6 unless defined? ::SimpleOAuth::Version::PATCH
|
6
6
|
STRING = [MAJOR, MINOR, PATCH].join('.') unless defined? ::SimpleOAuth::Version::STRING
|
7
7
|
end
|
8
8
|
end
|
data/simple_oauth.gemspec
CHANGED
@@ -1,21 +1,20 @@
|
|
1
|
-
#
|
1
|
+
# encoding: utf-8
|
2
2
|
require File.expand_path('../lib/simple_oauth/version', __FILE__)
|
3
3
|
|
4
|
-
Gem::Specification.new do |
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
spec.version = SimpleOAuth::Version::STRING
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.add_development_dependency 'minitest'
|
6
|
+
gem.add_development_dependency 'mocha', '~> 0.10.0'
|
7
|
+
gem.add_development_dependency 'rake'
|
8
|
+
gem.add_development_dependency 'simplecov'
|
9
|
+
gem.add_development_dependency 'yard'
|
10
|
+
gem.authors = ["Steve Richert", "Erik Michaels-Ober"]
|
11
|
+
gem.description = 'Simply builds and verifies OAuth headers'
|
12
|
+
gem.email = ['steve.richert@gmail.com', 'sferik@gmail.com']
|
13
|
+
gem.files = `git ls-files`.split("\n")
|
14
|
+
gem.homepage = 'http://github.com/laserlemon/simple_oauth'
|
15
|
+
gem.name = 'simple_oauth'
|
16
|
+
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
|
17
|
+
gem.summary = gem.description
|
18
|
+
gem.test_files = `git ls-files -- test/**/*_test.rb`.split("\n")
|
19
|
+
gem.version = SimpleOAuth::Version::STRING
|
21
20
|
end
|
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,140 +1,145 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_oauth
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.6
|
4
5
|
prerelease:
|
5
|
-
version: 0.1.5
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
9
|
-
|
7
|
+
authors:
|
8
|
+
- Steve Richert
|
9
|
+
- Erik Michaels-Ober
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
13
|
+
date: 2012-04-23 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: minitest
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: mocha
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 0.10.0
|
39
|
+
type: :development
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.10.0
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: simplecov
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: yard
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
type: :development
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ! '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
83
95
|
description: Simply builds and verifies OAuth headers
|
84
|
-
email:
|
85
|
-
|
86
|
-
|
96
|
+
email:
|
97
|
+
- steve.richert@gmail.com
|
98
|
+
- sferik@gmail.com
|
87
99
|
executables: []
|
88
|
-
|
89
100
|
extensions: []
|
90
|
-
|
91
101
|
extra_rdoc_files: []
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
- test/simple_oauth_test.rb
|
111
|
-
has_rdoc: true
|
102
|
+
files:
|
103
|
+
- .gemtest
|
104
|
+
- .gitignore
|
105
|
+
- .travis.yml
|
106
|
+
- .yardopts
|
107
|
+
- Gemfile
|
108
|
+
- LICENSE.md
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- init.rb
|
112
|
+
- lib/simple_oauth.rb
|
113
|
+
- lib/simple_oauth/core_ext/object.rb
|
114
|
+
- lib/simple_oauth/header.rb
|
115
|
+
- lib/simple_oauth/version.rb
|
116
|
+
- simple_oauth.gemspec
|
117
|
+
- test/helper.rb
|
118
|
+
- test/rsa_private_key
|
119
|
+
- test/simple_oauth_test.rb
|
112
120
|
homepage: http://github.com/laserlemon/simple_oauth
|
113
121
|
licenses: []
|
114
|
-
|
115
122
|
post_install_message:
|
116
123
|
rdoc_options: []
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
124
|
+
require_paths:
|
125
|
+
- lib
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
121
127
|
none: false
|
122
|
-
requirements:
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
133
|
none: false
|
128
|
-
requirements:
|
129
|
-
|
130
|
-
|
131
|
-
|
134
|
+
requirements:
|
135
|
+
- - ! '>='
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 1.3.6
|
132
138
|
requirements: []
|
133
|
-
|
134
139
|
rubyforge_project:
|
135
|
-
rubygems_version: 1.
|
140
|
+
rubygems_version: 1.8.23
|
136
141
|
signing_key:
|
137
142
|
specification_version: 3
|
138
143
|
summary: Simply builds and verifies OAuth headers
|
139
144
|
test_files: []
|
140
|
-
|
145
|
+
has_rdoc:
|