Sha256: 811b0b81699efef430ce14f2fb37e0958a4a9eb443e65602883dd10bd1b3f80c

Contents?: true

Size: 1.84 KB

Versions: 1

Compression:

Stored size: 1.84 KB

Contents

# encoding: utf-8

require 'rubygems'
require 'bundler'
begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end
require 'rake'

require 'jeweler'
Jeweler::Tasks.new do |gem|
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
  gem.name = "itrigga-net_helper"
  gem.homepage = "http://gems.itrigga.com/trigga-net_helper"
  gem.license = "MIT"
  gem.summary = %Q{Wrapper around Net::HTTP to provide retries, redirects, etc}
  gem.description = %Q{Provides various more convenient wrappers around Net::HTTP methods}
  gem.email = "aldavidson@trigga.com"
  gem.authors = ["Al Davidson"]
  # dependencies defined in Gemfile
  gem.require_paths << "lib/itrigga"
end
Jeweler::RubygemsDotOrgTasks.new

require 'spec/version'
require 'spec/rake/spectask'
require 'spec/ruby'

Spec::Rake::SpecTask.new(:spec) do |spec|
  RAILS_ENV = "test"
  spec.spec_files = FileList['spec/**/*_spec.rb']
  spec.spec_opts = ['--options', 'spec/spec.opts']
end

task :default => :spec

desc "Run all specs with rcov"
Spec::Rake::SpecTask.new(:rcov) do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.spec_opts = ['--options', 'spec/spec.opts']
  t.rcov = true
  t.rcov_dir = 'coverage'
  t.rcov_opts = ['--exclude', "features,kernel,load-diff-lcs\.rb,instance_exec\.rb,lib/spec.rb,lib/spec/runner.rb,^spec/*,bin/spec,examples,/gems,/Library/Ruby,\.autotest,#{ENV['GEM_HOME']}"]
  t.rcov_opts << '--sort coverage --text-summary --aggregate coverage.data'
end

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  version = File.exist?('VERSION') ? File.read('VERSION') : ""

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "net_helper #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itrigga-net_helper-0.3.0 Rakefile