Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 43 lines (36 sloc) 1.318 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
require 'rake'
require "rake/gempackagetask"
require "rake/clean"
require "spec/rake/spectask"
require 'bundler'
require File.expand_path("./lib/rack/client")

Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_files = FileList['spec/*_spec.rb']
  t.spec_opts = ['-c']
end

task :default => :spec

spec = Gem::Specification.new do |s|
  s.name = "rack-client"
  s.rubyforge_project = s.name
  s.version = Rack::Client::VERSION
  s.author = "Tim Carey-Smith"
  s.email = "tim" + "@" + "spork.in"
  s.homepage = "http://github.com/halorgium/rack-client"
  s.summary = "A client wrapper around a Rack app or HTTP"
  s.description = s.summary
  s.files = %w[History.txt LICENSE README.textile Rakefile] + Dir["lib/**/*"] + Dir["demo/**/*"]
  s.test_files = Dir["spec/**/*"]

  manifest = Bundler::Dsl.load_gemfile(File.dirname(__FILE__) + '/Gemfile')
  manifest.dependencies.each do |d|
    next unless d.only && d.only.include?('release')
    s.add_dependency(d.name, d.version)
  end
end

Rake::GemPackageTask.new(spec) do |package|
  package.gem_spec = spec
end

desc 'Install the package as a gem.'
task :install => [:clean, :package] do
  gem = Dir['pkg/*.gem'].first
  sh "sudo gem install --no-rdoc --no-ri --local #{gem}"
end
Something went wrong with that request. Please try again.