sucker 2.0.0.pre.5 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. data/README.md +4 -139
  2. data/lib/sucker.rb +2 -2
  3. data/lib/sucker/config.rb +4 -0
  4. data/lib/sucker/request.rb +3 -3
  5. data/lib/sucker/version.rb +1 -1
  6. data/spec/fixtures/cassette_library/cartcreate/e3e2f9b71afba67619a95c7178178595.yml +27 -0
  7. data/spec/fixtures/cassette_library/itemlookup/4908294851a4df13269707e9f6507f91.yml +26 -0
  8. data/spec/fixtures/cassette_library/itemlookup/5670727fa0cb9f30464e41aa1346c91c.yml +26 -0
  9. data/spec/fixtures/cassette_library/itemlookup/6e6b1dc74378e2e1118713e254191fc0.yml +26 -0
  10. data/spec/fixtures/cassette_library/itemlookup/76f548183c2804a74d0ed7e0bfbd6d4a.yml +26 -0
  11. data/spec/fixtures/cassette_library/itemlookup/8286b763b726d3dc1fc992023e639b9b.yml +151 -0
  12. data/spec/fixtures/cassette_library/itemlookup/d3d6ea869d31173526f48907bff752a3.yml +26 -0
  13. data/spec/fixtures/cassette_library/itemlookup/d8ad346710c3b479febcf58e67fea7ef.yml +26 -0
  14. data/spec/fixtures/cassette_library/itemsearch/295b9eadfb69d55e1c0acb06220e0b6e.yml +26 -0
  15. data/spec/fixtures/cassette_library/itemsearch/4c1e50d070821f4eb9fe3961aba105ee.yml +26 -0
  16. data/spec/fixtures/cassette_library/itemsearch/5a15430433ab94c70466eb61c919a028.yml +26 -0
  17. data/spec/fixtures/cassette_library/itemsearch/7b463c88b9936c1f601826437e7e8ef5.yml +26 -0
  18. data/spec/fixtures/cassette_library/itemsearch/8fd40b929a9ed46e2b38ac905c8ab53a.yml +26 -0
  19. data/spec/fixtures/cassette_library/sellerlistingsearch/cb25caadce96ac3de70b69b76431d730.yml +26 -0
  20. data/spec/fixtures/cassette_library/sellerlistingsearch/e1261838e1754870ffd309dd78eb7374.yml +26 -0
  21. data/spec/sucker/config_spec.rb +8 -2
  22. data/spec/sucker_spec.rb +2 -2
  23. metadata +72 -36
  24. data/spec/fixtures/asins.txt +0 -10000
  25. data/spec/support/amazon_credentials.rb +0 -7
  26. data/spec/support/asins.rb +0 -8
@@ -1,7 +0,0 @@
1
- def amazon_key
2
- ENV['AMAZON_KEY']
3
- end
4
-
5
- def amazon_secret
6
- ENV['AMAZON_SECRET']
7
- end
@@ -1,8 +0,0 @@
1
- def asins_fixture
2
- asins = File.new(File.expand_path("../../fixtures/asins.txt", __FILE__), "r").map { |line| line.chomp }
3
- if block_given?
4
- asins.each { |asin| yield asin }
5
- end
6
-
7
- asins
8
- end