Skip to content

Commit

Permalink
Use bundler as a part of build system
Browse files Browse the repository at this point in the history
Preparing for Travis CI.
  • Loading branch information
Hiroshi Nakamura committed Aug 17, 2011
1 parent bb6fbd5 commit c560a54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
20 changes: 7 additions & 13 deletions Rakefile
@@ -1,18 +1,12 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rdoc/task'
require 'rubygems/package_task'

task :default => :gem
task :default => :test

begin
require 'rake/gempackagetask'
load 'httpclient.gemspec'
Rake::GemPackageTask.new(SPEC) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end
rescue LoadError
end
require 'bundler'
Bundler::GemHelper.install_tasks

begin
require 'rcov/rcovtask'
Expand All @@ -25,8 +19,8 @@ end

Rake::TestTask.new("test") do |test|
test.libs << 'lib'
test.warning = true
test.pattern = 'test/test_*.rb'
test.verbose = true
test.test_files = Dir.glob('test/test_*.rb')
end

Rake::RDocTask.new("doc") do |rdoc|
Expand Down
4 changes: 2 additions & 2 deletions httpclient.gemspec
@@ -1,5 +1,5 @@
require 'rubygems'
SPEC = Gem::Specification.new do |s|
Gem::Specification.new { |s|
s.name = "httpclient"
s.version = "2.2.1"
s.date = "2011-06-02"
Expand All @@ -10,4 +10,4 @@ SPEC = Gem::Specification.new do |s|
s.summary = "gives something like the functionality of libwww-perl (LWP) in Ruby"
s.files = Dir.glob("{lib,sample,test}/**/*")
s.require_path = "lib"
end
}

0 comments on commit c560a54

Please sign in to comment.