Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (60 sloc) 2.117 kb
require 'rake'
require 'rubygems'
require 'rake/rdoctask'
require 'spec/rake/spectask'
puts "\nGem: rack-openid-proxy\n\n"
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = 'rack-openid-proxy'
s.summary = 'A Rack app/middleware to act as a proxy for OpenID authentication'
s.email = 'remi@remitaylor.com'
s.homepage = 'http://github.com/devfu/rack-openid-proxy'
s.description = 'A Rack app/middleware to act as a proxy for OpenID authentication'
s.authors = %w( remi )
s.files = FileList['[A-Z]*', '{lib,spec,bin,examples}/**/*']
# s.add_dependency 'person-gemname'
# s.executables << 'script'
# s.rubyforge_project = 'gemname'
# s.extra_rdoc_files = %w( README.rdoc )
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
end
desc "Run all examples with RCov"
Spec::Rake::SpecTask.new('rcov') do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.rcov = true
end
# require 'hanna'
# require 'darkfish-rdoc'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'rack-openid-proxy'
rdoc.options << '--line-numbers' << '--inline-source'
# rdoc.options += ["--template=#{`allison --path`}"] # sudo gem install allison
# rdoc.options += %w( -f darkfish ) # sudo gem install darkfish-rdoc
# rdoc.options += %w( -T hanna ) # sudo gem install mislav-hanna
rdoc.options += %w( -m README.rdoc ) # the initial page displayed
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc 'Confirm that gemspec is $SAFE'
task :safe do
require 'yaml'
require 'rubygems/specification'
data = File.read('rack-openid-proxy.gemspec')
spec = nil
if data !~ %r{!ruby/object:Gem::Specification}
Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
else
spec = YAML.load(data)
end
spec.validate
puts spec
puts "OK"
end
task :default => :spec
Jump to Line
Something went wrong with that request. Please try again.