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 CHANGED
@@ -1,8 +1,9 @@
1
+ language: ruby
1
2
  rvm:
2
- - 1.8.6
3
3
  - 1.8.7
4
- - 1.9.1
5
4
  - 1.9.2
6
- - jruby
7
- - rbx
8
- - ree
5
+ - 1.9.3
6
+ - jruby-18mode
7
+ - jruby-19mode
8
+ - rbx-18mode
9
+ - rbx-19mode
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
- Continuous Integration
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
- Copyright
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
@@ -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
@@ -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 unless defined? ::SimpleOAuth::Version::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
- # -*- encoding: utf-8 -*-
1
+ # encoding: utf-8
2
2
  require File.expand_path('../lib/simple_oauth/version', __FILE__)
3
3
 
4
- Gem::Specification.new do |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']
12
- spec.description = 'Simply builds and verifies OAuth headers'
13
- spec.email = ['steve.richert@gmail.com', 'sferik@gmail.com']
14
- spec.files = `git ls-files`.split("\n")
15
- spec.homepage = 'http://github.com/laserlemon/simple_oauth'
16
- spec.name = 'simple_oauth'
17
- spec.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if spec.respond_to? :required_rubygems_version=
18
- spec.summary = spec.description
19
- spec.test_files = `git ls-files -- test/**/*_test.rb`.split("\n")
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
@@ -1,9 +1,10 @@
1
- require 'rubygems'
1
+ unless ENV['CI']
2
+ require 'simplecov'
3
+ SimpleCov.start
4
+ end
5
+
2
6
  require 'bundler'
3
7
  Bundler.setup
4
- require 'simplecov'
5
- SimpleCov.start
6
8
  require 'test/unit'
7
9
  require 'mocha'
8
- require 'turn'
9
10
  require 'simple_oauth'
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
- - Steve Richert
9
- - Erik Michaels-Ober
7
+ authors:
8
+ - Steve Richert
9
+ - Erik Michaels-Ober
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2011-05-06 00:00:00 -07:00
15
- default_executable:
16
- dependencies:
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
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
- - steve.richert@gmail.com
86
- - sferik@gmail.com
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
- files:
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
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
- require_paths:
119
- - lib
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
- - !ruby/object:Gem::Version
125
- version: "0"
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
- - !ruby/object:Gem::Version
131
- version: 1.3.6
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.5.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: