benschwarz-smoke 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. data/Gemfile +10 -0
  2. data/VERSION.yml +1 -1
  3. data/bin/edit_json.rb +3 -0
  4. data/bin/restclient +3 -0
  5. data/examples/web_search_joined.rb +25 -0
  6. data/examples/yql_web_search.rb +11 -0
  7. data/lib/smoke/cache.rb +0 -3
  8. data/lib/smoke.rb +5 -5
  9. data/vendor/gems/cache/crack-0.1.1.gem +0 -0
  10. data/vendor/gems/cache/fakeweb-1.2.5.gem +0 -0
  11. data/vendor/gems/cache/json-1.1.3.gem +0 -0
  12. data/vendor/gems/cache/rest-client-1.0.1.gem +0 -0
  13. data/vendor/gems/cache/simple-rss-1.2.gem +0 -0
  14. data/vendor/gems/cache/wycats-moneta-0.6.0.gem +0 -0
  15. data/vendor/gems/environment.rb +83 -0
  16. data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/LICENSE +0 -0
  17. data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/README.rdoc +0 -0
  18. data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/VERSION.yml +0 -0
  19. data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/lib/crack/core_extensions.rb +0 -0
  20. data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/lib/crack/json.rb +0 -0
  21. data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/lib/crack/xml.rb +0 -0
  22. data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/lib/crack.rb +0 -0
  23. data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/test/crack_test.rb +0 -0
  24. data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/test/json_test.rb +0 -0
  25. data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/test/test_helper.rb +0 -0
  26. data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/test/xml_test.rb +0 -0
  27. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/CHANGELOG +0 -0
  28. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/LICENSE.txt +0 -0
  29. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/README.rdoc +0 -0
  30. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/Rakefile +0 -0
  31. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/ext/net_http.rb +0 -0
  32. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/registry.rb +0 -0
  33. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/responder.rb +0 -0
  34. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/response.rb +0 -0
  35. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/stub_socket.rb +0 -0
  36. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/utility.rb +0 -0
  37. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web.rb +0 -0
  38. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fakeweb.rb +0 -0
  39. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/fixtures/google_response_from_curl +0 -0
  40. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/fixtures/google_response_with_transfer_encoding +0 -0
  41. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/fixtures/google_response_without_transfer_encoding +0 -0
  42. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/fixtures/test_example.txt +0 -0
  43. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/fixtures/test_txt_file +0 -0
  44. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_allow_net_connect.rb +0 -0
  45. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_deprecations.rb +0 -0
  46. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_fake_authentication.rb +0 -0
  47. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_fake_web.rb +0 -0
  48. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_fake_web_open_uri.rb +0 -0
  49. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_helper.rb +0 -0
  50. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_missing_open_uri.rb +0 -0
  51. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_precedence.rb +0 -0
  52. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_query_string.rb +0 -0
  53. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_regexes.rb +0 -0
  54. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_response_headers.rb +0 -0
  55. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_trailing_slashes.rb +0 -0
  56. data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_utility.rb +0 -0
  57. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/CHANGES +0 -0
  58. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/GPL +0 -0
  59. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/README +0 -0
  60. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/RUBY +0 -0
  61. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/Rakefile +0 -0
  62. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/TODO +0 -0
  63. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/VERSION +0 -0
  64. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/benchmarks/benchmark.txt +0 -0
  65. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/benchmarks/benchmark_generator.rb +0 -0
  66. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/benchmarks/benchmark_parser.rb +0 -0
  67. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/benchmarks/benchmark_rails.rb +0 -0
  68. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/bin/edit_json.rb +0 -0
  69. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/bin/prettify_json.rb +0 -0
  70. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/data/example.json +0 -0
  71. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/data/index.html +0 -0
  72. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/data/prototype.js +0 -0
  73. data/vendor/gems/gems/json-1.1.3/ext/json/ext/generator/Makefile +150 -0
  74. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/generator/extconf.rb +0 -0
  75. data/vendor/gems/gems/json-1.1.3/ext/json/ext/generator/generator.bundle +0 -0
  76. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/generator/generator.c +0 -0
  77. data/vendor/gems/gems/json-1.1.3/ext/json/ext/generator/generator.o +0 -0
  78. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/generator/unicode.c +0 -0
  79. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/generator/unicode.h +0 -0
  80. data/vendor/gems/gems/json-1.1.3/ext/json/ext/generator/unicode.o +0 -0
  81. data/vendor/gems/gems/json-1.1.3/ext/json/ext/generator.bundle +0 -0
  82. data/vendor/gems/gems/json-1.1.3/ext/json/ext/parser/Makefile +150 -0
  83. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/parser/extconf.rb +0 -0
  84. data/vendor/gems/gems/json-1.1.3/ext/json/ext/parser/parser.bundle +0 -0
  85. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/parser/parser.c +0 -0
  86. data/vendor/gems/gems/json-1.1.3/ext/json/ext/parser/parser.o +0 -0
  87. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/parser/parser.rl +0 -0
  88. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/parser/unicode.c +0 -0
  89. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/parser/unicode.h +0 -0
  90. data/vendor/gems/gems/json-1.1.3/ext/json/ext/parser/unicode.o +0 -0
  91. data/vendor/gems/gems/json-1.1.3/ext/json/ext/parser.bundle +0 -0
  92. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/install.rb +0 -0
  93. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/Array.xpm +0 -0
  94. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/FalseClass.xpm +0 -0
  95. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/Hash.xpm +0 -0
  96. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/Key.xpm +0 -0
  97. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/NilClass.xpm +0 -0
  98. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/Numeric.xpm +0 -0
  99. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/String.xpm +0 -0
  100. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/TrueClass.xpm +0 -0
  101. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/add/core.rb +0 -0
  102. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/add/rails.rb +0 -0
  103. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/common.rb +0 -0
  104. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/editor.rb +0 -0
  105. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/ext.rb +0 -0
  106. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/json.xpm +0 -0
  107. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/pure/generator.rb +0 -0
  108. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/pure/parser.rb +0 -0
  109. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/pure.rb +0 -0
  110. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/version.rb +0 -0
  111. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json.rb +0 -0
  112. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail1.json +0 -0
  113. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail10.json +0 -0
  114. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail11.json +0 -0
  115. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail12.json +0 -0
  116. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail13.json +0 -0
  117. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail14.json +0 -0
  118. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail18.json +0 -0
  119. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail19.json +0 -0
  120. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail2.json +0 -0
  121. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail20.json +0 -0
  122. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail21.json +0 -0
  123. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail22.json +0 -0
  124. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail23.json +0 -0
  125. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail24.json +0 -0
  126. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail25.json +0 -0
  127. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail27.json +0 -0
  128. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail28.json +0 -0
  129. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail3.json +0 -0
  130. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail4.json +0 -0
  131. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail5.json +0 -0
  132. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail6.json +0 -0
  133. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail7.json +0 -0
  134. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail8.json +0 -0
  135. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail9.json +0 -0
  136. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass1.json +0 -0
  137. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass15.json +0 -0
  138. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass16.json +0 -0
  139. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass17.json +0 -0
  140. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass2.json +0 -0
  141. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass26.json +0 -0
  142. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass3.json +0 -0
  143. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/runner.rb +0 -0
  144. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json.rb +0 -0
  145. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json_addition.rb +0 -0
  146. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json_fixtures.rb +0 -0
  147. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json_generate.rb +0 -0
  148. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json_rails.rb +0 -0
  149. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json_unicode.rb +0 -0
  150. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tools/fuzz.rb +0 -0
  151. data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tools/server.rb +0 -0
  152. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/README.rdoc +0 -0
  153. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/Rakefile +0 -0
  154. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/bin/restclient +0 -0
  155. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/rest_client.rb +0 -0
  156. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/exceptions.rb +0 -0
  157. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/mixin/response.rb +0 -0
  158. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/raw_response.rb +0 -0
  159. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/request.rb +0 -0
  160. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/resource.rb +0 -0
  161. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/response.rb +0 -0
  162. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient.rb +0 -0
  163. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/base.rb +0 -0
  164. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/exceptions_spec.rb +0 -0
  165. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/mixin/response_spec.rb +0 -0
  166. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/raw_response_spec.rb +0 -0
  167. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/request_spec.rb +0 -0
  168. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/resource_spec.rb +0 -0
  169. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/response_spec.rb +0 -0
  170. data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/restclient_spec.rb +0 -0
  171. data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/LICENSE +0 -0
  172. data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/README +0 -0
  173. data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/Rakefile +0 -0
  174. data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/lib/simple-rss.rb +0 -0
  175. data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/base/base_test.rb +0 -0
  176. data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/data/atom.xml +0 -0
  177. data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/data/not-rss.xml +0 -0
  178. data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/data/rss09.rdf +0 -0
  179. data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/data/rss20.xml +0 -0
  180. data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/test_helper.rb +0 -0
  181. data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/LICENSE +0 -0
  182. data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/README +1 -2
  183. data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/Rakefile +0 -0
  184. data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/TODO +0 -0
  185. data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta/datamapper.rb +0 -0
  186. data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta/file.rb +1 -1
  187. data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta/memcache.rb +2 -3
  188. data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta/memory.rb +0 -0
  189. data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta/xattr.rb +0 -0
  190. data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta.rb +0 -0
  191. data/vendor/gems/specifications/crack-0.1.1.gemspec +29 -0
  192. data/vendor/gems/specifications/fakeweb-1.2.5.gemspec +34 -0
  193. data/vendor/gems/specifications/json-1.1.3.gemspec +33 -0
  194. data/vendor/gems/specifications/rest-client-1.0.1.gemspec +30 -0
  195. data/vendor/gems/specifications/simple-rss-1.2.gemspec +27 -0
  196. data/vendor/{moneta/moneta.gemspec → gems/specifications/wycats-moneta-0.6.0.gemspec} +2 -5
  197. metadata +217 -290
  198. data/vendor/dependencies/README.markdown +0 -113
  199. data/vendor/dependencies/Rakefile +0 -5
  200. data/vendor/dependencies/bin/dep +0 -83
  201. data/vendor/dependencies/dependencies.gemspec +0 -15
  202. data/vendor/dependencies/dependencies.gemspec.erb +0 -27
  203. data/vendor/dependencies/lib/dependencies/dep.rb +0 -99
  204. data/vendor/dependencies/lib/dependencies.rb +0 -5
  205. data/vendor/dependencies/test/dependencies_test.rb +0 -228
  206. data/vendor/dependencies/test/foobaz-0.3.gem +0 -0
  207. data/vendor/moneta/benchmarks/various.rb +0 -234
  208. data/vendor/moneta/lib/moneta/basic_file.rb +0 -111
  209. data/vendor/moneta/lib/moneta/berkeley.rb +0 -53
  210. data/vendor/moneta/lib/moneta/couch.rb +0 -63
  211. data/vendor/moneta/lib/moneta/lmc.rb +0 -52
  212. data/vendor/moneta/lib/moneta/mongodb.rb +0 -58
  213. data/vendor/moneta/lib/moneta/redis.rb +0 -49
  214. data/vendor/moneta/lib/moneta/rufus.rb +0 -41
  215. data/vendor/moneta/lib/moneta/s3.rb +0 -162
  216. data/vendor/moneta/lib/moneta/sdbm.rb +0 -33
  217. data/vendor/moneta/lib/moneta/tyrant.rb +0 -58
  218. data/vendor/moneta/script/destroy +0 -14
  219. data/vendor/moneta/script/generate +0 -14
  220. data/vendor/moneta/spec/moneta_basic_file_spec.rb +0 -50
  221. data/vendor/moneta/spec/moneta_berkeley_spec.rb +0 -20
  222. data/vendor/moneta/spec/moneta_couch_spec.rb +0 -22
  223. data/vendor/moneta/spec/moneta_datamapper_spec.rb +0 -79
  224. data/vendor/moneta/spec/moneta_file_spec.rb +0 -21
  225. data/vendor/moneta/spec/moneta_lmc_spec.rb +0 -24
  226. data/vendor/moneta/spec/moneta_memcache_spec.rb +0 -16
  227. data/vendor/moneta/spec/moneta_memory_spec.rb +0 -12
  228. data/vendor/moneta/spec/moneta_mongodb_spec.rb +0 -16
  229. data/vendor/moneta/spec/moneta_redis_spec.rb +0 -16
  230. data/vendor/moneta/spec/moneta_rufus_spec.rb +0 -15
  231. data/vendor/moneta/spec/moneta_s3_spec.rb +0 -19
  232. data/vendor/moneta/spec/moneta_sdbm_spec.rb +0 -21
  233. data/vendor/moneta/spec/moneta_tyrant_spec.rb +0 -15
  234. data/vendor/moneta/spec/moneta_xattr_spec.rb +0 -21
  235. data/vendor/moneta/spec/shared.rb +0 -122
  236. data/vendor/moneta/spec/spec_helper.rb +0 -7
