Skip to content

Undo changes to library name and gemspec #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
162d687
make the overrides in extras.rb friendlier and not override other (e.…
Aug 7, 2010
b25f2a2
rename so i can link fom a gemfile
Aug 7, 2010
f1c7a4b
add UI extension support
nov Jan 18, 2011
73ecfd6
fix typo
nov Jan 18, 2011
90aad76
icon spec update
nov Jan 18, 2011
cbe4eca
remove 1 space
nov Jan 18, 2011
4083e49
Regenerate gemspec for version 2.1.9
nov Jan 18, 2011
a086999
updating documentation for running tests
Mar 24, 2011
973eb80
updating auto-submit form to hide element using CSS, moved
Mar 24, 2011
f943c06
Support cache clients that return boolean values like Dalli
balexand Nov 8, 2010
77d17a2
Rename gemspec so it can be linked from Bundler.
chanks Feb 18, 2011
a91ee67
I was getting an error about the logger not being initialized, so I i…
Mar 27, 2011
2575d20
updating documentation for running tests
Mar 24, 2011
e4ffb4a
updating auto-submit form to hide element using CSS, moved
Mar 24, 2011
81d8798
encode form inputs so that values with elements such as & or ' are still
steved Mar 22, 2011
d2ba6c3
added the name to the gemspec file
kf8a Mar 4, 2011
1bef6e2
Add attr_reader for setup_url on SetupNeededResponse. Add asserts to …
Feb 25, 2011
8cd8665
Add missing testutil requires causing test suite to crash (at least u…
Feb 25, 2011
7ee4ab0
some gemspec cleanup, fixes constant redefinition warning, removes ol…
Apr 5, 2011
5c28b1a
update gemspec to confirm to rubygems 1.7
Apr 19, 2011
5363931
Update to deal with seg fault from Ruby 1.9.2-p290 and below running …
jwang Sep 4, 2011
871784b
add Util::HTML_FORM_ID constant for use in generated auto-submit open…
Sep 9, 2011
0d86b56
bump sub-version to 2.1.8.1 to denote our updates
Sep 9, 2011
4b6fdd1
Bundler-friendly gemspec
Oct 20, 2011
8250493
Fix cleanup AR associations whose expiry is past, not upcoming
mcary Nov 23, 2011
f2df943
Fix AR store class name in gc rake task and explicitly require it
mcary Nov 23, 2011
dc26a4c
Improve desc and user feedback in AR gc rake task
mcary Nov 23, 2011
24a5efb
use OpenSSL::HMAC insted of Digest::HMAC if can do so.
hide24 Aug 4, 2011
e4726b6
removing local hmac impl -> going with openssl
kevmoo Jan 19, 2012
ad37c06
Reverse-merged the changes to rename the gem and changes to gemspec.
Feb 28, 2012
b8bb3cb
Merge branch 'master' of https://github.com/nov/ruby-openid
Feb 29, 2012
feeff09
Remove nov gemspec
Feb 29, 2012
36b33e8
Bump version in gemspec
Feb 29, 2012
9f9b6c6
Revert a change that causes Yahoo OpenID to fail due to Yahoo appendi…
Feb 29, 2012
452053b
Update version to 2.1.9.1
Feb 29, 2012
0e89483
Merge branch 'master' of git://github.com/jwang/ruby-openid
Mar 23, 2012
f289b4f
Merge branch 'master' of git://github.com/kevmoo/ruby-openid
Mar 23, 2012
f4b14d8
Merge branch 'master' of git://github.com/mbleigh/ruby-openid
Mar 23, 2012
bf5c85a
Merge branch 'master' of git://github.com/mcary/ruby-openid
Mar 23, 2012
7aca01d
Merge branch 'master' of git://github.com/childsj/ruby-openid
Mar 23, 2012
1c1aa19
Bump version
Mar 23, 2012
6c9189d
Merge branch 'master' of git://github.com/agoragames/ruby-openid
Mar 23, 2012
5d0e279
Remove double declaration of VERSION due to merge. Version is now def…
Mar 24, 2012
4c7512a
Make gemspec depend on version.rb
Mar 24, 2012
9393d97
More gemspec version work.
Mar 24, 2012
8bc76d0
Merge branch 'patch-1' of git://github.com/mcary/ruby-openid
Mar 26, 2012
9e61f53
Merging agoragames branch again (trying to get github to show merge)
Mar 26, 2012
bf4d954
Bump version
Mar 26, 2012
d199691
Add travis CI file
Mar 26, 2012
446cd60
Merge branch 'master' of git://github.com/xxx/ruby-openid
Mar 27, 2012
b7fd68f
Add test dependencies to gemspec
Mar 27, 2012
d6f895a
Update readme
Mar 27, 2012
7f6524a
Rename README to README.md
Mar 27, 2012
57ecdc8
Update travis config to run tests
Mar 27, 2012
898963d
Fix bug in MockFetcherForXRIProxy that was breaking unit test. Also …
Mar 27, 2012
247a7cb
Fix unit test for trustroots. 2 urls that don't parse should be insa…
Mar 27, 2012
84d1ef4
Fix trustroot unit test to pass on ruby 1.9.2.
Mar 27, 2012
5dfb588
Add formatting for README.
Mar 27, 2012
74ed509
Fix circular require
Mar 27, 2012
d8b51da
Bump version
Mar 27, 2012
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: ruby
rvm:
- 1.9.2
- 1.9.3
script: bundle exec rake test
6 changes: 3 additions & 3 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ Or, if you installed via rubygems:
$> irb
irb$> require "rubygems"
=> true
irb$> require_gem "ruby-openid"
irb$> require_gem "ruby-openid"
=> true

== Run the test suite

Go into the test directory and execute the *runtests.rb* script.
Go into the admin directory and execute the *runtests.rb* script.

== Next steps

* Run consumer.rb in the examples directory.
* Run consumer.rb in the examples directory.
* Get started writing your own consumer using OpenID::Consumer
* Write your own server with OpenID::Server
* Use the OpenIDLoginGenerator! Read example/README for more info.
57 changes: 29 additions & 28 deletions README → README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
=Ruby OpenID
# Ruby OpenID

[![Build Status](https://secure.travis-ci.org/joe1chen/ruby-openid.png)](http://travis-ci.org/joe1chen/ruby-openid)

A Ruby library for verifying and serving OpenID identities.

This is a fork by courtenay @ entp (http://entp.com) which merges in many pull requests,
This is a fork by courtenay @ entp (http://entp.com) and joe1chen which merges in many pull requests,
fixes some tests and works on ruby 1.8.7 and ruby 1.9.2 (at least). This library seems
otherwise abandoned by its authors.

==Features
* Easy to use API for verifying OpenID identites - OpenID::Consumer
* Support for serving OpenID identites - OpenID::Server
* Does not depend on underlying web framework
* Supports multiple storage mechanisms (Filesystem, ActiveRecord, Memory)
* Example code to help you get started, including:
* Ruby on Rails based consumer and server
* OpenIDLoginGenerator for quickly getting creating a rails app that uses
OpenID for authentication
* ActiveRecordOpenIDStore plugin
* Comprehensive test suite
* Supports both OpenID 1 and OpenID 2 transparently

==Installing
## Features
* Easy to use API for verifying OpenID identites - OpenID::Consumer
* Support for serving OpenID identites - OpenID::Server
* Does not depend on underlying web framework
* Supports multiple storage mechanisms (Filesystem, ActiveRecord, Memory)
* Example code to help you get started, including:
* Ruby on Rails based consumer and server
* OpenIDLoginGenerator for quickly getting creating a rails app that uses OpenID for authentication
* ActiveRecordOpenIDStore plugin
* Comprehensive test suite
* Supports both OpenID 1 and OpenID 2 transparently

## Installing
Before running the examples or writing your own code you'll need to install
the library. See the INSTALL file or use rubygems:

gem install ruby-openid
gem install ruby-openid

Check the installation:

$ irb
irb> require 'rubygems'
irb> require_gem 'ruby-openid'
=> true
$ irb
irb> require 'rubygems'
irb> require_gem 'ruby-openid'
=> true

The library is known to work with Ruby 1.8.4 on Unix, Max OSX and
Win32. Examples have been tested with Rails 1.1 and 1.2, and 2.0.

==Getting Started
## Getting Started
The best way to start is to look at the rails_openid example.
You can run it with:
cd examples/rails_openid
script/server
cd examples/rails_openid
script/server

If you are writing an OpenID Relying Party, a good place to start is:
examples/rails_openid/app/controllers/consumer_controller.rb
Expand All @@ -51,13 +52,13 @@ The library code is quite well documented, so don't be squeamish, and
look at the library itself if there's anything you don't understand in
the examples.

==Homepage
## Homepage
http://github.com/openid/ruby-openid

See also:
http://openid.net/

==Community
## Community
Discussion regarding the Ruby OpenID library and other JanRain OpenID
libraries takes place on the the OpenID mailing list on
openid.net.
Expand All @@ -74,12 +75,12 @@ contribute, see

http://openidenabled.com/contribute/

==Author
## Author
Copyright 2006-2008, JanRain, Inc.

Contact openid@janrain.com or visit the OpenID channel on pibb.com:

http://pibb.com/go/openid

==License
## License
Apache Software License. For more information see the LICENSE file.
2 changes: 1 addition & 1 deletion admin/library-name
Original file line number Diff line number Diff line change
@@ -1 +1 @@
entp-ruby-openid
ruby-openid
21 changes: 0 additions & 21 deletions entp-ruby-openid.gemspec

This file was deleted.

6 changes: 4 additions & 2 deletions examples/active_record_openid_store/README
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ You may garbage collect unused nonces and expired associations using
the gc instance method of ActiveRecordOpenIDStore. Hook it up to a
task in your app's Rakefile like so:

desc 'GC OpenID store'
desc 'GC OpenID store, deleting expired nonces and associations'
task :gc_openid_store => :environment do
ActiveRecordOpenIDStore.new.cleanup
require 'openid_ar_store'
nonces, associations = ActiveRecordStore.new.cleanup
puts "Deleted #{nonces} nonces, #{associations} associations"
end

Run it by typing:
Expand Down
2 changes: 1 addition & 1 deletion examples/active_record_openid_store/lib/openid_ar_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def cleanup_nonces

def cleanup_associations
now = Time.now.to_i
Association.delete_all(['issued + lifetime > ?',now])
Association.delete_all(['issued + lifetime < ?',now])
end

end
112 changes: 0 additions & 112 deletions lib/hmac/hmac.rb

This file was deleted.

11 changes: 0 additions & 11 deletions lib/hmac/sha1.rb

This file was deleted.

25 changes: 0 additions & 25 deletions lib/hmac/sha2.rb

This file was deleted.

6 changes: 1 addition & 5 deletions lib/openid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,5 @@

require "openid/version"
require 'openid/store'
require 'openid/yadis'
require "openid/consumer"
require 'openid/server'

module OpenID
end
require 'openid/server'
10 changes: 5 additions & 5 deletions lib/openid/consumer/idres.rb
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,10 @@ def verify_discovery_single(endpoint, to_match)
"#{endpoint.claimed_id}")
end

if to_match.claimed_id != endpoint.claimed_id
raise ProtocolError, ("claimed_id mismatch. Expected "\
"#{to_match.claimed_id}, got "\
"#{endpoint.claimed_id}")
if to_match.get_local_id != endpoint.get_local_id
raise ProtocolError, ("local_id mismatch. Expected "\
"#{to_match.get_local_id}, got "\
"#{endpoint.get_local_id}")
end

# If the server URL is nil, this must be an OpenID 1
Expand All @@ -512,7 +512,7 @@ def verify_discovery_single(endpoint, to_match)
"`to_match' endpoint."
end
elsif to_match.server_url != endpoint.server_url
raise ProtocolError, ("OP Endpoint mismatch. Expected "\
raise ProtocolError, ("OP Endpoint mismatch. Expected"\
"#{to_match.server_url}, got "\
"#{endpoint.server_url}")
end
Expand Down
Loading