Sha256: b7721066d687f8bab8e1e945f4c43f1532da574ea8e3691c09022647b9e59cf3
Contents?: true
Size: 1.99 KB
Versions: 1
Compression:
Stored size: 1.99 KB
Contents
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.2" 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authlogic-connect-0.0.2 | Rakefile |