Skip to content
This repository
Browse code

Use bundler as a part of build system

Preparing for Travis CI.
  • Loading branch information...
commit c560a54377fba064cf90a1c5a6b68f7dfc0d169b 1 parent bb6fbd5
Hiroshi Nakamura authored

Showing 2 changed files with 9 additions and 15 deletions. Show diff stats Hide diff stats

  1. +7 13 Rakefile
  2. +2 2 httpclient.gemspec
20 Rakefile
... ... @@ -1,18 +1,12 @@
1 1 require 'rake'
2 2 require 'rake/testtask'
3   -require 'rake/rdoctask'
  3 +require 'rdoc/task'
  4 +require 'rubygems/package_task'
4 5
5   -task :default => :gem
  6 +task :default => :test
6 7
7   -begin
8   - require 'rake/gempackagetask'
9   - load 'httpclient.gemspec'
10   - Rake::GemPackageTask.new(SPEC) do |pkg|
11   - pkg.need_zip = true
12   - pkg.need_tar = true
13   - end
14   -rescue LoadError
15   -end
  8 +require 'bundler'
  9 +Bundler::GemHelper.install_tasks
16 10
17 11 begin
18 12 require 'rcov/rcovtask'
@@ -25,8 +19,8 @@ end
25 19
26 20 Rake::TestTask.new("test") do |test|
27 21 test.libs << 'lib'
28   - test.warning = true
29   - test.pattern = 'test/test_*.rb'
  22 + test.verbose = true
  23 + test.test_files = Dir.glob('test/test_*.rb')
30 24 end
31 25
32 26 Rake::RDocTask.new("doc") do |rdoc|
4 httpclient.gemspec
... ... @@ -1,5 +1,5 @@
1 1 require 'rubygems'
2   -SPEC = Gem::Specification.new do |s|
  2 +Gem::Specification.new { |s|
3 3 s.name = "httpclient"
4 4 s.version = "2.2.1"
5 5 s.date = "2011-06-02"
@@ -10,4 +10,4 @@ SPEC = Gem::Specification.new do |s|
10 10 s.summary = "gives something like the functionality of libwww-perl (LWP) in Ruby"
11 11 s.files = Dir.glob("{lib,sample,test}/**/*")
12 12 s.require_path = "lib"
13   -end
  13 +}

0 comments on commit c560a54

Please sign in to comment.
Something went wrong with that request. Please try again.