@@ -1,122 +0,0 @@
1
- shared_examples_for "a read/write Moneta cache" do
2
- it "reads from keys like a Hash" do
3
- @cache["key"].should == nil
4
- end
5
-
6
- it "writes to a key like a Hash" do
7
- @cache["key"] = "value"
8
- @cache["key"].should == "value"
9
- end
10
-
11
- it "specifies that it is writable via frozen?" do
12
- @cache.should_not be_frozen
13
- end
14
-
15
- it "if a key is not available, returns false from key?" do
16
- @cache.key?("key").should be_false
17
- end
18
-
19
- it "if a key is available, returns true from key?" do
20
- @cache["key"] = "value"
21
- @cache.key?("key").should be_true
22
- end
23
-
24
- it "if it exists, removes and return an element from the backing store via delete" do
25
- @cache["key"] = "value"
26
- @cache.delete("key").should == "value"
27
- @cache.key?("key").should be_false
28
- end
29
-
30
- it "if it does not exists, returns nil from delete" do
31
- @cache.delete("key").should be_nil
32
- end
33
-
34
- it "removes all keys from the store with clear" do
35
- @cache["key"] = "value"
36
- @cache["key2"] = "value2"
37
- @cache.clear
38
- @cache.key?("key").should_not be_true
39
- @cache.key?("key2").should_not be_true
40
- end
41
-
42
- it "fetches a key with a default value with fetch, if the key is not available" do
43
- @cache.fetch("key", "value").should == "value"
44
- end
45
-
46
- it "fetches a key with a block with fetch, if the key is not available" do
47
- @cache.fetch("key") { |key| "value" }.should == "value"
48
- end
49
-
50
- it "fetches a key with a default value with fetch, if the key is available" do
51
- @cache["key"] = "value2"
52
- @cache.fetch("key", "value").should == "value2"
53
- end
54
-
55
- it "stores values with #store" do
56
- @cache.store("key", "value")
57
- @cache["key"].should == "value"
58
- end
59
-
60
- describe "when storing values with #store, and providing an expiration" do
61
- before(:each) do
62
- @cache.store("key", "value", :expires_in => 1)
63
- end
64
-
65
- shared_examples_for "not expired" do
66
- it "still has the key" do
67
- @cache.key?("key").should be_true
68
- end
69
-
70
- it "returns the value when indexed" do
71
- @cache["key"].should == "value"
72
- end
73
-
74
- it "returns the value when fetched" do
75
- @cache.fetch("key", "value2").should == "value"
76
- end
77
-
78
- it "returns the value when deleted" do
79
- @cache.delete("key").should == "value"
80
- end
81
- end
82
-
83
- describe "when expired" do
84
- before(:each) do
85
- if @native_expires
86
- sleep 2
87
- else
88
- time = Time.now
89
- Time.stub!(:now).and_return { time + 2 }
90
- end
91
- end
92
-
93
- it "no longer has the key" do
94
- @cache.key?("key").should be_false
95
- end
96
-
97
- it "returns nil when indexed" do
98
- @cache["key"].should == nil
99
- end
100
-
101
- it "returns the default value when fetched" do
102
- @cache.fetch("key", "value2").should == "value2"
103
- end
104
-
105
- it "returns nil when deleting the expired key" do
106
- @cache.delete("key").should == nil
107
- end
108
- end
109
-
110
- describe "when not expired" do
111
- it_should_behave_like "not expired"
112
- end
113
-
114
- describe "after updating the expiry with update_key, and waiting for the initial expiry to pass" do
115
- before(:each) do
116
- @cache.update_key("key", :expires_in => 2)
117
- end
118
-
119
- it_should_behave_like "not expired"
120
- end
121
- end
122
- end
@@ -1,7 +0,0 @@
1
- $TESTING=true
2
- $:.push File.join(File.dirname(__FILE__), '..', 'lib')
3
-
4
- require "rubygems"
5
- require "moneta"
6
-
7
- require File.expand_path(File.join(File.dirname(__FILE__), "shared"))