Skip to content
Browse files

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

…t bodies
  • Loading branch information...
1 parent 10c589e commit 9c7efe35a64e484d5714dd6a6d86fc060f0e3546 Bartosz Blimke committed Jun 19, 2010
Showing with 3 additions and 0 deletions.
  1. +1 −0 Rakefile
  2. +1 −0 lib/webmock.rb
  3. +1 −0 spec/other_net_http_libs_spec.rb
  4. 0 spec/vendor/crack/lib/crack.rb
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.

0 comments on commit 9c7efe3

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