sucker 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/lib/sucker/parameters.rb +1 -1
- data/lib/sucker/request.rb +1 -2
- data/lib/sucker/response.rb +2 -2
- data/lib/sucker/version.rb +1 -1
- data/spec/fixtures/cassette_library/cartcreate/5824f6c6d064e0acb06bb6e57140778d.yml +26 -0
- data/spec/fixtures/cassette_library/cartcreate/b2d7f9e0dfe013c7dd4bbc89eb0f75fd.yml +26 -0
- data/spec/fixtures/cassette_library/itemlookup/41213345816f36046745e1fe7731bab1.yml +26 -0
- data/spec/fixtures/cassette_library/itemlookup/455e56b0adcf98792f6e95dc477b3acb.yml +26 -0
- data/spec/fixtures/cassette_library/itemlookup/5fa53796782a718e885a06c274fd4c12.yml +151 -0
- data/spec/fixtures/cassette_library/itemlookup/a7bb635f41a1d0183d5cef0873174cd2.yml +26 -0
- data/spec/fixtures/cassette_library/itemlookup/afa3b5a28721e3a771a89055b2f9503e.yml +26 -0
- data/spec/fixtures/cassette_library/itemlookup/b161ebf5f5e10e94ac48b12a6cce58f3.yml +26 -0
- data/spec/fixtures/cassette_library/itemlookup/ce70223ceea6f63e4b431e44cbc16c22.yml +26 -0
- data/spec/fixtures/cassette_library/itemsearch/991e8a7029b70c9c426a742225b9dddd.yml +26 -0
- data/spec/fixtures/cassette_library/itemsearch/d5c5d92529731968def184a926957be5.yml +26 -0
- data/spec/fixtures/cassette_library/itemsearch/f187d2bae609f2c5530040f22fa4b4ad.yml +26 -0
- data/spec/fixtures/cassette_library/itemsearch/f527437769cbe16041b3fd757e96f6a3.yml +26 -0
- data/spec/fixtures/http_response +1 -0
- data/spec/sucker/response_spec.rb +32 -89
- data/spec/sucker_spec.rb +0 -7
- data/spec/support/credentials.rb +11 -0
- data/spec/support/vcr.rb +1 -1
- metadata +36 -70
- data/spec/fixtures/cassette_library/cartcreate/e3e2f9b71afba67619a95c7178178595.yml +0 -27
- data/spec/fixtures/cassette_library/cartcreate/f8fe45cc6b78ac1aac675a8f76d5f7d9.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/0547439fa22ec1178508f61bc8fb1dfb.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/2656b1813249aff0d4febb01044962ff.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/4908294851a4df13269707e9f6507f91.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/49690856d2b9cb358fc505dc52862acf.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/5670727fa0cb9f30464e41aa1346c91c.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/67b3c825b2902b511412057442db6e91.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/6e6b1dc74378e2e1118713e254191fc0.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/742f3458144935c0a3320be6e842a17c.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/76f548183c2804a74d0ed7e0bfbd6d4a.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/8286b763b726d3dc1fc992023e639b9b.yml +0 -151
- data/spec/fixtures/cassette_library/itemlookup/9853d1f8ae05d5501df4e4390c5abeae.yml +0 -151
- data/spec/fixtures/cassette_library/itemlookup/b6c76ad93b17b86adb932b9b97c1f019.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/d3d6ea869d31173526f48907bff752a3.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/d8ad346710c3b479febcf58e67fea7ef.yml +0 -26
- data/spec/fixtures/cassette_library/itemlookup/e880c4cb3dd56cdfa2161a71fece15ac.yml +0 -26
- data/spec/fixtures/cassette_library/itemsearch/1c4db6b83580a7498b87d7502c249307.yml +0 -26
- data/spec/fixtures/cassette_library/itemsearch/295b9eadfb69d55e1c0acb06220e0b6e.yml +0 -26
- data/spec/fixtures/cassette_library/itemsearch/30d2bff757af125e31b82c47380b98ba.yml +0 -26
- data/spec/fixtures/cassette_library/itemsearch/34098006ffbbd9570b2c2f9ce23df9f3.yml +0 -26
- data/spec/fixtures/cassette_library/itemsearch/4c1e50d070821f4eb9fe3961aba105ee.yml +0 -26
- data/spec/fixtures/cassette_library/itemsearch/5a15430433ab94c70466eb61c919a028.yml +0 -26
- data/spec/fixtures/cassette_library/itemsearch/7b463c88b9936c1f601826437e7e8ef5.yml +0 -26
- data/spec/fixtures/cassette_library/itemsearch/8fd40b929a9ed46e2b38ac905c8ab53a.yml +0 -26
- data/spec/fixtures/cassette_library/itemsearch/e9a6659c2b464d7388c3831c6425a526.yml +0 -26
- data/spec/fixtures/cassette_library/sellerlistingsearch/6b38af058d6a0bda696f49de13cfd343.yml +0 -26
- data/spec/fixtures/cassette_library/sellerlistingsearch/c92200a4bd3d6d9023fa6317a780589b.yml +0 -26
- data/spec/fixtures/cassette_library/sellerlistingsearch/cb25caadce96ac3de70b69b76431d730.yml +0 -26
- data/spec/fixtures/cassette_library/sellerlistingsearch/e1261838e1754870ffd309dd78eb7374.yml +0 -26
- data/spec/fixtures/cassette_library/spec/sucker/request.yml +0 -31
- data/spec/fixtures/cassette_library/spec/sucker/response.yml +0 -26
@@ -1,31 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: http://ecs.amazonaws.com:80/onca/xml?AWSAccessKeyId=key&AssociateTag=&Service=AWSECommerceService&Signature=T8UVnbr8mVovMeUBQNddEHRfCBCGZnoNt7xKM0QwCWE=&Timestamp=2011-04-04T22:54:13Z&Version=2010-11-01
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
response: !ruby/struct:VCR::Response
|
9
|
-
status: !ruby/struct:VCR::ResponseStatus
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
headers:
|
13
|
-
date:
|
14
|
-
- Mon, 04 Apr 2011 22:54:13 GMT
|
15
|
-
server:
|
16
|
-
- Server
|
17
|
-
x-amz-id-1:
|
18
|
-
- 0VR34BN3AF872DQJX8F4
|
19
|
-
x-amz-id-2:
|
20
|
-
- GceQEQ2ty5ALf+AGiiTOVLnfZ+Y1ZPzeObq8gIxb7JI=
|
21
|
-
nncoection:
|
22
|
-
- close
|
23
|
-
- close
|
24
|
-
content-type:
|
25
|
-
- text/html; charset=ISO-8859-1
|
26
|
-
vary:
|
27
|
-
- Accept-Encoding,User-Agent
|
28
|
-
transfer-encoding:
|
29
|
-
- chunked
|
30
|
-
body: <?xml version="1.0" encoding="UTF-8"?><Errors xmlns="http://webservices.amazon.com/AWSECommerceService/2005-10-05"><Error><Code>AWS.InvalidOperationParameter</Code><Message>The Operation parameter is invalid. Please modify the Operation parameter and retry. Valid values for the Operation parameter include TagLookup, ListLookup, CartGet, SellerListingLookup, CustomerContentLookup, ItemLookup, SimilarityLookup, SellerLookup, ItemSearch, VehiclePartLookup, BrowseNodeLookup, CartModify, ListSearch, CartClear, VehiclePartSearch, CustomerContentSearch, CartCreate, TransactionLookup, VehicleSearch, SellerListingSearch, CartAdd, Help.</Message></Error></Errors>
|
31
|
-
http_version: "1.1"
|
@@ -1,26 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: http://ecs.amazonaws.com:80/onca/xml?AWSAccessKeyId=0ZVSQ33MDFPQS8H2PM02&AssociateTag=&IdType=ASIN&ItemId=0816614024,0143105825&Operation=ItemLookup&Service=AWSECommerceService&Signature=yk2BUlVaBNJ7Kbl+pMCaUfTT1mJjsD9rtLLlo381BX8=&Timestamp=2011-04-06T11:45:15Z&Version=2010-11-01
|
6
|
-
body:
|
7
|
-
headers:
|
8
|
-
response: !ruby/struct:VCR::Response
|
9
|
-
status: !ruby/struct:VCR::ResponseStatus
|
10
|
-
code: 200
|
11
|
-
message: OK
|
12
|
-
headers:
|
13
|
-
date:
|
14
|
-
- Wed, 06 Apr 2011 11:45:15 GMT
|
15
|
-
server:
|
16
|
-
- Server
|
17
|
-
content-type:
|
18
|
-
- text/xml;charset=UTF-8
|
19
|
-
vary:
|
20
|
-
- Accept-Encoding,User-Agent
|
21
|
-
nncoection:
|
22
|
-
- close
|
23
|
-
transfer-encoding:
|
24
|
-
- chunked
|
25
|
-
body: "<?xml version=\"1.0\" ?><ItemLookupResponse xmlns=\"http://webservices.amazon.com/AWSECommerceService/2010-11-01\"><OperationRequest><HTTPHeaders><Header Name=\"UserAgent\" Value=\"Ruby\"></Header></HTTPHeaders><RequestId>4552f365-b7b9-49fb-b5aa-b3ab0973c6e4</RequestId><Arguments><Argument Name=\"Operation\" Value=\"ItemLookup\"></Argument><Argument Name=\"Service\" Value=\"AWSECommerceService\"></Argument><Argument Name=\"Signature\" Value=\"yk2BUlVaBNJ7Kbl+pMCaUfTT1mJjsD9rtLLlo381BX8=\"></Argument><Argument Name=\"AssociateTag\"></Argument><Argument Name=\"Version\" Value=\"2010-11-01\"></Argument><Argument Name=\"ItemId\" Value=\"0816614024,0143105825\"></Argument><Argument Name=\"IdType\" Value=\"ASIN\"></Argument><Argument Name=\"AWSAccessKeyId\" Value=\"0ZVSQ33MDFPQS8H2PM02\"></Argument><Argument Name=\"Timestamp\" Value=\"2011-04-06T11:45:15Z\"></Argument></Arguments><RequestProcessingTime>0.0233890000000000</RequestProcessingTime></OperationRequest><Items><Request><IsValid>True</IsValid><ItemLookupRequest><Condition>New</Condition><DeliveryMethod>Ship</DeliveryMethod><IdType>ASIN</IdType><MerchantId>Amazon</MerchantId><OfferPage>1</OfferPage><ItemId>0816614024</ItemId><ItemId>0143105825</ItemId><ResponseGroup>Small</ResponseGroup><ReviewPage>1</ReviewPage><ReviewSort>-SubmissionDate</ReviewSort><VariationPage>All</VariationPage></ItemLookupRequest></Request><Item><ASIN>0816614024</ASIN><DetailPageURL>http://www.amazon.com/Thousand-Plateaus-Schizophrenia-Gilles-Deleuze/dp/0816614024%3FSubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0816614024</DetailPageURL><ItemLinks><ItemLink><Description>Technical Details</Description><URL>http://www.amazon.com/Thousand-Plateaus-Schizophrenia-Gilles-Deleuze/dp/tech-data/0816614024%3FSubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0816614024</URL></ItemLink><ItemLink><Description>Add To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D0816614024%26SubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0816614024</URL></ItemLink><ItemLink><Description>Add To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D0816614024%26SubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0816614024</URL></ItemLink><ItemLink><Description>Add To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D0816614024%26SubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0816614024</URL></ItemLink><ItemLink><Description>Tell A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/0816614024%3FSubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0816614024</URL></ItemLink><ItemLink><Description>All Customer Reviews</Description><URL>http://www.amazon.com/review/product/0816614024%3FSubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0816614024</URL></ItemLink><ItemLink><Description>All Offers</Description><URL>http://www.amazon.com/gp/offer-listing/0816614024%3FSubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0816614024</URL></ItemLink></ItemLinks><ItemAttributes><Author>Gilles Deleuze</Author><Creator Role=\"Contributor\">Felix Guattari</Creator><Manufacturer>Univ Of Minnesota Press</Manufacturer><ProductGroup>Book</ProductGroup><Title>Thousand Plateaus: Capitalism and Schizophrenia</Title></ItemAttributes></Item><Item><ASIN>0143105825</ASIN><DetailPageURL>http://www.amazon.com/Anti-Oedipus-Capitalism-Schizophrenia-Penguin-Classics/dp/0143105825%3FSubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0143105825</DetailPageURL><ItemLinks><ItemLink><Description>Technical Details</Description><URL>http://www.amazon.com/Anti-Oedipus-Capitalism-Schizophrenia-Penguin-Classics/dp/tech-data/0143105825%3FSubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0143105825</URL></ItemLink><ItemLink><Description>Add To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D0143105825%26SubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0143105825</URL></ItemLink><ItemLink><Description>Add To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D0143105825%26SubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0143105825</URL></ItemLink><ItemLink><Description>Add To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D0143105825%26SubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0143105825</URL></ItemLink><ItemLink><Description>Tell A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/0143105825%3FSubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0143105825</URL></ItemLink><ItemLink><Description>All Customer Reviews</Description><URL>http://www.amazon.com/review/product/0143105825%3FSubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0143105825</URL></ItemLink><ItemLink><Description>All Offers</Description><URL>http://www.amazon.com/gp/offer-listing/0143105825%3FSubscriptionId%3D0ZVSQ33MDFPQS8H2PM02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0143105825</URL></ItemLink></ItemLinks><ItemAttributes><Author>Gilles Deleuze</Author><Author>Felix Guattari</Author><Creator Role=\"Translator\">Robert Hurley</Creator><Creator Role=\"Translator\">Mark Seem</Creator><Creator Role=\"Introduction\">Mark Seem</Creator><Creator Role=\"Translator\">Helen Lane</Creator><Creator Role=\"Preface\">Michel Foucault</Creator><Manufacturer>Penguin Classics</Manufacturer><ProductGroup>Book</ProductGroup><Title>Anti-Oedipus: Capitalism and Schizophrenia (Penguin Classics)</Title></ItemAttributes></Item></Items></ItemLookupResponse>"
|
26
|
-
http_version: "1.1"
|