Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added depencdency on crack which is used do parse JSON and XML reques…

…t bodies
  • Loading branch information...
commit 9c7efe35a64e484d5714dd6a6d86fc060f0e3546 1 parent 10c589e
Bartosz Blimke authored
View
1  Rakefile
@@ -11,6 +11,7 @@ begin
gem.homepage = "http://github.com/bblimke/webmock"
gem.authors = ["Bartosz Blimke"]
gem.add_dependency "addressable", ">= 2.1.1"
+ gem.add_dependency "crack", ">=0.1.7"
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.add_development_dependency "httpclient", ">= 2.1.5.2"
gem.add_development_dependency "patron", ">= 0.4.5" unless RUBY_PLATFORM =~ /java/
View
1  lib/webmock.rb
@@ -1,6 +1,7 @@
require 'singleton'
require 'addressable/uri'
+require 'crack'
require 'webmock/http_lib_adapters/net_http'
require 'webmock/http_lib_adapters/httpclient'
View
1  spec/other_net_http_libs_spec.rb
@@ -5,6 +5,7 @@
def capture_output_from_requiring(libs, additional_code = "")
requires = libs.map { |lib| "require '#{lib}'" }
requires << " require 'addressable/uri'"
+ requires << " require 'crack'"
requires = requires.join("; ")
webmock_dir = "#{File.dirname(__FILE__)}/../lib"
vendor_dirs = Dir["#{File.dirname(__FILE__)}/vendor/*/lib"]
View
0  spec/vendor/crack/lib/crack.rb
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.