Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switch to bundler for managing development dependencies

  • Loading branch information...
commit 5208a44bc1bddfd6cc207786f3fa73df2a236ffb 1 parent 809ab3d
@chrisk authored
View
2  .gitignore
@@ -3,5 +3,7 @@
/html
/coverage
/pkg
+/.bundle
/.idea
*.rbc
+Gemfile.lock
View
2  Gemfile
@@ -0,0 +1,2 @@
+source "http://rubygems.org"
+gemspec
View
25 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")
@@ -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"
View
5 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}
View
5 test/test_helper.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.