simple-client 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. data/.bundle/config +4 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +23 -0
  4. data/bin/rake +16 -0
  5. data/lib/simple-client/simple-client.rb +229 -0
  6. data/lib/simple-client/version.rb +4 -0
  7. data/lib/simple-client.rb +1 -0
  8. data/test/test_simple-client.rb +236 -0
  9. data/vendor/bundle/ruby/1.8/bin/rake +19 -0
  10. data/vendor/bundle/ruby/1.8/cache/addressable-2.2.8.gem +0 -0
  11. data/vendor/bundle/ruby/1.8/cache/crack-0.3.1.gem +0 -0
  12. data/vendor/bundle/ruby/1.8/cache/rake-0.9.2.2.gem +0 -0
  13. data/vendor/bundle/ruby/1.8/cache/webmock-1.8.8.gem +0 -0
  14. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/CHANGELOG.md +126 -0
  15. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/Gemfile +17 -0
  16. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/Gemfile.lock +35 -0
  17. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/LICENSE.txt +202 -0
  18. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/README.md +83 -0
  19. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/Rakefile +37 -0
  20. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/lib/addressable/idna/native.rb +43 -0
  21. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/lib/addressable/idna/pure.rb +4886 -0
  22. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/lib/addressable/idna.rb +25 -0
  23. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/lib/addressable/template.rb +1047 -0
  24. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/lib/addressable/uri.rb +2288 -0
  25. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/lib/addressable/version.rb +30 -0
  26. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/spec/addressable/idna_spec.rb +216 -0
  27. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/spec/addressable/net_http_compat_spec.rb +26 -0
  28. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/spec/addressable/template_spec.rb +2144 -0
  29. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/spec/addressable/uri_spec.rb +4928 -0
  30. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/tasks/clobber.rake +2 -0
  31. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/tasks/gem.rake +85 -0
  32. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/tasks/git.rake +45 -0
  33. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/tasks/metrics.rake +22 -0
  34. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/tasks/rspec.rake +58 -0
  35. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/tasks/rubyforge.rake +89 -0
  36. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/tasks/yard.rake +27 -0
  37. data/vendor/bundle/ruby/1.8/gems/addressable-2.2.8/website/index.html +110 -0
  38. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/History +25 -0
  39. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/LICENSE +20 -0
  40. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/README.rdoc +42 -0
  41. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/Rakefile +32 -0
  42. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/crack.gemspec +53 -0
  43. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/lib/crack/json.rb +79 -0
  44. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/lib/crack/util.rb +17 -0
  45. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/lib/crack/xml.rb +232 -0
  46. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/lib/crack.rb +8 -0
  47. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/test/crack_test.rb +4 -0
  48. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/test/data/twittersearch-firefox.json +1 -0
  49. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/test/data/twittersearch-ie.json +1 -0
  50. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/test/hash_test.rb +28 -0
  51. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/test/json_test.rb +82 -0
  52. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/test/parser_test.rb +27 -0
  53. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/test/string_test.rb +31 -0
  54. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/test/test_helper.rb +12 -0
  55. data/vendor/bundle/ruby/1.8/gems/crack-0.3.1/test/xml_test.rb +499 -0
  56. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/CHANGES +522 -0
  57. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/MIT-LICENSE +21 -0
  58. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/README.rdoc +197 -0
  59. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/Rakefile +369 -0
  60. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/TODO +20 -0
  61. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/bin/rake +33 -0
  62. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/command_line_usage.rdoc +114 -0
  63. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/example/Rakefile1 +38 -0
  64. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/example/Rakefile2 +35 -0
  65. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/example/a.c +6 -0
  66. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/example/b.c +6 -0
  67. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/example/main.c +11 -0
  68. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/glossary.rdoc +51 -0
  69. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/jamis.rb +591 -0
  70. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/proto_rake.rdoc +127 -0
  71. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/rake.1.gz +0 -0
  72. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/rakefile.rdoc +557 -0
  73. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/rational.rdoc +151 -0
  74. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.4.14.rdoc +23 -0
  75. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.4.15.rdoc +35 -0
  76. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.5.0.rdoc +53 -0
  77. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.5.3.rdoc +78 -0
  78. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.5.4.rdoc +46 -0
  79. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.6.0.rdoc +141 -0
  80. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.7.0.rdoc +119 -0
  81. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.7.1.rdoc +59 -0
  82. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.7.2.rdoc +121 -0
  83. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.7.3.rdoc +47 -0
  84. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.8.0.rdoc +114 -0
  85. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.8.2.rdoc +165 -0
  86. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.8.3.rdoc +112 -0
  87. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.8.4.rdoc +147 -0
  88. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.8.5.rdoc +53 -0
  89. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.8.6.rdoc +55 -0
  90. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.8.7.rdoc +55 -0
  91. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.9.0.rdoc +112 -0
  92. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.9.1.rdoc +52 -0
  93. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/doc/release_notes/rake-0.9.2.rdoc +49 -0
  94. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/install.rb +90 -0
  95. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/alt_system.rb +109 -0
  96. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/application.rb +595 -0
  97. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/classic_namespace.rb +11 -0
  98. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/clean.rb +32 -0
  99. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/cloneable.rb +25 -0
  100. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/contrib/compositepublisher.rb +21 -0
  101. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/contrib/ftptools.rb +150 -0
  102. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/contrib/publisher.rb +73 -0
  103. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/contrib/rubyforgepublisher.rb +16 -0
  104. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/contrib/sshpublisher.rb +50 -0
  105. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/contrib/sys.rb +191 -0
  106. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/default_loader.rb +10 -0
  107. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/dsl_definition.rb +176 -0
  108. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/early_time.rb +18 -0
  109. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/ext/core.rb +27 -0
  110. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/ext/module.rb +39 -0
  111. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/ext/string.rb +167 -0
  112. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/ext/time.rb +14 -0
  113. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/file_creation_task.rb +24 -0
  114. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/file_list.rb +403 -0
  115. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/file_task.rb +47 -0
  116. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb +114 -0
  117. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb +145 -0
  118. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/gempackagetask.rb +15 -0
  119. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/invocation_chain.rb +51 -0
  120. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/invocation_exception_mixin.rb +16 -0
  121. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/loaders/makefile.rb +40 -0
  122. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/multi_task.rb +16 -0
  123. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/name_space.rb +25 -0
  124. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/packagetask.rb +185 -0
  125. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/pathmap.rb +1 -0
  126. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/pseudo_status.rb +24 -0
  127. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb +29 -0
  128. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb +22 -0
  129. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/rdoctask.rb +234 -0
  130. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/ruby182_test_unit_fix.rb +25 -0
  131. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/rule_recursion_overflow_error.rb +20 -0
  132. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/runtest.rb +21 -0
  133. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/task.rb +327 -0
  134. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/task_argument_error.rb +7 -0
  135. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/task_arguments.rb +78 -0
  136. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/task_manager.rb +307 -0
  137. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/tasklib.rb +22 -0
  138. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/testtask.rb +191 -0
  139. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/version.rb +8 -0
  140. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake/win32.rb +55 -0
  141. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/lib/rake.rb +69 -0
  142. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/file_creation.rb +34 -0
  143. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/helper.rb +492 -0
  144. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake.rb +40 -0
  145. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_application.rb +489 -0
  146. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_application_options.rb +335 -0
  147. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_clean.rb +14 -0
  148. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_definitions.rb +80 -0
  149. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_directory_task.rb +46 -0
  150. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_dsl.rb +77 -0
  151. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_early_time.rb +31 -0
  152. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_extension.rb +59 -0
  153. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_file_creation_task.rb +56 -0
  154. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_file_list.rb +628 -0
  155. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_file_list_path_map.rb +8 -0
  156. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_file_task.rb +102 -0
  157. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_file_utils.rb +305 -0
  158. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_ftp_file.rb +59 -0
  159. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_functional.rb +450 -0
  160. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_invocation_chain.rb +52 -0
  161. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_makefile_loader.rb +44 -0
  162. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_multi_task.rb +51 -0
  163. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_name_space.rb +43 -0
  164. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_package_task.rb +79 -0
  165. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_path_map.rb +157 -0
  166. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_path_map_explode.rb +34 -0
  167. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_path_map_partial.rb +18 -0
  168. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_pseudo_status.rb +21 -0
  169. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_rake_test_loader.rb +21 -0
  170. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_rdoc_task.rb +83 -0
  171. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_require.rb +40 -0
  172. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_rules.rb +327 -0
  173. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_task.rb +267 -0
  174. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_task_argument_parsing.rb +103 -0
  175. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_task_arguments.rb +88 -0
  176. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_task_lib.rb +9 -0
  177. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_task_manager.rb +157 -0
  178. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_task_manager_argument_resolution.rb +36 -0
  179. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_task_with_arguments.rb +173 -0
  180. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_test_task.rb +120 -0
  181. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_top_level_functions.rb +111 -0
  182. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_rake_win32.rb +72 -0
  183. data/vendor/bundle/ruby/1.8/gems/rake-0.9.2.2/test/test_sys.rb +20 -0
  184. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/CHANGELOG.md +749 -0
  185. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/Gemfile +21 -0
  186. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/Guardfile +24 -0
  187. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/LICENSE +20 -0
  188. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/README.md +728 -0
  189. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/Rakefile +65 -0
  190. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/api.rb +63 -0
  191. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/assertion_failure.rb +11 -0
  192. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/callback_registry.rb +35 -0
  193. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/config.rb +10 -0
  194. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/cucumber.rb +8 -0
  195. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/deprecation.rb +9 -0
  196. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/errors.rb +33 -0
  197. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/curb_adapter.rb +287 -0
  198. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/em_http_request/em_http_request_0_x.rb +151 -0
  199. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb +212 -0
  200. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/em_http_request_adapter.rb +11 -0
  201. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/excon_adapter.rb +95 -0
  202. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/http_lib_adapter.rb +7 -0
  203. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/http_lib_adapter_registry.rb +19 -0
  204. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/httpclient_adapter.rb +193 -0
  205. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/net_http.rb +279 -0
  206. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/net_http_response.rb +34 -0
  207. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/patron_adapter.rb +129 -0
  208. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb +180 -0
  209. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/matchers/hash_including_matcher.rb +25 -0
  210. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/minitest.rb +15 -0
  211. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/rack_response.rb +63 -0
  212. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/request_execution_verifier.rb +56 -0
  213. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/request_pattern.rb +282 -0
  214. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/request_registry.rb +35 -0
  215. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/request_signature.rb +50 -0
  216. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/request_stub.rb +97 -0
  217. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/response.rb +144 -0
  218. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/responses_sequence.rb +40 -0
  219. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/rspec/matchers/request_pattern_matcher.rb +42 -0
  220. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/rspec/matchers/webmock_matcher.rb +46 -0
  221. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/rspec/matchers.rb +28 -0
  222. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/rspec.rb +33 -0
  223. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/stub_registry.rb +61 -0
  224. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/stub_request_snippet.rb +30 -0
  225. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/test_unit.rb +20 -0
  226. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/util/hash_counter.rb +25 -0
  227. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/util/hash_keys_stringifier.rb +23 -0
  228. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/util/headers.rb +43 -0
  229. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/util/json.rb +54 -0
  230. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/util/uri.rb +101 -0
  231. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/util/version_checker.rb +73 -0
  232. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/version.rb +3 -0
  233. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock/webmock.rb +124 -0
  234. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/lib/webmock.rb +49 -0
  235. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/minitest/test_helper.rb +29 -0
  236. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/minitest/test_webmock.rb +6 -0
  237. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/minitest/webmock_spec.rb +50 -0
  238. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/curb/curb_spec.rb +340 -0
  239. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/curb/curb_spec_helper.rb +144 -0
  240. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/em_http_request/em_http_request_spec.rb +183 -0
  241. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/em_http_request/em_http_request_spec_helper.rb +72 -0
  242. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/excon/excon_spec.rb +15 -0
  243. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/excon/excon_spec_helper.rb +38 -0
  244. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/httpclient/httpclient_spec.rb +76 -0
  245. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/httpclient/httpclient_spec_helper.rb +48 -0
  246. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/net_http/net_http_shared.rb +125 -0
  247. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/net_http/net_http_spec.rb +255 -0
  248. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/net_http/net_http_spec_helper.rb +55 -0
  249. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/net_http/real_net_http_spec.rb +20 -0
  250. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/patron/patron_spec.rb +136 -0
  251. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/patron/patron_spec_helper.rb +50 -0
  252. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/shared/allowing_and_disabling_net_connect.rb +142 -0
  253. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/shared/callbacks.rb +146 -0
  254. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/shared/complex_cross_concern_behaviors.rb +36 -0
  255. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/shared/enabling_and_disabling_webmock.rb +95 -0
  256. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/shared/precedence_of_stubs.rb +15 -0
  257. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/shared/request_expectations.rb +666 -0
  258. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/shared/returning_declared_responses.rb +367 -0
  259. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/shared/stubbing_requests.rb +447 -0
  260. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/typhoeus/typhoeus_hydra_spec.rb +74 -0
  261. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb +56 -0
  262. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/acceptance/webmock_shared.rb +41 -0
  263. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/quality_spec.rb +60 -0
  264. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/spec_helper.rb +57 -0
  265. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/support/example_curl_output.txt +22 -0
  266. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/support/my_rack_app.rb +48 -0
  267. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/support/network_connection.rb +25 -0
  268. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/support/webmock_server.rb +65 -0
  269. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/errors_spec.rb +32 -0
  270. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb +17 -0
  271. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/http_lib_adapters/http_lib_adapter_spec.rb +12 -0
  272. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/rack_response_spec.rb +74 -0
  273. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/request_execution_verifier_spec.rb +100 -0
  274. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/request_pattern_spec.rb +479 -0
  275. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/request_registry_spec.rb +75 -0
  276. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/request_signature_spec.rb +113 -0
  277. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/request_stub_spec.rb +198 -0
  278. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/response_spec.rb +267 -0
  279. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/stub_registry_spec.rb +86 -0
  280. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/stub_request_snippet_spec.rb +95 -0
  281. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/util/hash_counter_spec.rb +39 -0
  282. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/util/hash_keys_stringifier_spec.rb +27 -0
  283. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/util/headers_spec.rb +28 -0
  284. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/util/json_spec.rb +7 -0
  285. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/util/uri_spec.rb +257 -0
  286. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/util/version_checker_spec.rb +59 -0
  287. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/webmock_spec.rb +7 -0
  288. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/test/http_request.rb +24 -0
  289. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/test/shared_test.rb +76 -0
  290. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/test/test_helper.rb +23 -0
  291. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/test/test_webmock.rb +6 -0
  292. data/vendor/bundle/ruby/1.8/gems/webmock-1.8.8/webmock.gemspec +35 -0
  293. data/vendor/bundle/ruby/1.8/specifications/addressable-2.2.8.gemspec +38 -0
  294. data/vendor/bundle/ruby/1.8/specifications/crack-0.3.1.gemspec +25 -0
  295. data/vendor/bundle/ruby/1.8/specifications/rake-0.9.2.2.gemspec +33 -0
  296. data/vendor/bundle/ruby/1.8/specifications/webmock-1.8.8.gemspec +61 -0
  297. metadata +390 -0
