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.
- data/Gemfile +10 -0
- data/VERSION.yml +1 -1
- data/bin/edit_json.rb +3 -0
- data/bin/restclient +3 -0
- data/examples/web_search_joined.rb +25 -0
- data/examples/yql_web_search.rb +11 -0
- data/lib/smoke/cache.rb +0 -3
- data/lib/smoke.rb +5 -5
- data/vendor/gems/cache/crack-0.1.1.gem +0 -0
- data/vendor/gems/cache/fakeweb-1.2.5.gem +0 -0
- data/vendor/gems/cache/json-1.1.3.gem +0 -0
- data/vendor/gems/cache/rest-client-1.0.1.gem +0 -0
- data/vendor/gems/cache/simple-rss-1.2.gem +0 -0
- data/vendor/gems/cache/wycats-moneta-0.6.0.gem +0 -0
- data/vendor/gems/environment.rb +83 -0
- data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/LICENSE +0 -0
- data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/README.rdoc +0 -0
- data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/VERSION.yml +0 -0
- data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/lib/crack/core_extensions.rb +0 -0
- data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/lib/crack/json.rb +0 -0
- data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/lib/crack/xml.rb +0 -0
- data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/lib/crack.rb +0 -0
- data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/test/crack_test.rb +0 -0
- data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/test/json_test.rb +0 -0
- data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/test/test_helper.rb +0 -0
- data/vendor/{crack-0.1.1 → gems/gems/crack-0.1.1}/test/xml_test.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/CHANGELOG +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/LICENSE.txt +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/README.rdoc +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/Rakefile +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/ext/net_http.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/registry.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/responder.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/response.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/stub_socket.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web/utility.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fake_web.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/lib/fakeweb.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/fixtures/google_response_from_curl +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/fixtures/google_response_with_transfer_encoding +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/fixtures/google_response_without_transfer_encoding +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/fixtures/test_example.txt +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/fixtures/test_txt_file +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_allow_net_connect.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_deprecations.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_fake_authentication.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_fake_web.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_fake_web_open_uri.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_helper.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_missing_open_uri.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_precedence.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_query_string.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_regexes.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_response_headers.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_trailing_slashes.rb +0 -0
- data/vendor/{fakeweb-1.2.5 → gems/gems/fakeweb-1.2.5}/test/test_utility.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/CHANGES +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/GPL +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/README +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/RUBY +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/Rakefile +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/TODO +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/VERSION +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/benchmarks/benchmark.txt +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/benchmarks/benchmark_generator.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/benchmarks/benchmark_parser.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/benchmarks/benchmark_rails.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/bin/edit_json.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/bin/prettify_json.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/data/example.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/data/index.html +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/data/prototype.js +0 -0
- data/vendor/gems/gems/json-1.1.3/ext/json/ext/generator/Makefile +150 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/generator/extconf.rb +0 -0
- data/vendor/gems/gems/json-1.1.3/ext/json/ext/generator/generator.bundle +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/generator/generator.c +0 -0
- data/vendor/gems/gems/json-1.1.3/ext/json/ext/generator/generator.o +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/generator/unicode.c +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/generator/unicode.h +0 -0
- data/vendor/gems/gems/json-1.1.3/ext/json/ext/generator/unicode.o +0 -0
- data/vendor/gems/gems/json-1.1.3/ext/json/ext/generator.bundle +0 -0
- data/vendor/gems/gems/json-1.1.3/ext/json/ext/parser/Makefile +150 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/parser/extconf.rb +0 -0
- data/vendor/gems/gems/json-1.1.3/ext/json/ext/parser/parser.bundle +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/parser/parser.c +0 -0
- data/vendor/gems/gems/json-1.1.3/ext/json/ext/parser/parser.o +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/parser/parser.rl +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/parser/unicode.c +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/ext/json/ext/parser/unicode.h +0 -0
- data/vendor/gems/gems/json-1.1.3/ext/json/ext/parser/unicode.o +0 -0
- data/vendor/gems/gems/json-1.1.3/ext/json/ext/parser.bundle +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/install.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/Array.xpm +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/FalseClass.xpm +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/Hash.xpm +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/Key.xpm +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/NilClass.xpm +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/Numeric.xpm +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/String.xpm +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/TrueClass.xpm +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/add/core.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/add/rails.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/common.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/editor.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/ext.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/json.xpm +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/pure/generator.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/pure/parser.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/pure.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json/version.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/lib/json.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail1.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail10.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail11.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail12.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail13.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail14.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail18.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail19.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail2.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail20.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail21.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail22.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail23.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail24.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail25.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail27.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail28.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail3.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail4.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail5.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail6.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail7.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail8.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/fail9.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass1.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass15.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass16.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass17.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass2.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass26.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/fixtures/pass3.json +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/runner.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json_addition.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json_fixtures.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json_generate.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json_rails.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tests/test_json_unicode.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tools/fuzz.rb +0 -0
- data/vendor/{json-1.1.3 → gems/gems/json-1.1.3}/tools/server.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/README.rdoc +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/Rakefile +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/bin/restclient +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/rest_client.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/exceptions.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/mixin/response.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/raw_response.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/request.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/resource.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient/response.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/lib/restclient.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/base.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/exceptions_spec.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/mixin/response_spec.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/raw_response_spec.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/request_spec.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/resource_spec.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/response_spec.rb +0 -0
- data/vendor/{rest-client-1.0.1 → gems/gems/rest-client-1.0.1}/spec/restclient_spec.rb +0 -0
- data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/LICENSE +0 -0
- data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/README +0 -0
- data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/Rakefile +0 -0
- data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/lib/simple-rss.rb +0 -0
- data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/base/base_test.rb +0 -0
- data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/data/atom.xml +0 -0
- data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/data/not-rss.xml +0 -0
- data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/data/rss09.rdf +0 -0
- data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/data/rss20.xml +0 -0
- data/vendor/{simple-rss-1.2 → gems/gems/simple-rss-1.2}/test/test_helper.rb +0 -0
- data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/LICENSE +0 -0
- data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/README +1 -2
- data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/Rakefile +0 -0
- data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/TODO +0 -0
- data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta/datamapper.rb +0 -0
- data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta/file.rb +1 -1
- data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta/memcache.rb +2 -3
- data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta/memory.rb +0 -0
- data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta/xattr.rb +0 -0
- data/vendor/{moneta → gems/gems/wycats-moneta-0.6.0}/lib/moneta.rb +0 -0
- data/vendor/gems/specifications/crack-0.1.1.gemspec +29 -0
- data/vendor/gems/specifications/fakeweb-1.2.5.gemspec +34 -0
- data/vendor/gems/specifications/json-1.1.3.gemspec +33 -0
- data/vendor/gems/specifications/rest-client-1.0.1.gemspec +30 -0
- data/vendor/gems/specifications/simple-rss-1.2.gemspec +27 -0
- data/vendor/{moneta/moneta.gemspec → gems/specifications/wycats-moneta-0.6.0.gemspec} +2 -5
- metadata +217 -290
- data/vendor/dependencies/README.markdown +0 -113
- data/vendor/dependencies/Rakefile +0 -5
- data/vendor/dependencies/bin/dep +0 -83
- data/vendor/dependencies/dependencies.gemspec +0 -15
- data/vendor/dependencies/dependencies.gemspec.erb +0 -27
- data/vendor/dependencies/lib/dependencies/dep.rb +0 -99
- data/vendor/dependencies/lib/dependencies.rb +0 -5
- data/vendor/dependencies/test/dependencies_test.rb +0 -228
- data/vendor/dependencies/test/foobaz-0.3.gem +0 -0
- data/vendor/moneta/benchmarks/various.rb +0 -234
- data/vendor/moneta/lib/moneta/basic_file.rb +0 -111
- data/vendor/moneta/lib/moneta/berkeley.rb +0 -53
- data/vendor/moneta/lib/moneta/couch.rb +0 -63
- data/vendor/moneta/lib/moneta/lmc.rb +0 -52
- data/vendor/moneta/lib/moneta/mongodb.rb +0 -58
- data/vendor/moneta/lib/moneta/redis.rb +0 -49
- data/vendor/moneta/lib/moneta/rufus.rb +0 -41
- data/vendor/moneta/lib/moneta/s3.rb +0 -162
- data/vendor/moneta/lib/moneta/sdbm.rb +0 -33
- data/vendor/moneta/lib/moneta/tyrant.rb +0 -58
- data/vendor/moneta/script/destroy +0 -14
- data/vendor/moneta/script/generate +0 -14
- data/vendor/moneta/spec/moneta_basic_file_spec.rb +0 -50
- data/vendor/moneta/spec/moneta_berkeley_spec.rb +0 -20
- data/vendor/moneta/spec/moneta_couch_spec.rb +0 -22
- data/vendor/moneta/spec/moneta_datamapper_spec.rb +0 -79
- data/vendor/moneta/spec/moneta_file_spec.rb +0 -21
- data/vendor/moneta/spec/moneta_lmc_spec.rb +0 -24
- data/vendor/moneta/spec/moneta_memcache_spec.rb +0 -16
- data/vendor/moneta/spec/moneta_memory_spec.rb +0 -12
- data/vendor/moneta/spec/moneta_mongodb_spec.rb +0 -16
- data/vendor/moneta/spec/moneta_redis_spec.rb +0 -16
- data/vendor/moneta/spec/moneta_rufus_spec.rb +0 -15
- data/vendor/moneta/spec/moneta_s3_spec.rb +0 -19
- data/vendor/moneta/spec/moneta_sdbm_spec.rb +0 -21
- data/vendor/moneta/spec/moneta_tyrant_spec.rb +0 -15
- data/vendor/moneta/spec/moneta_xattr_spec.rb +0 -21
- data/vendor/moneta/spec/shared.rb +0 -122
- 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
|