Skip to content

Commit

Permalink
Switch to bundler for managing development dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisk committed Dec 19, 2010
1 parent 809ab3d commit 5208a44
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,5 +3,7 @@
/html
/coverage
/pkg
/.bundle
/.idea
*.rbc
Gemfile.lock
2 changes: 2 additions & 0 deletions Gemfile
@@ -0,0 +1,2 @@
source "http://rubygems.org"
gemspec
25 changes: 7 additions & 18 deletions Rakefile
@@ -1,26 +1,15 @@
require 'rubygems'
require 'rake'

version = '1.3.0'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "fakeweb"
gem.rubyforge_project = "fakeweb"
gem.version = version
gem.summary = "A tool for faking responses to HTTP requests"
gem.description = "FakeWeb is a helper for faking web requests in Ruby. It works at a global level, without modifying code or writing extensive stubs."
gem.email = ["chris@kampers.net", "romeda@gmail.com"]
gem.authors = ["Chris Kampmeier", "Blaine Cook"]
gem.homepage = "http://github.com/chrisk/fakeweb"
gem.add_development_dependency "mocha", ">= 0.9.5"
task :check_dependencies do
begin
require "bundler"
rescue LoadError
abort "FakeWeb uses bundler to manage development dependencies. Install it with `gem install bundler`."
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
system("bundle check") || abort
end


require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.test_files = FileList["test/**/*.rb"].exclude("test/test_helper.rb", "test/vendor")
Expand Down Expand Up @@ -57,7 +46,7 @@ begin
Rake::RDocTask.new do |rdoc|
rdoc.main = "README.rdoc"
rdoc.rdoc_files.include("README.rdoc", "CHANGELOG", "LICENSE.txt", "lib/*.rb")
rdoc.title = "FakeWeb #{version} API Documentation"
rdoc.title = "FakeWeb 1.3.0 API Documentation"
rdoc.rdoc_dir = "doc"
rdoc.template = "direct"
rdoc.options << "--line-numbers" << "--show-hash" << "--charset=utf-8"
Expand Down
5 changes: 1 addition & 4 deletions fakeweb.gemspec
@@ -1,7 +1,4 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
# encoding: utf-8

Gem::Specification.new do |s|
s.name = %q{fakeweb}
Expand Down
5 changes: 4 additions & 1 deletion test/test_helper.rb
Expand Up @@ -3,9 +3,12 @@
require 'pathname'
require 'fake_web'
require 'rbconfig'

require 'rubygems'
require 'mocha'
require 'bundler'
Bundler.setup

require 'mocha'

# Give all tests a common setup and teardown that prevents shared state
class Test::Unit::TestCase
Expand Down

0 comments on commit 5208a44

Please sign in to comment.