forked from rails/open_id_authentication
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- rake gemspec generates open_id_authentication.gemspec to build gem in GitHub - rake package build gem in pkg/open_id_authentication-VERSION.gem - rake debug_gem show gemspec to be generated.
- Loading branch information
Showing
4 changed files
with
117 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
if config.respond_to?(:gems) | ||
config.gem 'ruby-openid', :lib => 'openid', :version => '>=2.0.4' | ||
else | ||
begin | ||
require 'openid' | ||
rescue LoadError | ||
begin | ||
gem 'ruby-openid', '>=2.0.4' | ||
rescue Gem::LoadError | ||
puts "Install the ruby-openid gem to enable OpenID support" | ||
end | ||
end | ||
end | ||
#!/usr/bin/env ruby | ||
|
||
config.to_prepare do | ||
OpenID::Util.logger = Rails.logger | ||
ActionController::Base.send :include, OpenIdAuthentication | ||
end | ||
load File.expand_path('rails/init.rb', File.dirname(__FILE__)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{open_id_authentication} | ||
s.version = "1.0.0" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["David Heinemeier Hansson"] | ||
s.date = %q{2009-03-25} | ||
s.description = %q{Provides a thin wrapper around the excellent ruby-openid gem from JanRan. gem version is unofficial, github fork of rails's by moro} | ||
s.email = %q{} | ||
s.extra_rdoc_files = ["README", "CHANGElOG"] | ||
s.files = ["README", "CHANGElOG", "Rakefile", "test/mem_cache_store_test.rb", "test/normalize_test.rb", "test/open_id_authentication_test.rb", "test/status_test.rb", "test/test_helper.rb", "lib/open_id_authentication", "lib/open_id_authentication/association.rb", "lib/open_id_authentication/db_store.rb", "lib/open_id_authentication/mem_cache_store.rb", "lib/open_id_authentication/nonce.rb", "lib/open_id_authentication/request.rb", "lib/open_id_authentication/timeout_fixes.rb", "lib/open_id_authentication.rb", "generators/open_id_authentication_tables", "generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb", "generators/open_id_authentication_tables/templates", "generators/open_id_authentication_tables/templates/migration.rb", "generators/upgrade_open_id_authentication_tables", "generators/upgrade_open_id_authentication_tables/templates", "generators/upgrade_open_id_authentication_tables/templates/migration.rb", "generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb", "rails/init.rb"] | ||
s.has_rdoc = true | ||
s.homepage = %q{http//github.com/rails/open_id_authentication} | ||
s.rdoc_options = ["--title", "open_id_authentication documentation", "--charset", "utf-8", "--opname", "index.html", "--line-numbers", "--main", "README", "--inline-source", "--exclude", "^(examples|extras)/"] | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = %q{1.3.1} | ||
s.summary = %q{Provides a thin wrapper around the excellent ruby-openid gem from JanRan. gem version is unofficial, github fork of rails's by moro} | ||
s.test_files = ["test/mem_cache_store_test.rb", "test/normalize_test.rb", "test/open_id_authentication_test.rb", "test/status_test.rb"] | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 2 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
s.add_runtime_dependency(%q<ruby-openid>, [">= 2.0.4"]) | ||
else | ||
s.add_dependency(%q<ruby-openid>, [">= 2.0.4"]) | ||
end | ||
else | ||
s.add_dependency(%q<ruby-openid>, [">= 2.0.4"]) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
if config.respond_to?(:gems) | ||
config.gem 'ruby-openid', :lib => 'openid', :version => '>=2.0.4' | ||
else | ||
begin | ||
require 'openid' | ||
rescue LoadError | ||
begin | ||
gem 'ruby-openid', '>=2.0.4' | ||
rescue Gem::LoadError | ||
puts "Install the ruby-openid gem to enable OpenID support" | ||
end | ||
end | ||
end | ||
|
||
config.to_prepare do | ||
OpenID::Util.logger = Rails.logger | ||
ActionController::Base.send :include, OpenIdAuthentication | ||
end |