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 CHANGED
@@ -1,7 +1,9 @@
1
1
  *.rbc
2
2
  .DS_Store
3
3
  .bundle
4
+ .yardoc
4
5
  Gemfile.lock
5
6
  coverage
7
+ doc
6
8
  pkg
7
9
  rdoc
@@ -0,0 +1,8 @@
1
+ rvm:
2
+ - 1.8.6
3
+ - 1.8.7
4
+ - 1.9.1
5
+ - 1.9.2
6
+ - jruby
7
+ - rbx
8
+ - ree
@@ -0,0 +1,4 @@
1
+ --markup markdown
2
+ -
3
+ HISTORY.md
4
+ LICENSE.md
data/Gemfile CHANGED
@@ -1,2 +1,7 @@
1
1
  source 'http://rubygems.org'
2
+
3
+ platforms :jruby do
4
+ gem 'jruby-openssl', '~> 0.7'
5
+ end
6
+
2
7
  gemspec
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Steve Richert
1
+ Copyright (c) 2010 Steve Richert, Erik Michaels-Ober.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -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
- require 'rake'
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
- Rake::RDocTask.new do |rdoc|
17
- require File.expand_path('../lib/simple_oauth/version', __FILE__)
18
- version = SimpleOAuth::Version::STRING
19
- rdoc.rdoc_dir = 'rdoc'
20
- rdoc.title = "simple_oauth #{version}"
21
- rdoc.rdoc_files.include('README*')
22
- rdoc.rdoc_files.include('lib/**/*.rb')
23
- end
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
@@ -2,5 +2,5 @@ require 'base64'
2
2
  require 'cgi'
3
3
  require 'openssl'
4
4
  require 'uri'
5
- require File.expand_path('../simple_oauth/core_ext/object', __FILE__)
6
- require File.expand_path('../simple_oauth/header', __FILE__)
5
+ require 'simple_oauth/core_ext/object'
6
+ require 'simple_oauth/header'
@@ -1,6 +1,6 @@
1
1
  major, minor, patch = RUBY_VERSION.split('.')
2
2
 
3
- if major.to_i == 1 && minor.to_i < 9
3
+ if major.to_i == 1 && minor.to_i == 8 && patch.to_i <= 6
4
4
  class Object
5
5
  def tap
6
6
  yield self
@@ -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 = 4 unless defined? ::SimpleOAuth::Version::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
@@ -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('mocha', '>= 0')
6
- spec.author = 'Steve Richert'
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")
@@ -1,4 +1,9 @@
1
- require 'simple_oauth'
2
1
  require 'rubygems'
3
- require 'mocha'
2
+ require 'bundler'
3
+ Bundler.setup
4
+ require 'simplecov'
5
+ SimpleCov.start
4
6
  require 'test/unit'
7
+ require 'mocha'
8
+ require 'turn'
9
+ require 'simple_oauth'
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.4
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-02-03 00:00:00 -05:00
14
+ date: 2011-05-06 00:00:00 -07:00
14
15
  default_executable:
15
16
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: mocha
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
25
- type: :development
26
- version_requirements: *id001
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: steve.richert@gmail.com
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
- - README.rdoc
91
+ extra_rdoc_files: []
92
+
35
93
  files:
36
- - .gemtest
37
- - .gitignore
38
- - Gemfile
39
- - LICENSE
40
- - README.rdoc
41
- - Rakefile
42
- - VERSION
43
- - init.rb
44
- - lib/simple_oauth.rb
45
- - lib/simple_oauth/core_ext/object.rb
46
- - lib/simple_oauth/header.rb
47
- - lib/simple_oauth/version.rb
48
- - simple_oauth.gemspec
49
- - test/helper.rb
50
- - test/rsa_private_key
51
- - test/simple_oauth_test.rb
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
- - --charset=UTF-8
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
- - !ruby/object:Gem::Version
66
- version: "0"
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
- - !ruby/object:Gem::Version
72
- version: 1.3.6
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.0
135
+ rubygems_version: 1.5.1
77
136
  signing_key:
78
137
  specification_version: 3
79
138
  summary: Simply builds and verifies OAuth headers
@@ -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