Sha256: dfefdd39bd808b4d9ed0bebfa999431ca50b24c41b3a8d7ac293f1b97b314a80

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'spec/rake/spectask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test http_configuration.'
Spec::Rake::SpecTask.new(:test) do |t|
  t.spec_files = 'spec/**/*_spec.rb'
end

desc 'Generate documentation for http_configuration.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Http Configuration'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

spec = Gem::Specification.new do |s| 
  s.name = "http_configuration"
  s.version = "1.0.1"
  s.author = "Brian Durand"
  s.platform = Gem::Platform::RUBY
  s.summary = "Provide configuration options for Net::HTTP"
  s.files = FileList["lib/*", "init.rb", "MIT-LICENSE", 'Rakefile'].to_a
  s.require_path = "lib"
  s.autorequire = "init.rb"
  s.test_files = FileList["{spec}/**/*_spec.rb"].to_a
  s.has_rdoc = true
  s.extra_rdoc_files = ["README"]
end
 
Rake::GemPackageTask.new(spec) do |pkg| 
  pkg.need_tar = true 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
http_configuration-1.0.1 Rakefile