Commit 5e5431f7 authored by Cédric Boutillier's avatar Cédric Boutillier

Imported Upstream version 1.3.0+git20131202.48208f9+dfsg

parent 2a10e782
require 'autotest/bundler'
require 'autotest/restart'
# Let child processes know that they're running under autotest,
# so they can disable test-coverage reporting, etc.
ENV["AUTOTEST"] = "1"
Autotest.add_hook :initialize do |autotest|
%w(.git vendor).each do |directory|
autotest.order = :random
%w(.git coverage log vendor).each do |directory|
autotest.add_exception(directory)
end
# Our tests are fast enough that it's reasonable to just run 'em all
# whenever something changes
autotest.clear_mappings
autotest.add_mapping /^Gemfile|^Rakefile|\.gemspec$|\.rb$/ do
autotest.files_matching %r|^test/test_\w+\.rb$|
end
end
Autotest.add_hook :run_command do |at|
system "bundle exec rake test:preflight"
end
......@@ -2,6 +2,9 @@
/rdoc
/html
/coverage
/log
/pkg
/.bundle
/.idea
*.rbc
Gemfile.lock
language: ruby
rvm:
- 1.8.7
- ree
- 1.9.2
- 1.9.3
- 2.0.0
- ruby-head
- jruby-18mode
- jruby-19mode
- jruby-head
- rbx
before_install: gem install bundler --conservative --version '~> 1.3' --no-prerelease
source "https://rubygems.org"
gemspec
# Rubinius 2.0 distributes the standard library as gems
platform :rbx do
stdlibs = %w(benchmark cgi coverage delegate erb find logger net-http open-uri
optparse ostruct prettyprint singleton tempfile tmpdir yaml)
stdlibs.each { |lib| gem "rubysl-#{lib}", "~> 2.0" }
# rubysl-test-unit 2.0.2's gemspec relaxed its dependency on minitest to allow
# any version (previously, it specified "~> 4.7"). Minitest 5 doesn't have a
# Test::Unit compatibility layer like 4.x, so it doesn't work with Test::Unit
# at all (see e.g. https://github.com/seattlerb/minitest/issues/358). So, I'm
# holding this one back until we find out what's going on.
gem "rubysl-test-unit", "2.0.1"
gem "psych", "~> 2.0"
end
......@@ -6,11 +6,23 @@ level, without modifying code or writing extensive stubs.
== Installation
gem install fakeweb
* You can install the latest release from RubyGems:
Note: the gem was previously available as +FakeWeb+ (capital letters), but now
all versions are simply registered as +fakeweb+. If you have any old +FakeWeb+
gems lying around, remove them: <tt>gem uninstall FakeWeb</tt>
gem install fakeweb
Note that the gem was previously registered as +FakeWeb+, switching
to +fakeweb+ in 2009. All releases are available under the new name.
* If your application uses Bundler, add a line like this to your Gemfile:
gem "fakeweb", "~> 1.3"
You may want to specify <tt>:group => :test</tt> and/or
<tt>:require => false</tt>, depending on how you use Bundler.
* If you're developing a gem, add a line like this to your gemspec:
spec.add_development_dependency "fakeweb", ["~> 1.3"]
== Help and discussion
......@@ -18,9 +30,11 @@ gems lying around, remove them: <tt>gem uninstall FakeWeb</tt>
RDocs for the current release are available at http://fakeweb.rubyforge.org.
There's a mailing list for questions and discussion at
http://groups.google.com/group/fakeweb-users.
https://groups.google.com/d/forum/fakeweb-users.
The main source repository is https://github.com/chrisk/fakeweb.
The main source repository is http://github.com/chrisk/fakeweb.
{<img src="https://travis-ci.org/chrisk/fakeweb.png?branch=master" alt="Build Status" style="vertical-align: text-top" />}[https://travis-ci.org/chrisk/fakeweb] FakeWeb's tests run at https://travis-ci.org/chrisk/fakeweb.
== Examples
......@@ -185,5 +199,5 @@ like OpenURI, as well as a ton of libraries for popular web services.
different URLs, and register different responses for each. (Query strings are
fully supported, though.) We're currently considering how the API should
change to add support for request bodies in 1.3.0. Your input would be really
helpful: see http://groups.google.com/group/fakeweb-users/browse_thread/thread/44d190a6b12e4273
helpful: see https://groups.google.com/d/msg/fakeweb-users/RNGQprEuQnM/ryCiMeBD91YJ
for a discussion of some different options. Thanks!
require 'rubygems'
require 'rake'
version = '1.3.0'
task :print_header do
version_string = `rvm current`.strip
version_string = RUBY_DESCRIPTION if !$?.success?
puts "\n# Starting tests using \e[1m#{version_string}\e[0m\n\n"
end
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 "Error: FakeWeb uses Bundler to manage development dependencies,\n" +
"but it's not installed. Try `gem install bundler`.\n\n"
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")
test.test_files = FileList["test/**/*.rb"].exclude("test/test_helper.rb",
"test/helpers/**/*",
"test/vendor/**/*")
test.libs << "test"
test.verbose = false
test.warning = true
# This quells a JRuby warning from SimpleCov: "tracing (e.g.
# set_trace_func) will not capture all events without --debug flag".
# This flag changes two internal options: it enables the runtime's
# "full-trace" mode, then sets its "compile mode" to OFF so that
# all code runs through the interpreter. (See test_helper.rb for
# the Java and Ruby code exposing these.)
#
# Note that --debug is unrelated to lots of similar-sounding flags
# common to many implementations (-d, -D, --debugger, etc.) and so we
# don't need to set any of those. For details, see JRuby's
# util/cli/ArgumentProcessor.java.
test.ruby_opts << "--debug" if RUBY_PLATFORM == "java"
end
Rake::Task["test"].enhance ["test:preflight"]
Rake::Task["test"].clear_comments.add_description <<-DESC.gsub(/^ /, "")
Run preflight checks, then all tests (default task).
task :default => [:check_dependencies, :test]
Set COVERAGE_REPORT=1 to produce an HTML-formatted code-coverage
report during the run. It will be written to /coverage.
DESC
namespace :test do
desc "Perform all startup checks without running tests"
task :preflight => [:print_header, :check_dependencies]
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
t.test_files = FileList["test/**/*.rb"].exclude("test/test_helper.rb", "test/vendor")
t.libs << "test"
t.rcov_opts << "--sort coverage"
t.rcov_opts << "--exclude gems"
t.warning = true
end
rescue LoadError
print "rcov support disabled "
if RUBY_PLATFORM =~ /java/
puts "(running under JRuby)"
else
puts "(install RCov to enable the `rcov` task)"
task :default => :test
desc "Remove build/test/release artifacts"
task :clean do
paths = %w(.rbx/ coverage/ doc/ Gemfile.lock log/ pkg/)
paths.each do |path|
rm_rf File.join(File.dirname(__FILE__), path)
end
end
begin
require 'sdoc'
if RUBY_VERSION >= "1.8.7"
rdoc_options = %w(--show-hash --charset utf-8 --github)
begin
require 'sdoc'
rdoc_options += %w(--format sdoc)
rescue LoadError
end
require 'rdoc/task'
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.main = "README.rdoc"
rdoc.rdoc_dir = "doc"
rdoc.template = "direct"
rdoc.options << "--line-numbers" << "--show-hash" << "--charset=utf-8"
rdoc.options += rdoc_options
rdoc.rdoc_files.include("README.rdoc", "CHANGELOG", "LICENSE.txt", "lib/*.rb")
end
rescue LoadError
puts "SDoc (or a dependency) not available. Install it with: gem install sdoc"
else
warn "Warning: RDoc requires ruby >= 1.8.7; doc tasks disabled"
end
# 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}
s.version = "1.3.0"
s.name = "fakeweb"
s.rubyforge_project = "fakeweb"
s.version = "1.3.0"
s.summary = "A tool for faking responses to HTTP requests"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Chris Kampmeier", "Blaine Cook"]
s.date = %q{2010-08-22}
s.description = %q{FakeWeb is a helper for faking web requests in Ruby. It works at a global level, without modifying code or writing extensive stubs.}
s.email = ["chris@kampers.net", "romeda@gmail.com"]
s.extra_rdoc_files = [
"LICENSE.txt",
"README.rdoc"
]
s.files = [
".autotest",
".gitignore",
"CHANGELOG",
"LICENSE.txt",
"README.rdoc",
"Rakefile",
"fakeweb.gemspec",
"lib/fake_web.rb",
"lib/fake_web/ext/net_http.rb",
"lib/fake_web/registry.rb",
"lib/fake_web/responder.rb",
"lib/fake_web/response.rb",
"lib/fake_web/stub_socket.rb",
"lib/fake_web/utility.rb",
"lib/fakeweb.rb",
"test/fixtures/google_response_from_curl",
"test/fixtures/google_response_with_transfer_encoding",
"test/fixtures/google_response_without_transfer_encoding",
"test/fixtures/test_example.txt",
"test/fixtures/test_txt_file",
"test/test_allow_net_connect.rb",
"test/test_deprecations.rb",
"test/test_fake_authentication.rb",
"test/test_fake_web.rb",
"test/test_fake_web_open_uri.rb",
"test/test_helper.rb",
"test/test_last_request.rb",
"test/test_missing_open_uri.rb",
"test/test_missing_pathname.rb",
"test/test_other_net_http_libraries.rb",
"test/test_precedence.rb",
"test/test_query_string.rb",
"test/test_regexes.rb",
"test/test_response_headers.rb",
"test/test_trailing_slashes.rb",
"test/test_utility.rb",
"test/vendor/right_http_connection-1.2.4/History.txt",
"test/vendor/right_http_connection-1.2.4/Manifest.txt",
"test/vendor/right_http_connection-1.2.4/README.txt",
"test/vendor/right_http_connection-1.2.4/Rakefile",
"test/vendor/right_http_connection-1.2.4/lib/net_fix.rb",
"test/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb",
"test/vendor/right_http_connection-1.2.4/setup.rb",
"test/vendor/samuel-0.2.1/.document",
"test/vendor/samuel-0.2.1/.gitignore",
"test/vendor/samuel-0.2.1/LICENSE",
"test/vendor/samuel-0.2.1/README.rdoc",
"test/vendor/samuel-0.2.1/Rakefile",
"test/vendor/samuel-0.2.1/VERSION",
"test/vendor/samuel-0.2.1/lib/samuel.rb",
"test/vendor/samuel-0.2.1/lib/samuel/net_http.rb",
"test/vendor/samuel-0.2.1/lib/samuel/request.rb",
"test/vendor/samuel-0.2.1/samuel.gemspec",
"test/vendor/samuel-0.2.1/test/request_test.rb",
"test/vendor/samuel-0.2.1/test/samuel_test.rb",
"test/vendor/samuel-0.2.1/test/test_helper.rb",
"test/vendor/samuel-0.2.1/test/thread_test.rb"
]
s.homepage = %q{http://github.com/chrisk/fakeweb}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{fakeweb}
s.rubygems_version = %q{1.3.7}
s.summary = %q{A tool for faking responses to HTTP requests}
s.test_files = [
"test/test_allow_net_connect.rb",
"test/test_deprecations.rb",
"test/test_fake_authentication.rb",
"test/test_fake_web.rb",
"test/test_fake_web_open_uri.rb",
"test/test_helper.rb",
"test/test_last_request.rb",
"test/test_missing_open_uri.rb",
"test/test_missing_pathname.rb",
"test/test_other_net_http_libraries.rb",
"test/test_precedence.rb",
"test/test_query_string.rb",
"test/test_regexes.rb",
"test/test_response_headers.rb",
"test/test_trailing_slashes.rb",
"test/test_utility.rb",
"test/vendor/right_http_connection-1.2.4/lib/net_fix.rb",
"test/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb",
"test/vendor/right_http_connection-1.2.4/setup.rb",
"test/vendor/samuel-0.2.1/lib/samuel/net_http.rb",
"test/vendor/samuel-0.2.1/lib/samuel/request.rb",
"test/vendor/samuel-0.2.1/lib/samuel.rb",
"test/vendor/samuel-0.2.1/test/request_test.rb",
"test/vendor/samuel-0.2.1/test/samuel_test.rb",
"test/vendor/samuel-0.2.1/test/test_helper.rb",
"test/vendor/samuel-0.2.1/test/thread_test.rb"
]
s.homepage = "https://github.com/chrisk/fakeweb"
s.authors = ["Chris Kampmeier", "Blaine Cook"]
s.email = ["chris@kampers.net", "romeda@gmail.com"]
s.license = "MIT"
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
s.description = "FakeWeb is a helper for faking web requests in " +
"Ruby. It works at a global level, without " +
"modifying code or writing extensive stubs."
root_docs = %w(CHANGELOG LICENSE.txt README.rdoc)
s.extra_rdoc_files = root_docs
s.files = Dir["lib/**/*.rb"] + root_docs
s.require_paths = ["lib"]
s.rdoc_options = ["--charset=UTF-8"]
# Mocha's README says "versions 0.10.2, 0.10.3 & 0.11.0 of the
# Mocha gem were broken. Please do not use these versions."
broken_mocha_spec = ["!= 0.11.0", "!= 0.10.3", "!= 0.10.2"]
if RUBY_VERSION <= "1.8.6"
# Mocha 0.11.1 introduced a call to #define_method with a block
# parameter (like this: define_method { |*args, &blk| ... }),
# causing a syntax error in 1.8.6. It's still there as of the
# latest release, 0.13.3. Older versions of Mocha work great,
# though; 0.9.5 is the oldest I've tested so far.
s.add_development_dependency "mocha", [">= 0.9.5", "< 0.11.1"] + broken_mocha_spec
# Rake 0.9.1 had the same issue with 1.8.6, but it was fixed for
# the next release. Later on, Rake 0.9.6 and 10.0.3 were both
# released with code using String#end_with?, which only works in
# 1.8.7+; both times, 1.8.6-compatibility was restored for the
# next release.
s.add_development_dependency "rake", [">= 0.8.7", "!= 0.9.1", "!= 0.9.6", "!= 10.0.3"]
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<mocha>, [">= 0.9.5"])
else
s.add_dependency(%q<mocha>, [">= 0.9.5"])
end
else
s.add_dependency(%q<mocha>, [">= 0.9.5"])
# Otherwise, prefer up-to-date dev tools
s.add_development_dependency "mocha", ["~> 0.14"] + broken_mocha_spec
s.add_development_dependency "rake", ["~> 10.0"]
# ZenTest (autotest) wants at least RubyGems 1.8, which is 1.8.7+
# only, as is RDoc, the main dependency of sdoc.
s.add_development_dependency "ZenTest", ["~> 4.9"]
s.add_development_dependency "sdoc"
end
end
if RUBY_VERSION >= "1.9.0"
s.add_development_dependency "simplecov", ["~> 0.7"]
s.add_development_dependency "simplecov-console", ["~> 0.1"]
# SimpleCov depends on multi_json, which as of 1.7.3 prints a
# warning when the Ruby 1.9 stdlib is the only available backend.
# See https://github.com/intridea/multi_json/commit/e7438e7ba2.
s.add_development_dependency "json", ["~> 1.7"]
end
if RUBY_PLATFORM == "java"
s.add_development_dependency "jruby-openssl", ["~> 0.8"]
end
end
......@@ -25,7 +25,7 @@ module FakeWeb
# registered URIs.
#
# If you set <tt>FakeWeb.allow_net_connect = false</tt> and subsequently try
# to make a request to a URI you haven't registered with #register_uri, a
# to make a request to a URI you haven't registered with .register_uri, a
# NetConnectNotAllowedError will be raised. This is handy when you want to
# make sure your tests are self-contained, or want to catch the scenario
# when a URI is changed in implementation code without a corresponding test
......@@ -94,19 +94,19 @@ module FakeWeb
# to a valid filesystem path, the contents of that file will be read and used
# as the body of the response instead. (This used to be two options,
# <tt>:string</tt> and <tt>:file</tt>, respectively. These are now deprecated.)
# <tt>:response</tt>::
# Either a <tt>Net::HTTPResponse</tt>, an +IO+, or a +String+ which is used
# as the full response for the request.
#
# <tt>:response</tt>::
# Either a <tt>Net::HTTPResponse</tt>, +IO+, +StringIO+, or +String+, which
# is used as the full response for the request.
#
# The easier way by far is to pass the <tt>:response</tt> option to
# +register_uri+ as a +String+ or an (open for reads) +IO+ object which
# will be used as the complete HTTP response, including headers and body.
# If the string points to a readable file, this file will be used as the
# content for the request.
#
#
# To obtain a complete response document, you can use the +curl+ command,
# like so:
#
#
# curl -i http://example.com > response_from_example.com
#
# which can then be used in your test environment like so:
......@@ -116,7 +116,7 @@ module FakeWeb
# See the <tt>Net::HTTPResponse</tt>
# documentation[http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTPResponse.html]
# for more information on creating custom response objects.
#
#
# +options+ may also be an +Array+ containing a list of the above-described
# +Hash+. In this case, FakeWeb will rotate through each response. You can
# optionally repeat a response more than once before rotating:
......
......@@ -5,22 +5,21 @@ require 'stringio'
module Net #:nodoc: all
class BufferedIO
def initialize_with_fakeweb(io, debug_output = nil)
@read_timeout = 60
@rbuf = ''
@debug_output = debug_output
def initialize_with_fakeweb(*args)
initialize_without_fakeweb(*args)
@io = case io
when Socket, OpenSSL::SSL::SSLSocket, IO
io
case @io
when Socket, OpenSSL::SSL::SSLSocket, StringIO, IO
# usable as-is
when String
if !io.include?("\0") && File.exists?(io) && !File.directory?(io)
File.open(io, "r")
if !@io.include?("\0") && File.exist?(@io) && !File.directory?(@io)
@io = File.open(@io, "r")
else
StringIO.new(io)
@io = StringIO.new(@io)
end
else
raise ArgumentError, "Unable to create fake socket from #{io}"
end
raise "Unable to create local socket" unless @io
end
alias_method :initialize_without_fakeweb, :initialize
alias_method :initialize, :initialize_with_fakeweb
......@@ -68,5 +67,4 @@ module Net #:nodoc: all
alias_method :connect_without_fakeweb, :connect
alias_method :connect, :connect_with_fakeweb
end
end
......@@ -51,22 +51,24 @@ module FakeWeb
end
def body
return '' if options[:body].nil?
body = options[:body]
return nil if body.to_s == ''
options[:body] = options[:body].to_s if defined?(Pathname) && options[:body].is_a?(Pathname)
body = body.to_s if defined?(Pathname) && body.is_a?(Pathname)
if !options[:body].include?("\0") && File.exists?(options[:body]) && !File.directory?(options[:body])
File.read(options[:body])
if !body.include?("\0") && File.exist?(body) && !File.directory?(body)
File.read(body)
else
options[:body]
body
end
end
def baked_response
return options[:response] if options[:response].is_a?(Net::HTTPResponse)
response = options[:response]
response = response.to_s if defined?(Pathname) && response.is_a?(Pathname)
if options[:response].is_a?(String) || (defined?(Pathname) && options[:response].is_a?(Pathname))
socket = Net::BufferedIO.new(options[:response].to_s)
if response.is_a?(String) || response.is_a?(IO) || response.is_a?(StringIO)
socket = Net::BufferedIO.new(response)
r = Net::HTTPResponse.read_new(socket)
# Store the original transfer-encoding
......@@ -86,8 +88,10 @@ module FakeWeb
r.instance_eval { @header['transfer-encoding'] = saved_transfer_encoding }
end
r
elsif response.is_a?(Net::HTTPResponse)
response
else
raise StandardError, "Handler unimplemented for response #{options[:response]}"
raise ArgumentError, "Handler not implemented for response #{response.inspect}"
end
end
......@@ -112,11 +116,12 @@ module FakeWeb
def print_file_string_options_deprecation_warning
which = options.has_key?(:file) ? :file : :string
first_external_caller = caller.detect { |line| !line.include?("/lib/fake_web") }
$stderr.puts
$stderr.puts "Deprecation warning: FakeWeb's :#{which} option has been renamed to :body."
$stderr.puts "Just replace :#{which} with :body in your FakeWeb.register_uri calls."
$stderr.puts "Called at #{caller[6]}"
$stderr.puts "Called at #{first_external_caller}"
end
end
end
\ No newline at end of file
end
module FakeWeb
class StubSocket #:nodoc:
Net::BufferedIO.instance_methods.grep(/_timeout$/).each do |timeout|
attr_accessor timeout
end
def initialize(*args)
end
......@@ -10,6 +14,5 @@ module FakeWeb
def readuntil(*args)
end
end
end
\ No newline at end of file
end
......@@ -32,17 +32,13 @@ module FakeWeb
userinfo = ""
end
uri = "#{protocol}://#{userinfo}#{net_http.address}:#{net_http.port}#{path}"
"#{protocol}://#{userinfo}#{net_http.address}:#{net_http.port}#{path}"
end
# Wrapper for URI escaping that switches between URI::Parser#escape and
# URI.escape for 1.9-compatibility
# Wrapper that falls back to URI.escape for compatibility with 1.8
def self.uri_escape(*args)
if URI.const_defined?(:Parser)
URI::Parser.new.escape(*args)
else
URI.escape(*args)
end
houdini = URI.const_defined?(:Parser) ? URI::Parser.new : URI
houdini.escape(*args)
end
def self.produce_side_effects_of_net_http_request(request, body)
......
--- !ruby/object:Gem::Specification
name: fakeweb
version: !ruby/object:Gem::Version
hash: 27
prerelease: false
segments:
- 1
- 3
- 0
version: 1.3.0
platform: ruby
authors:
- Chris Kampmeier
- Blaine Cook
autorequire:
bindir: bin
cert_chain: []
date: 2010-08-22 00:00:00 -07:00
default_executable:
dependencies:
- !ruby/object:Gem::Dependency
name: mocha
prerelease: false
requirement: &id001 !ruby/object:Gem::Requirement
none: false
requirements:
- - ">="
- !ruby/object:Gem::Version
hash: 49
segments:
- 0
- 9
- 5
version: 0.9.5
type: :development
version_requirements: *id001
description: FakeWeb is a helper for faking web requests in Ruby. It works at a global level, without modifying code or writing extensive stubs.
email:
- chris@kampers.net
- romeda@gmail.com
executables: []
extensions: []
extra_rdoc_files:
- LICENSE.txt
- README.rdoc
files:
- .autotest
- .gitignore
- CHANGELOG
- LICENSE.txt
- README.rdoc
- Rakefile
- fakeweb.gemspec
- lib/fake_web.rb
- lib/fake_web/ext/net_http.rb
- lib/fake_web/registry.rb
- lib/fake_web/responder.rb
- lib/fake_web/response.rb
- lib/fake_web/stub_socket.rb
- lib/fake_web/utility.rb
- lib/fakeweb.rb
- test/fixtures/google_response_from_curl
- test/fixtures/google_response_with_transfer_encoding
- test/fixtures/google_response_without_transfer_encoding
- test/fixtures/test_example.txt
- test/fixtures/test_txt_file
- test/test_allow_net_connect.rb
- test/test_deprecations.rb
- test/test_fake_authentication.rb
- test/test_fake_web.rb
- test/test_fake_web_open_uri.rb
- test/test_helper.rb
- test/test_last_request.rb
- test/test_missing_open_uri.rb
- test/test_missing_pathname.rb
- test/test_other_net_http_libraries.rb
- test/test_precedence.rb
- test/test_query_string.rb
- test/test_regexes.rb
- test/test_response_headers.rb
- test/test_trailing_slashes.rb
- test/test_utility.rb
- test/vendor/right_http_connection-1.2.4/History.txt
- test/vendor/right_http_connection-1.2.4/Manifest.txt
- test/vendor/right_http_connection-1.2.4/README.txt
- test/vendor/right_http_connection-1.2.4/Rakefile
- test/vendor/right_http_connection-1.2.4/lib/net_fix.rb
- test/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb
- test/vendor/right_http_connection-1.2.4/setup.rb
- test/vendor/samuel-0.2.1/.document
- test/vendor/samuel-0.2.1/.gitignore
- test/vendor/samuel-0.2.1/LICENSE
- test/vendor/samuel-0.2.1/README.rdoc
- test/vendor/samuel-0.2.1/Rakefile
- test/vendor/samuel-0.2.1/VERSION
- test/vendor/samuel-0.2.1/lib/samuel.rb
- test/vendor/samuel-0.2.1/lib/samuel/net_http.rb
- test/vendor/samuel-0.2.1/lib/samuel/request.rb
- test/vendor/samuel-0.2.1/samuel.gemspec
- test/vendor/samuel-0.2.1/test/request_test.rb
- test/vendor/samuel-0.2.1/test/samuel_test.rb
- test/vendor/samuel-0.2.1/test/test_helper.rb
- test/vendor/samuel-0.2.1/test/thread_test.rb
has_rdoc: true
homepage: http://github.com/chrisk/fakeweb
licenses: []
post_install_message:
rdoc_options:
- --charset=UTF-8
require_paths:
- lib
required_ruby_version: !ruby/object:Gem::Requirement
none: false