@@ -0,0 +1,749 @@
1
+ # Changelog
2
+
3
+ ## 1.8.8
4
+
5
+ * Fixed Net::HTTP adapter so that it returns `nil` for an empty body response.
6
+
7
+ Thanks to [Myron Marston](https://github.com/myronmarston)
8
+
9
+ * Gemspec defines compatibility with Addressable ~> 2.2.8, not >= 2.3.0
10
+
11
+ * Specs compatibility with Typhoeus 0.4.0
12
+
13
+ Thanks to [Hans Hasselberg](https://github.com/i0rek)
14
+
15
+ * Handling content types that specify a charset
16
+
17
+ Thanks to [Kevin Glowacz](https://github.com/kjg)
18
+
19
+ * Fixed em-http-request adapter to correctly fetch authorization header from a request
20
+
21
+ Thanks to [Julien Boyer](https://github.com/chatgris)
22
+
23
+ * Fixing travis-ci image to report master's status
24
+
25
+ Thanks to [Ryan Schlesinger](https://github.com/ryansch)
26
+
27
+ * Fixed problem with em-http-request callback triggering if there were other EM::Deferred callbacks registered
28
+
29
+ Thanks to [Jon Leighton](https://github.com/jonleighton)
30
+
31
+ * Fixed problem with em-http-request appending the query to the URI a second time, and
32
+ the parameters are repeated.
33
+
34
+ Thanks to [Jon Leighton](https://github.com/jonleighton)
35
+
36
+ ## 1.8.7
37
+
38
+ * Compatibility with RSpec >= 2.10
39
+
40
+ Thanks to [erwanlr](https://github.com/erwanlr) for reporting this issue.
41
+
42
+ * Add missing required rack environment variable SCRIPT_NAME
43
+
44
+ Thanks to [Eric Oestrich](https://github.com/oestrich)
45
+
46
+ * Fixed warnings due to @query_params not being initialized
47
+
48
+ Thanks to [Ben Bleything](https://github.com/bleything)
49
+
50
+ ## 1.8.6
51
+
52
+ * Pass through SERVER_PORT when stubbing to rack
53
+
54
+ Thanks to [Eric Oestrich](https://github.com/oestrich)
55
+
56
+ * Fixed problem with missing parenthesis in `WebMock#net_connect_allowed?` conditions.
57
+
58
+ Thanks to [aindustries](https://github.com/aindustries)
59
+
60
+ ## 1.8.5
61
+
62
+ * WebMock::RackResponse supports basic auth
63
+
64
+ Thanks to [jugyo](https://github.com/jugyo)
65
+
66
+ ## 1.8.4
67
+
68
+ * Warning message is printed when an unsupported version of a http library is loaded.
69
+
70
+ Thanks to [Alexander Staubo](https://github.com/alexstaubo) for reporting the problem and to [Myron Marston](https://github.com/myronmarston) for a help with solution.
71
+
72
+ ## 1.8.3
73
+
74
+ * Fixed compatibility with latest em-http-request
75
+
76
+ Thanks to [Paul Cortens](https://github.com/thoughtless)
77
+
78
+ ## 1.8.2
79
+
80
+ * Prevent Webmock `hash_including` from overriding RSpec version 1 `hash_including` method.
81
+
82
+ Thanks to [Joe Karayusuf](https://github.com/karayusuf)
83
+
84
+ * Ensured WebMock handles RSpec 1 `hash_including` matcher for matching query params and body.
85
+
86
+ ## 1.8.1
87
+
88
+ * Ensured WebMock doesn't interfere with `em-synchrony`, when `em-synchrony/em-http` is not included.
89
+
90
+ Thanks to [Nick Recobra](https://github.com/oruen)
91
+
92
+ * Improved README
93
+
94
+ Thanks to [Jordan Elver](https://github.com/jordelver)
95
+
96
+
97
+ ## 1.8.0
98
+
99
+ * Matching request body against partial hash.
100
+
101
+ stub_http_request(:post, "www.example.com").
102
+ with(:body => hash_including({:data => {:a => '1', :b => 'five'}}))
103
+
104
+ RestClient.post('www.example.com', "data[a]=1&data[b]=five&x=1",
105
+ :content_type => 'application/x-www-form-urlencoded') # ===> Success
106
+
107
+ request(:post, "www.example.com").
108
+ with(:body => hash_including({:data => {:a => '1', :b => 'five'}}),
109
+ :headers => 'Content-Type' => 'application/json').should have_been_made # ===> Success
110
+
111
+ Thanks to [Marnen Laibow-Koser](https://github.com/marnen) for help with this solution
112
+
113
+ * Matching request query params against partial hash.
114
+
115
+ stub_http_request(:get, "www.example.com").with(:query => hash_including({"a" => ["b", "c"]}))
116
+
117
+ RestClient.get("http://www.example.com/?a[]=b&a[]=c&x=1") # ===> Success
118
+
119
+ request(:get, "www.example.com").
120
+ with(:query => hash_including({"a" => ["b", "c"]})).should have_been_made # ===> Success
121
+
122
+ * Added support for Excon.
123
+
124
+ Thanks to [Dimitrij Denissenko](https://github.com/dim)
125
+
126
+ * Added support for setting expectations on the request stub with `assert_requested`
127
+
128
+ stub_get = stub_request(:get, "www.example.com")
129
+ stub_post = stub_request(:post, "www.example.com")
130
+
131
+ Net::HTTP.get('www.example.com', '/')
132
+
133
+ assert_requested(stub_get)
134
+ assert_not_requested(stub_post)
135
+
136
+ Thanks to [Nicolas Fouché](https://github.com/nfo)
137
+
138
+ * `WebMock.disable_net_connect!` accepts `RegExp` as `:allow` parameter
139
+
140
+ Thanks to [Frank Schumacher](https://github.com/thenoseman)
141
+
142
+ * Ensure multiple values for the same header can be recorded and played back
143
+
144
+ Thanks to [Myron Marston](https://github.com/myronmarston)
145
+
146
+ * Updated dependency on Addressable to version >= 2.2.7 to handle nested hash query values. I.e. `?one[two][three][]=four&one[two][three][]=five`
147
+
148
+ * Fixed compatibility with Curb >= 0.7.16 This breaks compatibility with Curb < 0.7.16
149
+
150
+ * Fix #to_rack to handle non-array response bodies.
151
+
152
+ Thanks to [Tammer Saleh](https://github.com/tsaleh)
153
+
154
+ * Added `read_timeout` accessor to StubSocket which fixes compatibility with aws-sdk
155
+
156
+ Thanks to [Lin Jen-Shin](https://github.com/godfat)
157
+
158
+ * Fix warning "instance variable @query_params not initialized"
159
+
160
+ Thanks to [Joe Van Dyk](https://github.com/joevandyk)
161
+
162
+ * Using bytesize of message instead of its length for content-length header in em-http-request adapter.
163
+ This fixes a problem with messages getting truncated in Ruby >= 1.9
164
+
165
+ Thanks to [Mark Abramov](https://github.com/markiz)
166
+
167
+ * Fixed problem with body params being matched even if params were different.
168
+
169
+ Thanks to [Evgeniy Dolzhenko](https://github.com/dolzenko) for reporting this issue.
170
+
171
+ ## 1.7.10
172
+
173
+ * Yanked 1.7.9 and rebuilt gem on 1.8.7 to deal with syck/psych incompatibilties in gemspec.
174
+
175
+ ## 1.7.9
176
+
177
+ * Fixed support for native Typhoeus timeouts.
178
+
179
+ Thanks to [Albert Llop](https://github.com/mrsimo)
180
+
181
+ * Fixed problem with WebMock and RSpec compatibility on TeamCity servers. See [this article](http://www.coding4streetcred.com/blog/post/Issue-RubyMine-31-Webmock-162-and-%E2%80%9CSpecconfigure%E2%80%9D-curse.aspx) for more details.
182
+
183
+ Thanks to [Christopher Pickslay](https://github.com/chrispix) from [Two Bit Labs](https://github.com/twobitlabs)
184
+
185
+
186
+ ## 1.7.8
187
+
188
+ * Fix each adapter so that it calls a `stub.with` block only once per
189
+ request. Previously, the block would be called two or three times per
190
+ request [Myron Marston](https://github.com/myronmarston).
191
+
192
+ ## 1.7.7 - RuPy 2011 release
193
+
194
+ * Passing response object to a block passed to `HTTPClient#do_get_block`. This fixes `HTTPClient.get_content` failures. [issue 130](https://github.com/bblimke/webmock/pull/130)
195
+
196
+ Thanks to [Chris McGrath](https://github.com/chrismcg)
197
+
198
+ * Cleaned up ruby warnings when running WebMock code with `-w`.
199
+
200
+ Thanks to [Stephen Celis](https://github.com/stephencelis)
201
+
202
+ * Curb adapter now correctly calls on_failure for 4xx response codes.
203
+
204
+ Thanks to [Eugene Pimenov](https://github.com/libc)
205
+
206
+ ## 1.7.6
207
+
208
+ * Support for the HTTPClient's request_filter feature
209
+
210
+ Thanks to [Roman Shterenzon](https://github.com/romanbsd)
211
+
212
+ ## 1.7.5
213
+
214
+ * Added support for Patron 0.4.15. This change is not backward compatible so please upgrade Patron to version >= 0.4.15 if you want to use it with WebMock.
215
+
216
+ Thanks to [Andreas Garnæs](https://github.com/andreas)
217
+
218
+ ## 1.7.4
219
+
220
+ * Added support for matching EM-HTTP-Request requests with body declared as a Hash
221
+
222
+ Thanks to [David Yeu](https://github.com/daveyeu)
223
+
224
+ ## 1.7.3
225
+
226
+ * Added `Get`, `Post`, `Delete`, `Put`, `Head`, `Option` constants to replaced `Net::HTTP` to make it possible to marshal objects with these constants assigned to properties. This fixed problem with `tvdb_party` gem which serializes HTTParty responses.
227
+
228
+ Thanks to [Klaus Hartl](https://github.com/carhartl) for reporting this issue.
229
+
230
+ ## 1.7.2
231
+
232
+ * Redefined `const_get` and `constants` methods on the replaced `Net::HTTP` to return same values as original `Net::HTTP`
233
+
234
+ ## 1.7.1
235
+
236
+ * Redefined `const_defined?` on the replaced `Net::HTTP` so that it returns true if constant is defined on the original `Net::HTTP`. This fixes problems with `"Net::HTTP::Get".constantize`.
237
+
238
+ Thanks to [Cássio Marques](https://github.com/cassiomarques) for reporting the issue and to [Myron Marston](https://github.com/myronmarston) for help with the solution.
239
+
240
+ ## 1.7.0
241
+
242
+ * Fixed Net::HTTP adapter to not break normal Net::HTTP behaviour when network connections are allowed. This fixes **selenium-webdriver compatibility**!!!
243
+
244
+ * Added support for EM-HTTP-Request 1.0.x and EM-Synchrony. Thanks to [Steve Hull](https://github.com/sdhull)
245
+
246
+ * Added support for setting expectations to on a stub itself i.e.
247
+
248
+ stub = stub_request(:get, "www.example.com")
249
+ # ... make requests ...
250
+ stub.should have_been_requested
251
+
252
+ Thanks to [Aidan Feldman](https://github.com/afeld)
253
+
254
+ * Minitest support! Thanks to [Peter Higgins](https://github.com/phiggins)
255
+
256
+ * Added support for Typhoeus::Hydra
257
+
258
+ * Added support for `Curb::Easy#http_post` and `Curb::Easy#http_post` with multiple arguments. Thanks to [Salvador Fuentes Jr](https://github.com/fuentesjr) and [Alex Rothenberg](https://github.com/alexrothenberg)
259
+
260
+ * Rack support. Requests can be stubbed to respond with a Rack app i.e.
261
+
262
+ class MyRackApp
263
+ def self.call(env)
264
+ [200, {}, ["Hello"]]
265
+ end
266
+ end
267
+
268
+ stub_request(:get, "www.example.com").to_rack(MyRackApp)
269
+
270
+ RestClient.get("www.example.com") # ===> "Hello"
271
+
272
+
273
+ Thanks to [Jay Adkisson](https://github.com/jayferd)
274
+
275
+ * Added support for selective disabling and enabling of http lib adapters
276
+
277
+ WebMock.disable! #disable WebMock (all adapters)
278
+ WebMock.disable!(:except => [:net_http]) #disable WebMock for all libs except Net::HTTP
279
+ WebMock.enable! #enable WebMock (all adapters)
280
+ WebMock.enable!(:except => [:patron]) #enable WebMock for all libs except Patron
281
+
282
+ * The error message on an unstubbed request shows a code snippet with body as a hash when it was in url encoded form.
283
+
284
+ > RestClient.post('www.example.com', "data[a]=1&data[b]=2", :content_type => 'application/x-www-form-urlencoded')
285
+
286
+ WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled....
287
+
288
+ You can stub this request with the following snippet:
289
+
290
+ stub_request(:post, "http://www.example.com/").
291
+ with(:body => {"data"=>{"a"=>"1", "b"=>"2"}},
292
+ :headers => { 'Content-Type'=>'application/x-www-form-urlencoded' }).
293
+ to_return(:status => 200, :body => "", :headers => {})
294
+
295
+ Thanks to [Alex Rothenberg](https://github.com/alexrothenberg)
296
+
297
+ * The error message on an unstubbed request shows currently registered request stubs.
298
+
299
+ > stub_request(:get, "www.example.net")
300
+ > stub_request(:get, "www.example.org")
301
+ > RestClient.get("www.example.com")
302
+ WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled....
303
+
304
+ You can stub this request with the following snippet:
305
+
306
+ stub_request(:get, "http://www.example.com/").
307
+ to_return(:status => 200, :body => "", :headers => {})
308
+
309
+ registered request stubs:
310
+
311
+ stub_request(:get, "http://www.example.net/")
312
+ stub_request(:get, "http://www.example.org/")
313
+
314
+ Thanks to [Lin Jen-Shin](https://github.com/godfat) for suggesting this feature.
315
+
316
+ * Fixed problem with matching requests with json body, when json strings have date format. Thanks to [Joakim Ekberg](https://github.com/kalasjocke) for reporting this issue.
317
+
318
+ * WebMock now attempts to require each http library before monkey patching it. This is to avoid problem when http library is required after WebMock is required. Thanks to [Myron Marston](https://github.com/myronmarston) for suggesting this change.
319
+
320
+ * External requests can be disabled while allowing selected ports on selected hosts
321
+
322
+ WebMock.disable_net_connect!(:allow => "www.example.com:8080")
323
+ RestClient.get("www.example.com:80") # ===> Failure
324
+ RestClient.get("www.example.com:8080") # ===> Allowed.
325
+
326
+ Thanks to [Zach Dennis](https://github.com/zdennis)
327
+
328
+ * Fixed syntax error in README examples, showing the ways of setting request expectations. Thanks to [Nikita Fedyashev](https://github.com/nfedyashev)
329
+
330
+
331
+ **Many thanks to WebMock co-maintainer [James Conroy-Finn](https://github.com/jcf) who did a great job maintaining WebMock on his own for the last couple of months.**
332
+
333
+ ## 1.6.4
334
+
335
+ This is a quick slip release to regenerate the gemspec. Apparently
336
+ jeweler inserts dependencies twice if you use the `gemspec` method in
337
+ your Gemfile and declare gem dependencies in your gemspec.
338
+
339
+ https://github.com/technicalpickles/jeweler/issues/154
340
+
341
+ josevalim:
342
+
343
+ > This just bit me. I just released a gem with the wrong dependencies
344
+ > because I have updated jeweler. This should have been opt-in,
345
+ > otherwise a bunch of people using jeweler are going to release gems
346
+ > with the wrong dependencies because you are automatically importing
347
+ > from the Gemfile.
348
+
349
+ ## 1.6.3
350
+
351
+ * Update the dependency on addressable to get around an issue in v2.2.5.
352
+ Thanks to [Peter Higgins](https://github.com/phiggins).
353
+
354
+ * Add support for matching parameter values using a regular expression
355
+ as well as a string. Thanks to [Oleg M Prozorov](https://github.com/oleg).
356
+
357
+ * Fix integration with httpclient as the internal API has changed.
358
+ Thanks to [Frank Prößdorf](https://github.com/endor).
359
+
360
+ * Ensure Curl::Easy#content_type is always set. Thanks to [Peter
361
+ Higgins](https://github.com/phiggins).
362
+
363
+ * Fix bug with em-http-request adapter stubbing responses that have a
364
+ chunked transfer encoding. Thanks to [Myron
365
+ Marston](https://github.com/myronmarston).
366
+
367
+ * Fix a load of spec failures with Patron, httpclient, and specs that
368
+ depended on the behaviour of example.com. Thanks to [Alex
369
+ Grigorovich](https://github.com/grig).
370
+
371
+ ## 1.6.2
372
+
373
+ * Em-http-request adapter sets `last_effective_url` property. Thanks to [Sam Stokes](https://github.com/samstokes).
374
+
375
+ * Curb adapter supports `Curb::Easy#http_post` and `Curb::Easy#http_put` without arguments (by setting `post_body` or `put_data` beforehand). Thanks to [Eugene Bolshakov](https://github.com/eugenebolshakov)
376
+
377
+ ## 1.6.1
378
+
379
+ * Fixed issue with `webmock/rspec` which didn't load correctly if `rspec/core` was already required but `rspec/expectations` not.
380
+
381
+ ## 1.6.0
382
+
383
+ * Simplified integration with Test::Unit, RSpec and Cucumber. Now only a single file has to be required i.e.
384
+
385
+ require 'webmock/test_unit'
386
+ require 'webmock/rspec'
387
+ require 'webmock/cucumber'
388
+
389
+ * The error message on unstubbed request now contains code snippet which can be used to stub this request. Thanks to Martyn Loughran for suggesting this feature.
390
+
391
+ * The expectation failure message now contains a list of made requests. Thanks to Martyn Loughran for suggesting this feature.
392
+
393
+ * Added `WebMock.print_executed_requests` method which can be useful to find out what requests were made until a given point.
394
+
395
+ * em-http-request adapter is now activated by replacing EventMachine::HttpRequest constant, instead of monkeypatching the original class.
396
+
397
+ This technique is borrowed from em-http-request native mocking module. It allows switching WebMock adapter on an off, and using it interchangeably with em-http-request native mocking i.e:
398
+
399
+ EventMachine::WebMockHttpRequest.activate!
400
+ EventMachine::WebMockHttpRequest.deactivate!
401
+
402
+ Thanks to Martyn Loughran for suggesting this feature.
403
+
404
+ * `WebMock.reset_webmock` is deprecated in favour of new `WebMock.reset!`
405
+
406
+ * Fixed integration with Cucumber. Previously documented example didn't work with new versions of Cucumber.
407
+
408
+ * Fixed stubbing requests with body declared as a hash. Thanks to Erik Michaels-Ober for reporting the issue.
409
+
410
+ * Fixed issue with em-http-request adapter which didn't work when :query option value was passed as a string, not a hash. Thanks to Chee Yeo for reporting the issue.
411
+
412
+ * Fixed problem with assert_requested which didn't work if used outside rspec or test/unit
413
+
414
+ * Removed dependency on json gem
415
+
416
+ ## 1.5.0
417
+
418
+ * Support for dynamically evaluated raw responses recorded with `curl -is` <br/>
419
+ i.e.
420
+
421
+ `curl -is www.example.com > /tmp/www.example.com.txt`
422
+ stub_request(:get, "www.example.com").to_return(lambda { |request| File.new("/tmp/#{request.uri.host.to_s}.txt" }))
423
+
424
+ * `:net_http_connect_on_start` option can be passed to `WebMock.allow_net_connect!` and `WebMock.disable_net_connect!` methods, i.e.
425
+
426
+ WebMock.allow_net_connect!(:net_http_connect_on_start => true)
427
+
428
+ This forces WebMock Net::HTTP adapter to always connect on `Net::HTTP.start`. Check 'Connecting on Net::HTTP.start' in README for more information.
429
+
430
+ Thanks to Alastair Brunton for reporting the issue and for fix suggestions.
431
+
432
+ * Fixed an issue where Patron spec tried to remove system temporary directory.
433
+ Thanks to Hans de Graaff
434
+
435
+ * WebMock specs now use RSpec 2
436
+
437
+ * `rake spec NO_CONNECTION=true` can now be used to only run WebMock specs which do not make real network connections
438
+
439
+ ## 1.4.0
440
+
441
+ * Curb support!!! Thanks to the awesome work of Pete Higgins!
442
+
443
+ * `include WebMock` is now deprecated to avoid method and constant name conflicts. Please `include WebMock::API` instead.
444
+
445
+ * `WebMock::API#request` is renamed to `WebMock::API#a_request` to prevent method name conflicts with i.e. Rails controller specs.
446
+ WebMock.request is still available.
447
+
448
+ * Deprecated `WebMock#request`, `WebMock#allow_net_connect!`, `WebMock#net_connect_allowed?`, `WebMock#registered_request?`, `WebMock#reset_callbacks`, `WebMock#after_request` instance methods. These methods are still available, but only as WebMock class methods.
449
+
450
+ * Removed `WebMock.response_for_request` and `WebMock.assertion_failure` which were only used internally and were not documented.
451
+
452
+ * :allow_localhost => true' now permits 0.0.0.0 in addition to 127.0.0.1 and 'localhost'. Thanks to Myron Marston and Mike Gehard for suggesting this.
453
+
454
+ * Fixed issue with both RSpec 1.x and 2.x being available.
455
+
456
+ WebMock now tries to use already loaded version of RSpec (1.x or 2.x). Previously it was loading RSpec 2.0 if available, even if RSpec 1.3 was already loaded.
457
+
458
+ Thanks to Hans de Graaff for reporting this.
459
+
460
+ * Changed runtime dependency on Addressable version 2.2.2 which fixes handling of percent-escaped '+'
461
+
462
+ ## 1.3.5
463
+
464
+ * External requests can be disabled while allowing selected hosts. Thanks to Charles Li and Ryan Bigg
465
+
466
+ This feature was available before only for localhost with `:allow_localhost => true`
467
+
468
+ WebMock.disable_net_connect!(:allow => "www.example.org")
469
+
470
+ Net::HTTP.get('www.something.com', '/') # ===> Failure
471
+
472
+ Net::HTTP.get('www.example.org', '/') # ===> Allowed.
473
+
474
+ * Fixed Net::HTTP adapter so that it preserves the original behavior of Net::HTTP.
475
+
476
+ When making a request with a block that calls #read_body on the request,
477
+ Net::HTTP causes the body to be set to a Net::ReadAdapter, but WebMock was causing the body to be set to a string.
478
+
479
+ ## 1.3.4
480
+
481
+ * Fixed Net::HTTP adapter to handle cases where a block with `read_body` call is passed to `request`.
482
+ This fixes compatibility with `open-uri`. Thanks to Mark Evans for reporting the issue.
483
+
484
+ ## 1.3.3
485
+
486
+ * Fixed handling of multiple values for the same response header for Net::HTTP. Thanks to Myron Marston for reporting the issue.
487
+
488
+ ## 1.3.2
489
+
490
+ * Fixed compatibility with EM-HTTP-Request >= 0.2.9. Thanks to Myron Marston for reporting the issue.
491
+
492
+ ## 1.3.1
493
+
494
+ * The less hacky way to get the stream behaviour working for em-http-request. Thanks to Martyn Loughran
495
+
496
+ * Fixed issues where Net::HTTP was not accepting valid nil response body. Thanks to Muness Alrubaie
497
+
498
+ ## 1.3.0
499
+
500
+ * Added support for [em-http-request](http://github.com/igrigorik/em-http-request)
501
+
502
+ * Matching query params using a hash
503
+
504
+ stub_http_request(:get, "www.example.com").with(:query => {"a" => ["b", "c"]})
505
+
506
+ RestClient.get("http://www.example.com/?a[]=b&a[]=c") # ===> Success
507
+
508
+ request(:get, "www.example.com").with(:query => {"a" => ["b", "c"]}).should have_been_made # ===> Success
509
+
510
+ * Matching request body against a hash. Body can be URL-Encoded, JSON or XML.
511
+
512
+ (Thanks to Steve Tooke for the idea and a solution for url-encoded bodies)
513
+
514
+ stub_http_request(:post, "www.example.com").
515
+ with(:body => {:data => {:a => '1', :b => 'five'}})
516
+
517
+ RestClient.post('www.example.com', "data[a]=1&data[b]=five",
518
+ :content_type => 'application/x-www-form-urlencoded') # ===> Success
519
+
520
+ RestClient.post('www.example.com', '{"data":{"a":"1","b":"five"}}',
521
+ :content_type => 'application/json') # ===> Success
522
+
523
+ RestClient.post('www.example.com', '<data a="1" b="five" />',
524
+ :content_type => 'application/xml' ) # ===> Success
525
+
526
+ request(:post, "www.example.com").
527
+ with(:body => {:data => {:a => '1', :b => 'five'}},
528
+ :headers => 'Content-Type' => 'application/json').should have_been_made # ===> Success
529
+
530
+ * Request callbacks (Thanks to Myron Marston for all suggestions)
531
+
532
+ WebMock can now invoke callbacks for stubbed or real requests:
533
+
534
+ WebMock.after_request do |request_signature, response|
535
+ puts "Request #{request_signature} was made and #{response} was returned"
536
+ end
537
+
538
+ invoke callbacks for real requests only and except requests made with Patron client
539
+
540
+ WebMock.after_request(:except => [:patron], :real_requests_only => true) do |request_signature, response|
541
+ puts "Request #{request_signature} was made and #{response} was returned"
542
+ end
543
+
544
+ * `to_raise()` now accepts an exception instance or a string as argument in addition to an exception class
545
+
546
+ stub_request(:any, 'www.example.net').to_raise(StandardError.new("some error"))
547
+
548
+ stub_request(:any, 'www.example.net').to_raise("some error")
549
+
550
+ * Matching requests based on a URI is 30% faster
551
+
552
+ * Fixed constant namespace issues in HTTPClient adapter. Thanks to Nathaniel Bibler for submitting a patch.
553
+
554
+ ## 1.2.2
555
+
556
+ * Fixed problem where ArgumentError was raised if query params were made up of an array e.g. data[]=a&data[]=b. Thanks to Steve Tooke
557
+
558
+ ## 1.2.1
559
+
560
+ * Changed license from GPL to MIT
561
+
562
+ * Fixed gemspec file. Thanks to Razic
563
+
564
+ ## 1.2.0
565
+
566
+ * RSpec 2 compatibility. Thanks to Sam Phillips!
567
+
568
+ * :allow_localhost => true' now permits 127.0.0.1 as well as 'localhost'. Thanks to Mack Earnhardt
569
+
570
+ * Request URI matching in now 2x faster!
571
+
572
+
573
+ ## 1.1.0
574
+
575
+ * [VCR](http://github.com/myronmarston/vcr/) compatibility. Many thanks to Myron Marston for all suggestions.
576
+
577
+ * Support for stubbing requests and returning responses with multiple headers with the same name. i.e multiple Accept headers.
578
+
579
+ stub_http_request(:get, 'www.example.com').
580
+ with(:headers => {'Accept' => ['image/png', 'image/jpeg']}).
581
+ to_return(:body => 'abc')
582
+ RestClient.get('www.example.com',
583
+ {"Accept" => ['image/png', 'image/jpeg']}) # ===> "abc\n"
584
+
585
+ * When real net connections are disabled and unstubbed request is made, WebMock throws WebMock::NetConnectNotAllowedError instead of assertion error or StandardError.
586
+
587
+ * Added WebMock.version()
588
+
589
+
590
+ ## 1.0.0
591
+
592
+ * Added support for [Patron](http://toland.github.com/patron/)
593
+
594
+ * Responses dynamically evaluated from block (idea and implementation by Tom Ward)
595
+
596
+ stub_request(:any, 'www.example.net').
597
+ to_return { |request| {:body => request.body} }
598
+
599
+ RestClient.post('www.example.net', 'abc') # ===> "abc\n"
600
+
601
+ * Responses dynamically evaluated from lambda (idea and implementation by Tom Ward)
602
+
603
+ stub_request(:any, 'www.example.net').
604
+ to_return(lambda { |request| {:body => request.body} })
605
+
606
+ RestClient.post('www.example.net', 'abc') # ===> "abc\n"
607
+
608
+ * Response with custom status message
609
+
610
+ stub_request(:any, "www.example.com").to_return(:status => [500, "Internal Server Error"])
611
+
612
+ req = Net::HTTP::Get.new("/")
613
+ Net::HTTP.start("www.example.com") { |http| http.request(req) }.message # ===> "Internal Server Error"
614
+
615
+ * Raising timeout errors (suggested by Jeffrey Jones) (compatibility with Ruby 1.8.6 by Mack Earnhardt)
616
+
617
+ stub_request(:any, 'www.example.net').to_timeout
618
+
619
+ RestClient.post('www.example.net', 'abc') # ===> RestClient::RequestTimeout
620
+
621
+ * External requests can be disabled while allowing localhost (idea and implementation by Mack Earnhardt)
622
+
623
+ WebMock.disable_net_connect!(:allow_localhost => true)
624
+
625
+ Net::HTTP.get('www.something.com', '/') # ===> Failure
626
+
627
+ Net::HTTP.get('localhost:9887', '/') # ===> Allowed. Perhaps to Selenium?
628
+
629
+
630
+ ### Bug fixes
631
+
632
+ * Fixed issue where Net::HTTP adapter didn't work for requests with body responding to read (reported by Tekin Suleyman)
633
+ * Fixed issue where request stub with headers declared as nil was matching requests with non empty headers
634
+
635
+ ## 0.9.1
636
+
637
+ * Fixed issue where response status code was not read from raw (curl -is) responses
638
+
639
+ ## 0.9.0
640
+
641
+ * Matching requests against provided block (by Sergio Gil)
642
+
643
+ stub_request(:post, "www.example.com").with { |request| request.body == "abc" }.to_return(:body => "def")
644
+ RestClient.post('www.example.com', 'abc') # ===> "def\n"
645
+ request(:post, "www.example.com").with { |req| req.body == "abc" }.should have_been_made
646
+ #or
647
+ assert_requested(:post, "www.example.com") { |req| req.body == "abc" }
648
+
649
+ * Matching request body against regular expressions (suggested by Ben Pickles)
650
+
651
+ stub_request(:post, "www.example.com").with(:body => /^.*world$/).to_return(:body => "abc")
652
+ RestClient.post('www.example.com', 'hello world') # ===> "abc\n"
653
+
654
+ * Matching request headers against regular expressions (suggested by Ben Pickles)
655
+
656
+ stub_request(:post, "www.example.com").with(:headers => {"Content-Type" => /image\/.+/}).to_return(:body => "abc")
657
+ RestClient.post('www.example.com', '', {'Content-Type' => 'image/png'}) # ===> "abc\n"
658
+
659
+ * Replaying raw responses recorded with `curl -is`
660
+
661
+ `curl -is www.example.com > /tmp/example_curl_-is_output.txt`
662
+ raw_response_file = File.new("/tmp/example_curl_-is_output.txt")
663
+
664
+ from file
665
+
666
+ stub_request(:get, "www.example.com").to_return(raw_response_file)
667
+
668
+ or string
669
+
670
+ stub_request(:get, "www.example.com").to_return(raw_response_file.read)
671
+
672
+ * Multiple responses for repeated requests
673
+
674
+ stub_request(:get, "www.example.com").to_return({:body => "abc"}, {:body => "def"})
675
+ Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
676
+ Net::HTTP.get('www.example.com', '/') # ===> "def\n"
677
+
678
+ * Multiple responses using chained `to_return()` or `to_raise()` declarations
679
+
680
+ stub_request(:get, "www.example.com").
681
+ to_return({:body => "abc"}).then. #then() just is a syntactic sugar
682
+ to_return({:body => "def"}).then.
683
+ to_raise(MyException)
684
+ Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
685
+ Net::HTTP.get('www.example.com', '/') # ===> "def\n"
686
+ Net::HTTP.get('www.example.com', '/') # ===> MyException raised
687
+
688
+ * Specifying number of times given response should be returned
689
+
690
+ stub_request(:get, "www.example.com").
691
+ to_return({:body => "abc"}).times(2).then.
692
+ to_return({:body => "def"})
693
+
694
+ Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
695
+ Net::HTTP.get('www.example.com', '/') # ===> "abc\n"
696
+ Net::HTTP.get('www.example.com', '/') # ===> "def\n"
697
+
698
+ * Added support for `Net::HTTP::Post#body_stream`
699
+
700
+ This fixes compatibility with new versions of RestClient
701
+
702
+ * WebMock doesn't suppress default request headers added by http clients anymore.
703
+
704
+ i.e. Net::HTTP adds `'Accept'=>'*/*'` to all requests by default
705
+
706
+
707
+
708
+ ## 0.8.2
709
+
710
+ * Fixed issue where WebMock was not closing IO object passed as response body after reading it.
711
+ * Ruby 1.9.2 compat: Use `File#expand_path` for require path because "." is not be included in LOAD_PATH since Ruby 1.9.2
712
+
713
+
714
+ ## 0.8.1
715
+
716
+ * Fixed HTTPClient adapter compatibility with Ruby 1.8.6 (reported by Piotr Usewicz)
717
+ * Net:HTTP adapter now handles request body assigned as Net::HTTP::Post#body attribute (fixed by Mack Earnhardt)
718
+ * Fixed issue where requests were not matching stubs with Accept header set.(reported by Piotr Usewicz)
719
+ * Fixed compatibility with Ruby 1.9.1, 1.9.2 and JRuby 1.3.1 (reported by Diego E. “Flameeyes” Pettenò)
720
+ * Fixed issue with response body declared as IO object and multiple requests (reported by Niels Meersschaert)
721
+ * Fixed "undefined method `assertion_failure'" error (reported by Nick Plante)
722
+
723
+
724
+ ## 0.8.0
725
+
726
+ * Support for HTTPClient (sync and async requests)
727
+ * Support for dynamic responses. Response body and headers can be now declared as lambda.
728
+ (Thanks to Ivan Vega ( @ivanyv ) for suggesting this feature)
729
+ * Support for stubbing and expecting requests with empty body
730
+ * Executing non-stubbed request leads to failed expectation instead of error
731
+
732
+
733
+ ### Bug fixes
734
+
735
+ * Basic authentication now works correctly
736
+ * Fixed problem where WebMock didn't call a block with the response when block was provided
737
+ * Fixed problem where uris with single slash were not matching uris without path provided
738
+
739
+
740
+ ## 0.7.3
741
+
742
+ * Clarified documentation
743
+ * Fixed some issues with loading of Webmock classes
744
+ * Test::Unit and RSpec adapters have to be required separately
745
+
746
+
747
+ ## 0.7.2
748
+
749
+ * Added support for matching escaped and non escaped URLs