Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 58510fff69
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (61 sloc) 2.035 kb
require 'rake'
require "rake/rdoctask"
require 'rake/gempackagetask'
# http://docs.rubygems.org/read/chapter/20
spec = Gem::Specification.new do |s|
s.name = "authlogic-connect"
s.author = "Lance Pollard"
s.version = "0.0.1"
s.summary = "Authlogic Connect: Let your app use all of Oauth and OpenID"
s.homepage = "http://github.com/viatropos/authlogic-connect"
s.email = "lancejpollard@gmail.com"
s.description = "Let your app use all of Oauth and OpenID"
s.has_rdoc = true
s.rubyforge_project = "authlogic-connect"
s.platform = Gem::Platform::RUBY
s.files = %w(README.markdown Rakefile init.rb MIT-LICENSE) + Dir["{lib,rails,test}/**/*"] - Dir["test/tmp"]
s.require_path = "lib"
s.add_dependency("activesupport", ">= 2.1.2")
s.add_dependency("activerecord", ">= 2.1.2")
s.add_dependency("authlogic")
s.add_dependency("oauth")
s.add_dependency("json")
s.add_dependency("oauth2") # facebook only
end
desc "Create .gemspec file (useful for github)"
task :gemspec do
File.open("pkg/#{spec.name}.gemspec", "w") do |f|
f.puts spec.to_ruby
end
end
desc "Build the gem into the current directory"
task :gem => :gemspec do
`gem build pkg/#{spec.name}.gemspec`
end
desc "Publish gem to rubygems"
task :publish => [:package] do
`gem push pkg/#{spec.name}-#{spec.version}.gem`
end
desc "Print a list of the files to be put into the gem"
task :manifest do
File.open("Manifest", "w") do |f|
spec.files.each do |file|
f.puts file
end
end
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
pkg.package_dir = "pkg"
end
desc "Install the gem locally"
task :install => [:package] do
sh %{sudo gem install pkg/#{spec.name}-#{spec.version} --no-ri --no-rdoc}
end
desc "Generate the rdoc"
Rake::RDocTask.new do |rdoc|
files = ["README.markdown", "lib/**/*.rb"]
rdoc.rdoc_files.add(files)
rdoc.main = "README.markdown"
rdoc.title = spec.summary
end
Jump to Line
Something went wrong with that request. Please try again.