simple_oauth 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.travis.yml +8 -0
- data/.yardopts +4 -0
- data/Gemfile +5 -0
- data/{LICENSE → LICENSE.md} +1 -1
- data/README.md +24 -0
- data/Rakefile +11 -36
- data/lib/simple_oauth.rb +2 -2
- data/lib/simple_oauth/core_ext/object.rb +1 -1
- data/lib/simple_oauth/version.rb +1 -1
- data/simple_oauth.gemspec +8 -5
- data/test/helper.rb +7 -2
- metadata +102 -43
- data/README.rdoc +0 -17
- data/VERSION +0 -1
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/.yardopts
ADDED
data/Gemfile
CHANGED
data/{LICENSE → LICENSE.md}
RENAMED
data/README.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
simple_oauth
|
2
|
+
============
|
3
|
+
Simply builds and verifies OAuth headers
|
4
|
+
|
5
|
+
Continuous Integration
|
6
|
+
----------------------
|
7
|
+
[![Build Status](http://travis-ci.org/laserlemon/simple_oauth.png)](http://travis-ci.org/laserlemon/simple_oauth)
|
8
|
+
|
9
|
+
Submitting a Pull Request
|
10
|
+
-------------------------
|
11
|
+
1. Fork the project.
|
12
|
+
2. Create a topic branch.
|
13
|
+
3. Implement your feature or bug fix.
|
14
|
+
4. Add documentation for your feature or bug fix.
|
15
|
+
5. Run <tt>bundle exec rake doc:yard</tt>. If your changes are not 100% documented, go back to step 4.
|
16
|
+
6. Add tests for your feature or bug fix.
|
17
|
+
7. Run <tt>bundle exec rake test</tt>. If your changes are not 100% covered, go back to step 6.
|
18
|
+
8. Commit and push your changes.
|
19
|
+
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
|
+
|
21
|
+
Copyright
|
22
|
+
---------
|
23
|
+
Copyright (c) 2010 Steve Richert, Erik Michaels-Ober.
|
24
|
+
See [LICENSE](https://github.com/laserlemon/simple_oauth/blob/master/LICENSE.md) for details.
|
data/Rakefile
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
|
2
|
-
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
|
-
require 'bundler'
|
1
|
+
#!/usr/bin/env rake
|
5
2
|
|
3
|
+
require 'bundler'
|
6
4
|
Bundler::GemHelper.install_tasks
|
7
5
|
|
6
|
+
require 'rake/testtask'
|
8
7
|
Rake::TestTask.new do |test|
|
9
8
|
test.libs << 'lib' << 'test'
|
10
9
|
test.pattern = 'test/**/*_test.rb'
|
@@ -13,37 +12,13 @@ end
|
|
13
12
|
|
14
13
|
task :default => :test
|
15
14
|
|
16
|
-
|
17
|
-
require
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
begin
|
26
|
-
require 'rcov/rcovtask'
|
27
|
-
Rcov::RcovTask.new do |rcov|
|
28
|
-
rcov.libs << 'lib' << 'test'
|
29
|
-
rcov.pattern = 'test/**/*_test.rb'
|
30
|
-
rcov.verbose = true
|
31
|
-
rcov.rcov_opts << '--exclude "gems/*"'
|
15
|
+
namespace :doc do
|
16
|
+
require 'yard'
|
17
|
+
YARD::Rake::YardocTask.new do |task|
|
18
|
+
task.files = ['README.md', 'LICENSE.md', 'lib/**/*.rb']
|
19
|
+
task.options = [
|
20
|
+
'--output-dir', 'doc/yard',
|
21
|
+
'--markup', 'markdown',
|
22
|
+
]
|
32
23
|
end
|
33
|
-
rescue LoadError
|
34
|
-
task :rcov do
|
35
|
-
abort 'RCov is not available. Install it with: gem install rcov'
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
def gemspec
|
40
|
-
@gemspec ||= begin
|
41
|
-
file = File.expand_path('../simple_oauth.gemspec', __FILE__)
|
42
|
-
eval(File.read(file), binding, file)
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
desc 'Validate the gemspec'
|
47
|
-
task :gemspec do
|
48
|
-
gemspec.validate
|
49
24
|
end
|
data/lib/simple_oauth.rb
CHANGED
@@ -2,5 +2,5 @@ require 'base64'
|
|
2
2
|
require 'cgi'
|
3
3
|
require 'openssl'
|
4
4
|
require 'uri'
|
5
|
-
require
|
6
|
-
require
|
5
|
+
require 'simple_oauth/core_ext/object'
|
6
|
+
require 'simple_oauth/header'
|
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 = 5 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
@@ -2,15 +2,18 @@
|
|
2
2
|
require File.expand_path('../lib/simple_oauth/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
|
-
spec.add_development_dependency
|
6
|
-
spec.
|
5
|
+
spec.add_development_dependency 'bundler', '~> 1.0'
|
6
|
+
spec.add_development_dependency 'mocha', '~> 0.9'
|
7
|
+
spec.add_development_dependency 'rake', '~> 0.8'
|
8
|
+
spec.add_development_dependency 'simplecov', '~> 0.4'
|
9
|
+
spec.add_development_dependency 'turn', '~> 0.8'
|
10
|
+
spec.add_development_dependency 'yard', '~> 0.6'
|
11
|
+
spec.authors = ['Steve Richert', 'Erik Michaels-Ober']
|
7
12
|
spec.description = 'Simply builds and verifies OAuth headers'
|
8
|
-
spec.email = 'steve.richert@gmail.com'
|
9
|
-
spec.extra_rdoc_files = ['README.rdoc']
|
13
|
+
spec.email = ['steve.richert@gmail.com', 'sferik@gmail.com']
|
10
14
|
spec.files = `git ls-files`.split("\n")
|
11
15
|
spec.homepage = 'http://github.com/laserlemon/simple_oauth'
|
12
16
|
spec.name = 'simple_oauth'
|
13
|
-
spec.rdoc_options = ['--charset=UTF-8']
|
14
17
|
spec.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if spec.respond_to? :required_rubygems_version=
|
15
18
|
spec.summary = spec.description
|
16
19
|
spec.test_files = `git ls-files -- test/**/*_test.rb`.split("\n")
|
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -2,78 +2,137 @@
|
|
2
2
|
name: simple_oauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Steve Richert
|
8
|
+
- Steve Richert
|
9
|
+
- Erik Michaels-Ober
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
13
|
|
13
|
-
date: 2011-
|
14
|
+
date: 2011-05-06 00:00:00 -07:00
|
14
15
|
default_executable:
|
15
16
|
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: bundler
|
19
|
+
prerelease: false
|
20
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
none: false
|
22
|
+
requirements:
|
23
|
+
- - ~>
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: "1.0"
|
26
|
+
type: :development
|
27
|
+
version_requirements: *id001
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: mocha
|
30
|
+
prerelease: false
|
31
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
32
|
+
none: false
|
33
|
+
requirements:
|
34
|
+
- - ~>
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: "0.9"
|
37
|
+
type: :development
|
38
|
+
version_requirements: *id002
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: rake
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: "0.8"
|
48
|
+
type: :development
|
49
|
+
version_requirements: *id003
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: simplecov
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ~>
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: "0.4"
|
59
|
+
type: :development
|
60
|
+
version_requirements: *id004
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: turn
|
63
|
+
prerelease: false
|
64
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: "0.8"
|
70
|
+
type: :development
|
71
|
+
version_requirements: *id005
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: yard
|
74
|
+
prerelease: false
|
75
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ~>
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: "0.6"
|
81
|
+
type: :development
|
82
|
+
version_requirements: *id006
|
27
83
|
description: Simply builds and verifies OAuth headers
|
28
|
-
email:
|
84
|
+
email:
|
85
|
+
- steve.richert@gmail.com
|
86
|
+
- sferik@gmail.com
|
29
87
|
executables: []
|
30
88
|
|
31
89
|
extensions: []
|
32
90
|
|
33
|
-
extra_rdoc_files:
|
34
|
-
|
91
|
+
extra_rdoc_files: []
|
92
|
+
|
35
93
|
files:
|
36
|
-
- .gemtest
|
37
|
-
- .gitignore
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
-
|
42
|
-
-
|
43
|
-
-
|
44
|
-
-
|
45
|
-
- lib/simple_oauth
|
46
|
-
- lib/simple_oauth/
|
47
|
-
- lib/simple_oauth/
|
48
|
-
- simple_oauth.
|
49
|
-
-
|
50
|
-
- test/
|
51
|
-
- test/
|
94
|
+
- .gemtest
|
95
|
+
- .gitignore
|
96
|
+
- .travis.yml
|
97
|
+
- .yardopts
|
98
|
+
- Gemfile
|
99
|
+
- LICENSE.md
|
100
|
+
- README.md
|
101
|
+
- Rakefile
|
102
|
+
- init.rb
|
103
|
+
- lib/simple_oauth.rb
|
104
|
+
- lib/simple_oauth/core_ext/object.rb
|
105
|
+
- lib/simple_oauth/header.rb
|
106
|
+
- lib/simple_oauth/version.rb
|
107
|
+
- simple_oauth.gemspec
|
108
|
+
- test/helper.rb
|
109
|
+
- test/rsa_private_key
|
110
|
+
- test/simple_oauth_test.rb
|
52
111
|
has_rdoc: true
|
53
112
|
homepage: http://github.com/laserlemon/simple_oauth
|
54
113
|
licenses: []
|
55
114
|
|
56
115
|
post_install_message:
|
57
|
-
rdoc_options:
|
58
|
-
|
116
|
+
rdoc_options: []
|
117
|
+
|
59
118
|
require_paths:
|
60
|
-
- lib
|
119
|
+
- lib
|
61
120
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
121
|
none: false
|
63
122
|
requirements:
|
64
|
-
|
65
|
-
|
66
|
-
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: "0"
|
67
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
127
|
none: false
|
69
128
|
requirements:
|
70
|
-
|
71
|
-
|
72
|
-
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.3.6
|
73
132
|
requirements: []
|
74
133
|
|
75
134
|
rubyforge_project:
|
76
|
-
rubygems_version: 1.5.
|
135
|
+
rubygems_version: 1.5.1
|
77
136
|
signing_key:
|
78
137
|
specification_version: 3
|
79
138
|
summary: Simply builds and verifies OAuth headers
|
data/README.rdoc
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
= simple_oauth
|
2
|
-
|
3
|
-
Simply builds and verifies OAuth headers
|
4
|
-
|
5
|
-
== Note on Patches/Pull Requests
|
6
|
-
|
7
|
-
* Fork the project.
|
8
|
-
* Make your feature addition or bug fix.
|
9
|
-
* Add tests for it. This is important so I don't break it in a
|
10
|
-
future version unintentionally.
|
11
|
-
* Commit, do not mess with rakefile, version, or history.
|
12
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
13
|
-
* Send me a pull request. Bonus points for topic branches.
|
14
|
-
|
15
|
-
== Copyright
|
16
|
-
|
17
|
-
Copyright (c) 2010 Steve Richert. See LICENSE for details.
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.0.0
|