rasin 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +3 -0
- data/.gitignore +6 -0
- data/.travis.yml +13 -0
- data/CHANGELOG.rdoc +49 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +54 -0
- data/README.rdoc +166 -0
- data/asin.gemspec +36 -0
- data/lib/asin.rb +8 -0
- data/lib/asin/client.rb +398 -0
- data/lib/asin/configuration.rb +105 -0
- data/lib/asin/simple_cart.rb +54 -0
- data/lib/asin/simple_item.rb +44 -0
- data/lib/asin/simple_node.rb +44 -0
- data/lib/asin/version.rb +3 -0
- data/rakefile.rb +11 -0
- data/spec/asin.yml +4 -0
- data/spec/browse_node_spec.rb +17 -0
- data/spec/cart_spec.rb +150 -0
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_add_items_to_a_cart.yml +68 -0
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_clear_a_cart.yml +66 -0
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_get_a_cart.yml +67 -0
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_update_a_cart.yml +70 -0
- data/spec/cassettes/asin/browse_node_should_lookup_a_browse_node.yml +38 -0
- data/spec/cassettes/asin/cart_should_create_a_cart.yml +36 -0
- data/spec/cassettes/asin/lookup_and_search_should_have_metadata.yml +81 -0
- data/spec/cassettes/asin/lookup_and_search_should_lookup_a_book.yml +81 -0
- data/spec/cassettes/asin/lookup_and_search_should_lookup_multiple_books.yml +131 -0
- data/spec/cassettes/asin/lookup_and_search_should_lookup_multiple_response_groups.yml +43 -0
- data/spec/cassettes/asin/lookup_and_search_should_return_a_custom_item_class.yml +81 -0
- data/spec/cassettes/asin/lookup_and_search_should_return_a_mash_value.yml +81 -0
- data/spec/cassettes/asin/lookup_and_search_should_return_a_rash_value.yml +81 -0
- data/spec/cassettes/asin/lookup_and_search_should_return_a_raw_value.yml +81 -0
- data/spec/cassettes/asin/lookup_and_search_should_search_keywords_a_book_with_fulltext.yml +538 -0
- data/spec/cassettes/asin/lookup_and_search_should_search_keywords_and_handle_a_single_result.yml +72 -0
- data/spec/cassettes/asin/lookup_and_search_should_search_keywords_never_mind_music.yml +119 -0
- data/spec/cassettes/asin/lookup_and_search_should_search_music.yml +37 -0
- data/spec/cassettes/asin/lookup_and_search_should_search_never_mind_music.yml +122 -0
- data/spec/config_spec.rb +53 -0
- data/spec/search_spec.rb +101 -0
- data/spec/spec_helper.rb +47 -0
- metadata +197 -0
data/spec/cassettes/asin/lookup_and_search_should_search_keywords_and_handle_a_single_result.yml
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&Keywords=0471317519&Operation=ItemSearch&ResponseGroup=Medium&SearchIndex=Books&Service=AWSECommerceService&Signature=KjgxSEQuRoYRwaeLLtLHGeZDopEbz5n2AsI1v3FbqbI=&Timestamp=2011-11-17T12:26:38Z&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
|
+
- Thu, 17 Nov 2011 12:26:38 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" encoding="UTF-8"?><ItemSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
26
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>1805W0M764TJ19PNFRPW</RequestId><Arguments><Argument
|
27
|
+
Name="SearchIndex" Value="Books"></Argument><Argument Name="AssociateTag"></Argument><Argument
|
28
|
+
Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Keywords"
|
29
|
+
Value="0471317519"></Argument><Argument Name="Signature" Value="KjgxSEQuRoYRwaeLLtLHGeZDopEbz5n2AsI1v3FbqbI="></Argument><Argument
|
30
|
+
Name="ResponseGroup" Value="Medium"></Argument><Argument Name="Operation" Value="ItemSearch"></Argument><Argument
|
31
|
+
Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument Name="Timestamp"
|
32
|
+
Value="2011-11-17T12:26:38Z"></Argument><Argument Name="Version" Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.0905349254608154</RequestProcessingTime></OperationRequest><Items><Request><IsValid>True</IsValid><ItemSearchRequest><Keywords>0471317519</Keywords><ResponseGroup>Medium</ResponseGroup><SearchIndex>Books</SearchIndex></ItemSearchRequest></Request><TotalResults>1</TotalResults><TotalPages>1</TotalPages><Item><ASIN>0471317519</ASIN><DetailPageURL>http://www.amazon.com/Math-Youll-Ever-Need-Self-Teaching/dp/0471317519%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0471317519</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
33
|
+
Details</Description><URL>http://www.amazon.com/Math-Youll-Ever-Need-Self-Teaching/dp/tech-data/0471317519%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0471317519</URL></ItemLink><ItemLink><Description>Add
|
34
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D0471317519%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0471317519</URL></ItemLink><ItemLink><Description>Add
|
35
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D0471317519%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0471317519</URL></ItemLink><ItemLink><Description>Add
|
36
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D0471317519%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0471317519</URL></ItemLink><ItemLink><Description>Tell
|
37
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/0471317519%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0471317519</URL></ItemLink><ItemLink><Description>All
|
38
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/0471317519%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0471317519</URL></ItemLink><ItemLink><Description>All
|
39
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/0471317519%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0471317519</URL></ItemLink></ItemLinks><SalesRank>27337</SalesRank><SmallImage><URL>http://ecx.images-amazon.com/images/I/51lkQJgTFrL._SL75_.jpg</URL><Height
|
40
|
+
Units="pixels">75</Height><Width Units="pixels">61</Width></SmallImage><MediumImage><URL>http://ecx.images-amazon.com/images/I/51lkQJgTFrL._SL160_.jpg</URL><Height
|
41
|
+
Units="pixels">160</Height><Width Units="pixels">131</Width></MediumImage><LargeImage><URL>http://ecx.images-amazon.com/images/I/51lkQJgTFrL._SL500_.jpg</URL><Height
|
42
|
+
Units="pixels">500</Height><Width Units="pixels">408</Width></LargeImage><ImageSets><ImageSet
|
43
|
+
Category="primary"><SwatchImage><URL>http://ecx.images-amazon.com/images/I/51lkQJgTFrL._SL30_.jpg</URL><Height
|
44
|
+
Units="pixels">30</Height><Width Units="pixels">24</Width></SwatchImage><SmallImage><URL>http://ecx.images-amazon.com/images/I/51lkQJgTFrL._SL75_.jpg</URL><Height
|
45
|
+
Units="pixels">75</Height><Width Units="pixels">61</Width></SmallImage><ThumbnailImage><URL>http://ecx.images-amazon.com/images/I/51lkQJgTFrL._SL75_.jpg</URL><Height
|
46
|
+
Units="pixels">75</Height><Width Units="pixels">61</Width></ThumbnailImage><TinyImage><URL>http://ecx.images-amazon.com/images/I/51lkQJgTFrL._SL110_.jpg</URL><Height
|
47
|
+
Units="pixels">110</Height><Width Units="pixels">90</Width></TinyImage><MediumImage><URL>http://ecx.images-amazon.com/images/I/51lkQJgTFrL._SL160_.jpg</URL><Height
|
48
|
+
Units="pixels">160</Height><Width Units="pixels">131</Width></MediumImage><LargeImage><URL>http://ecx.images-amazon.com/images/I/51lkQJgTFrL._SL500_.jpg</URL><Height
|
49
|
+
Units="pixels">500</Height><Width Units="pixels">408</Width></LargeImage></ImageSet></ImageSets><ItemAttributes><Author>Steve
|
50
|
+
Slavin</Author><Binding>Paperback</Binding><DeweyDecimalNumber>510</DeweyDecimalNumber><EAN>9780471317517</EAN><EANList><EANListElement>9780471317517</EANListElement></EANList><Edition>Revised
|
51
|
+
Edition</Edition><ISBN>0471317519</ISBN><ItemDimensions><Height Units="hundredths-inches">56</Height><Length
|
52
|
+
Units="hundredths-inches">918</Length><Weight Units="hundredths-pounds">93</Weight><Width
|
53
|
+
Units="hundredths-inches">794</Width></ItemDimensions><Label>Wiley</Label><ListPrice><Amount>1695</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$16.95</FormattedPrice></ListPrice><Manufacturer>Wiley</Manufacturer><NumberOfItems>1</NumberOfItems><NumberOfPages>240</NumberOfPages><PackageDimensions><Height
|
54
|
+
Units="hundredths-inches">60</Height><Length Units="hundredths-inches">910</Length><Weight
|
55
|
+
Units="hundredths-pounds">80</Weight><Width Units="hundredths-inches">740</Width></PackageDimensions><ProductGroup>Book</ProductGroup><ProductTypeName>ABIS_BOOK</ProductTypeName><PublicationDate>1999-04-12</PublicationDate><Publisher>Wiley</Publisher><SKU>WU0471317519</SKU><Studio>Wiley</Studio><Title>All
|
56
|
+
the Math You''ll Ever Need: A Self-Teaching Guide (Wiley Self-Teaching Guides)</Title></ItemAttributes><OfferSummary><LowestNewPrice><Amount>899</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$8.99</FormattedPrice></LowestNewPrice><LowestUsedPrice><Amount>343</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$3.43</FormattedPrice></LowestUsedPrice><TotalNew>44</TotalNew><TotalUsed>49</TotalUsed><TotalCollectible>0</TotalCollectible><TotalRefurbished>0</TotalRefurbished></OfferSummary><EditorialReviews><EditorialReview><Source>Product
|
57
|
+
Description</Source><Content><b>A sharp mind, like a healthy body, is
|
58
|
+
subject to the same rule of nature: Use it or lose it</b><p>Need
|
59
|
+
a calculator just to work out a 15 percent service charge? Not exactly sure
|
60
|
+
how to get the calculator to give you the figure you need? Turn to this revised
|
61
|
+
and updated edition of All the Math You''ll Ever Need, the friendliest, funniest,
|
62
|
+
and easiest workout program around.<p>In no time, you''ll have total command
|
63
|
+
of all the powerful mathematical tools needed to make numbers work for you.
|
64
|
+
In a dollars-and-cents, bottom-line world, where numbers influence everything,
|
65
|
+
none of us can afford to let our math skills atrophy. This step-by-step personal
|
66
|
+
math trainer:<ul><li>Refreshes practical math skills for your personal
|
67
|
+
and professional needs, with examples based on everyday situations.<li>Offers
|
68
|
+
straightforward techniques for working with decimals and fractions.<li>Demonstrates
|
69
|
+
simple ways to figure discounts, calculate mortgage interest rates, and work
|
70
|
+
out time, rate, and distance problems.<li>Contains no complex formulas
|
71
|
+
and no unnecessary technical terms.</ul></Content><IsLinkSuppressed>0</IsLinkSuppressed></EditorialReview></EditorialReviews></Item></Items></ItemSearchResponse>'
|
72
|
+
http_version: '1.1'
|
@@ -0,0 +1,119 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&Keywords=nirvana%20never%20mind&Operation=ItemSearch&SearchIndex=Music&Service=AWSECommerceService&Signature=wzqSMlL9eaP19nIjBP05PLIGB0oNuaYCcmEU8FxKtUc=&Timestamp=2011-11-17T12:26:39Z&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
|
+
- Thu, 17 Nov 2011 12:26:39 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" encoding="UTF-8"?><ItemSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
26
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>080H9S1WYJHXCGKT5S4J</RequestId><Arguments><Argument
|
27
|
+
Name="SearchIndex" Value="Music"></Argument><Argument Name="AssociateTag"></Argument><Argument
|
28
|
+
Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Keywords"
|
29
|
+
Value="nirvana never mind"></Argument><Argument Name="Signature" Value="wzqSMlL9eaP19nIjBP05PLIGB0oNuaYCcmEU8FxKtUc="></Argument><Argument
|
30
|
+
Name="Operation" Value="ItemSearch"></Argument><Argument Name="AWSAccessKeyId"
|
31
|
+
Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument Name="Timestamp" Value="2011-11-17T12:26:39Z"></Argument><Argument
|
32
|
+
Name="Version" Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.118665933609009</RequestProcessingTime></OperationRequest><Items><Request><IsValid>True</IsValid><ItemSearchRequest><Keywords>nirvana
|
33
|
+
never mind</Keywords><SearchIndex>Music</SearchIndex></ItemSearchRequest></Request><TotalResults>13</TotalResults><TotalPages>2</TotalPages><Item><ASIN>B0057GYOA4</ASIN><DetailPageURL>http://www.amazon.com/Nevermind-2-CD-Deluxe-Nirvana/dp/B0057GYOA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0057GYOA4</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
34
|
+
Details</Description><URL>http://www.amazon.com/Nevermind-2-CD-Deluxe-Nirvana/dp/tech-data/B0057GYOA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>Add
|
35
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB0057GYOA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>Add
|
36
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB0057GYOA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>Add
|
37
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB0057GYOA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>Tell
|
38
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B0057GYOA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>All
|
39
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B0057GYOA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>All
|
40
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B0057GYOA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Geffen
|
41
|
+
Records</Manufacturer><ProductGroup>Music</ProductGroup><Title>Nevermind [2
|
42
|
+
CD Deluxe Edition]</Title></ItemAttributes></Item><Item><ASIN>B000003TA4</ASIN><DetailPageURL>http://www.amazon.com/Nevermind-Nirvana/dp/B000003TA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000003TA4</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
43
|
+
Details</Description><URL>http://www.amazon.com/Nevermind-Nirvana/dp/tech-data/B000003TA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>Add
|
44
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB000003TA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>Add
|
45
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB000003TA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>Add
|
46
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB000003TA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>Tell
|
47
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B000003TA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>All
|
48
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B000003TA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>All
|
49
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B000003TA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Geffen
|
50
|
+
Records</Manufacturer><ProductGroup>Music</ProductGroup><Title>Nevermind</Title></ItemAttributes></Item><Item><ASIN>B0057GYO9K</ASIN><DetailPageURL>http://www.amazon.com/Nevermind-Remastered-Nirvana/dp/B0057GYO9K%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0057GYO9K</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
51
|
+
Details</Description><URL>http://www.amazon.com/Nevermind-Remastered-Nirvana/dp/tech-data/B0057GYO9K%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYO9K</URL></ItemLink><ItemLink><Description>Add
|
52
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB0057GYO9K%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYO9K</URL></ItemLink><ItemLink><Description>Add
|
53
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB0057GYO9K%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYO9K</URL></ItemLink><ItemLink><Description>Add
|
54
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB0057GYO9K%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYO9K</URL></ItemLink><ItemLink><Description>Tell
|
55
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B0057GYO9K%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYO9K</URL></ItemLink><ItemLink><Description>All
|
56
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B0057GYO9K%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYO9K</URL></ItemLink><ItemLink><Description>All
|
57
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B0057GYO9K%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYO9K</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Geffen
|
58
|
+
Records</Manufacturer><ProductGroup>Music</ProductGroup><Title>Nevermind [Remastered]</Title></ItemAttributes></Item><Item><ASIN>B005AAVFDQ</ASIN><DetailPageURL>http://www.amazon.com/Nevermind-4CD-DVD-Super-Deluxe/dp/B005AAVFDQ%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB005AAVFDQ</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
59
|
+
Details</Description><URL>http://www.amazon.com/Nevermind-4CD-DVD-Super-Deluxe/dp/tech-data/B005AAVFDQ%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005AAVFDQ</URL></ItemLink><ItemLink><Description>Add
|
60
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB005AAVFDQ%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005AAVFDQ</URL></ItemLink><ItemLink><Description>Add
|
61
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB005AAVFDQ%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005AAVFDQ</URL></ItemLink><ItemLink><Description>Add
|
62
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB005AAVFDQ%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005AAVFDQ</URL></ItemLink><ItemLink><Description>Tell
|
63
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B005AAVFDQ%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005AAVFDQ</URL></ItemLink><ItemLink><Description>All
|
64
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B005AAVFDQ%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005AAVFDQ</URL></ItemLink><ItemLink><Description>All
|
65
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B005AAVFDQ%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005AAVFDQ</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Geffen</Manufacturer><ProductGroup>Music</ProductGroup><Title>Nevermind
|
66
|
+
[4CD/DVD Super Deluxe]</Title></ItemAttributes></Item><Item><ASIN>B002JN74VY</ASIN><DetailPageURL>http://www.amazon.com/Bleach-20th-Anniversary-Deluxe-Nirvana/dp/B002JN74VY%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB002JN74VY</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
67
|
+
Details</Description><URL>http://www.amazon.com/Bleach-20th-Anniversary-Deluxe-Nirvana/dp/tech-data/B002JN74VY%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002JN74VY</URL></ItemLink><ItemLink><Description>Add
|
68
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB002JN74VY%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002JN74VY</URL></ItemLink><ItemLink><Description>Add
|
69
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB002JN74VY%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002JN74VY</URL></ItemLink><ItemLink><Description>Add
|
70
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB002JN74VY%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002JN74VY</URL></ItemLink><ItemLink><Description>Tell
|
71
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B002JN74VY%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002JN74VY</URL></ItemLink><ItemLink><Description>All
|
72
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B002JN74VY%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002JN74VY</URL></ItemLink><ItemLink><Description>All
|
73
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B002JN74VY%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002JN74VY</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Sub
|
74
|
+
Pop</Manufacturer><ProductGroup>Music</ProductGroup><Title>Bleach (20th Anniversary
|
75
|
+
Deluxe Edition)</Title></ItemAttributes></Item><Item><ASIN>B005CK76ZA</ASIN><DetailPageURL>http://www.amazon.com/Nevermind-4-LP-Deluxe-Nirvana/dp/B005CK76ZA%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB005CK76ZA</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
76
|
+
Details</Description><URL>http://www.amazon.com/Nevermind-4-LP-Deluxe-Nirvana/dp/tech-data/B005CK76ZA%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005CK76ZA</URL></ItemLink><ItemLink><Description>Add
|
77
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB005CK76ZA%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005CK76ZA</URL></ItemLink><ItemLink><Description>Add
|
78
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB005CK76ZA%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005CK76ZA</URL></ItemLink><ItemLink><Description>Add
|
79
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB005CK76ZA%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005CK76ZA</URL></ItemLink><ItemLink><Description>Tell
|
80
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B005CK76ZA%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005CK76ZA</URL></ItemLink><ItemLink><Description>All
|
81
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B005CK76ZA%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005CK76ZA</URL></ItemLink><ItemLink><Description>All
|
82
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B005CK76ZA%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005CK76ZA</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Geffen
|
83
|
+
Records</Manufacturer><ProductGroup>Music</ProductGroup><Title>Nevermind [4
|
84
|
+
LP Deluxe Edition]</Title></ItemAttributes></Item><Item><ASIN>B002UAJ0BS</ASIN><DetailPageURL>http://www.amazon.com/Nevermind-180-Gram-Vinyl-Nirvana/dp/B002UAJ0BS%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB002UAJ0BS</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
85
|
+
Details</Description><URL>http://www.amazon.com/Nevermind-180-Gram-Vinyl-Nirvana/dp/tech-data/B002UAJ0BS%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002UAJ0BS</URL></ItemLink><ItemLink><Description>Add
|
86
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB002UAJ0BS%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002UAJ0BS</URL></ItemLink><ItemLink><Description>Add
|
87
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB002UAJ0BS%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002UAJ0BS</URL></ItemLink><ItemLink><Description>Add
|
88
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB002UAJ0BS%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002UAJ0BS</URL></ItemLink><ItemLink><Description>Tell
|
89
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B002UAJ0BS%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002UAJ0BS</URL></ItemLink><ItemLink><Description>All
|
90
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B002UAJ0BS%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002UAJ0BS</URL></ItemLink><ItemLink><Description>All
|
91
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B002UAJ0BS%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB002UAJ0BS</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Warner
|
92
|
+
Bros.</Manufacturer><ProductGroup>Music</ProductGroup><Title>Nevermind (180
|
93
|
+
Gram Vinyl)</Title></ItemAttributes></Item><Item><ASIN>B0007OP1HG</ASIN><DetailPageURL>http://www.amazon.com/Classic-Albums-Nirvana-Nevermind/dp/B0007OP1HG%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0007OP1HG</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
94
|
+
Details</Description><URL>http://www.amazon.com/Classic-Albums-Nirvana-Nevermind/dp/tech-data/B0007OP1HG%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0007OP1HG</URL></ItemLink><ItemLink><Description>Add
|
95
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB0007OP1HG%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0007OP1HG</URL></ItemLink><ItemLink><Description>Add
|
96
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB0007OP1HG%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0007OP1HG</URL></ItemLink><ItemLink><Description>Add
|
97
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB0007OP1HG%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0007OP1HG</URL></ItemLink><ItemLink><Description>Tell
|
98
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B0007OP1HG%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0007OP1HG</URL></ItemLink><ItemLink><Description>All
|
99
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B0007OP1HG%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0007OP1HG</URL></ItemLink><ItemLink><Description>All
|
100
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B0007OP1HG%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0007OP1HG</URL></ItemLink></ItemLinks><ItemAttributes><Actor>Nirvana</Actor><Manufacturer>Eagle
|
101
|
+
Rock Ent</Manufacturer><ProductGroup>DVD</ProductGroup><Title>Classic Albums
|
102
|
+
- Nirvana: Nevermind</Title></ItemAttributes></Item><Item><ASIN>B0000088DC</ASIN><DetailPageURL>http://www.amazon.com/Nevermind-Vinyl-Nirvana/dp/B0000088DC%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0000088DC</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
103
|
+
Details</Description><URL>http://www.amazon.com/Nevermind-Vinyl-Nirvana/dp/tech-data/B0000088DC%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0000088DC</URL></ItemLink><ItemLink><Description>Add
|
104
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB0000088DC%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0000088DC</URL></ItemLink><ItemLink><Description>Add
|
105
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB0000088DC%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0000088DC</URL></ItemLink><ItemLink><Description>Add
|
106
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB0000088DC%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0000088DC</URL></ItemLink><ItemLink><Description>Tell
|
107
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B0000088DC%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0000088DC</URL></ItemLink><ItemLink><Description>All
|
108
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B0000088DC%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0000088DC</URL></ItemLink><ItemLink><Description>All
|
109
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B0000088DC%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0000088DC</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Universal
|
110
|
+
Import</Manufacturer><ProductGroup>Music</ProductGroup><Title>Nevermind [Vinyl]</Title></ItemAttributes></Item><Item><ASIN>B00004WOI3</ASIN><DetailPageURL>http://www.amazon.com/Nevermind-Virgin-Vinyl/dp/B00004WOI3%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB00004WOI3</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
111
|
+
Details</Description><URL>http://www.amazon.com/Nevermind-Virgin-Vinyl/dp/tech-data/B00004WOI3%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00004WOI3</URL></ItemLink><ItemLink><Description>Add
|
112
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB00004WOI3%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00004WOI3</URL></ItemLink><ItemLink><Description>Add
|
113
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB00004WOI3%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00004WOI3</URL></ItemLink><ItemLink><Description>Add
|
114
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB00004WOI3%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00004WOI3</URL></ItemLink><ItemLink><Description>Tell
|
115
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B00004WOI3%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00004WOI3</URL></ItemLink><ItemLink><Description>All
|
116
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B00004WOI3%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00004WOI3</URL></ItemLink><ItemLink><Description>All
|
117
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B00004WOI3%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00004WOI3</URL></ItemLink></ItemLinks><ItemAttributes><ProductGroup>Music</ProductGroup><Title>Nevermind
|
118
|
+
- Virgin Vinyl</Title></ItemAttributes></Item></Items></ItemSearchResponse>'
|
119
|
+
http_version: '1.1'
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&Operation=ItemSearch&SearchIndex=Music&Service=AWSECommerceService&Signature=Dt2nx3fSuW5VRVd4pgCbeXANIu0HbjgjUeF5XqbqJKY=&Timestamp=2011-11-17T12:26:40Z&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
|
+
- Thu, 17 Nov 2011 12:26:40 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" encoding="UTF-8"?><ItemSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
26
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>113M9JJ773CV8GD4PCXW</RequestId><Arguments><Argument
|
27
|
+
Name="SearchIndex" Value="Music"></Argument><Argument Name="AssociateTag"></Argument><Argument
|
28
|
+
Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Signature"
|
29
|
+
Value="Dt2nx3fSuW5VRVd4pgCbeXANIu0HbjgjUeF5XqbqJKY="></Argument><Argument Name="Operation"
|
30
|
+
Value="ItemSearch"></Argument><Argument Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument
|
31
|
+
Name="Timestamp" Value="2011-11-17T12:26:40Z"></Argument><Argument Name="Version"
|
32
|
+
Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.0243828296661377</RequestProcessingTime></OperationRequest><Items><Request><IsValid>False</IsValid><ItemSearchRequest><SearchIndex>Music</SearchIndex></ItemSearchRequest><Errors><Error><Code>AWS.MinimumParameterRequirement</Code><Message>Your
|
33
|
+
request should have atleast 1 of the following parameters: Keywords, Title,
|
34
|
+
Power, BrowseNode, Artist, Author, Actor, Director, AudienceRating, Manufacturer,
|
35
|
+
MusicLabel, Composer, Publisher, Brand, Conductor, Orchestra, TextStream, Cuisine,
|
36
|
+
City, Neighborhood.</Message></Error></Errors></Request></Items></ItemSearchResponse>'
|
37
|
+
http_version: '1.1'
|
@@ -0,0 +1,122 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&Keywords=nirvana&Operation=ItemSearch&SearchIndex=Music&Service=AWSECommerceService&Signature=Te9dnAReE30+UoEGRuIl1lIN6S+qyWiV8Cfhpy7oQZc=&Timestamp=2011-11-17T12:26:40Z&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
|
+
- Thu, 17 Nov 2011 12:26:40 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" encoding="UTF-8"?><ItemSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
26
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>0W169DG50VVM5A5M5P70</RequestId><Arguments><Argument
|
27
|
+
Name="SearchIndex" Value="Music"></Argument><Argument Name="AssociateTag"></Argument><Argument
|
28
|
+
Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Keywords"
|
29
|
+
Value="nirvana"></Argument><Argument Name="Signature" Value="Te9dnAReE30+UoEGRuIl1lIN6S+qyWiV8Cfhpy7oQZc="></Argument><Argument
|
30
|
+
Name="Operation" Value="ItemSearch"></Argument><Argument Name="AWSAccessKeyId"
|
31
|
+
Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument Name="Timestamp" Value="2011-11-17T12:26:40Z"></Argument><Argument
|
32
|
+
Name="Version" Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.125489950180054</RequestProcessingTime></OperationRequest><Items><Request><IsValid>True</IsValid><ItemSearchRequest><Keywords>nirvana</Keywords><SearchIndex>Music</SearchIndex></ItemSearchRequest></Request><TotalResults>889</TotalResults><TotalPages>89</TotalPages><Item><ASIN>B005EYP8PO</ASIN><DetailPageURL>http://www.amazon.com/Achtung-Baby-2-CD-Deluxe/dp/B005EYP8PO%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB005EYP8PO</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
33
|
+
Details</Description><URL>http://www.amazon.com/Achtung-Baby-2-CD-Deluxe/dp/tech-data/B005EYP8PO%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EYP8PO</URL></ItemLink><ItemLink><Description>Add
|
34
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB005EYP8PO%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EYP8PO</URL></ItemLink><ItemLink><Description>Add
|
35
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB005EYP8PO%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EYP8PO</URL></ItemLink><ItemLink><Description>Add
|
36
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB005EYP8PO%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EYP8PO</URL></ItemLink><ItemLink><Description>Tell
|
37
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B005EYP8PO%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EYP8PO</URL></ItemLink><ItemLink><Description>All
|
38
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B005EYP8PO%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EYP8PO</URL></ItemLink><ItemLink><Description>All
|
39
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B005EYP8PO%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EYP8PO</URL></ItemLink></ItemLinks><ItemAttributes><Artist>U2</Artist><Manufacturer>Island
|
40
|
+
Records</Manufacturer><ProductGroup>Music</ProductGroup><Title>Achtung Baby
|
41
|
+
(2 CD Deluxe Edition)</Title></ItemAttributes></Item><Item><ASIN>B0057GYOA4</ASIN><DetailPageURL>http://www.amazon.com/Nevermind-2-CD-Deluxe-Nirvana/dp/B0057GYOA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0057GYOA4</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
42
|
+
Details</Description><URL>http://www.amazon.com/Nevermind-2-CD-Deluxe-Nirvana/dp/tech-data/B0057GYOA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>Add
|
43
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB0057GYOA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>Add
|
44
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB0057GYOA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>Add
|
45
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB0057GYOA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>Tell
|
46
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B0057GYOA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>All
|
47
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B0057GYOA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink><ItemLink><Description>All
|
48
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B0057GYOA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0057GYOA4</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Geffen
|
49
|
+
Records</Manufacturer><ProductGroup>Music</ProductGroup><Title>Nevermind [2
|
50
|
+
CD Deluxe Edition]</Title></ItemAttributes></Item><Item><ASIN>B004XWMXW4</ASIN><DetailPageURL>http://www.amazon.com/2Cellos-Sulic-Hauser/dp/B004XWMXW4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB004XWMXW4</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
51
|
+
Details</Description><URL>http://www.amazon.com/2Cellos-Sulic-Hauser/dp/tech-data/B004XWMXW4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XWMXW4</URL></ItemLink><ItemLink><Description>Add
|
52
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB004XWMXW4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XWMXW4</URL></ItemLink><ItemLink><Description>Add
|
53
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB004XWMXW4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XWMXW4</URL></ItemLink><ItemLink><Description>Add
|
54
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB004XWMXW4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XWMXW4</URL></ItemLink><ItemLink><Description>Tell
|
55
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B004XWMXW4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XWMXW4</URL></ItemLink><ItemLink><Description>All
|
56
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B004XWMXW4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XWMXW4</URL></ItemLink><ItemLink><Description>All
|
57
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B004XWMXW4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XWMXW4</URL></ItemLink></ItemLinks><ItemAttributes><Artist>2Cellos
|
58
|
+
(Sulic & Hauser)</Artist><Manufacturer>SONY MASTERWORKS</Manufacturer><ProductGroup>Music</ProductGroup><Title>2Cellos</Title></ItemAttributes></Item><Item><ASIN>B004XCUEXY</ASIN><DetailPageURL>http://www.amazon.com/Foo-Fighters-Back-Forth-Blu-Ray/dp/B004XCUEXY%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB004XCUEXY</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
59
|
+
Details</Description><URL>http://www.amazon.com/Foo-Fighters-Back-Forth-Blu-Ray/dp/tech-data/B004XCUEXY%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XCUEXY</URL></ItemLink><ItemLink><Description>Add
|
60
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB004XCUEXY%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XCUEXY</URL></ItemLink><ItemLink><Description>Add
|
61
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB004XCUEXY%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XCUEXY</URL></ItemLink><ItemLink><Description>Add
|
62
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB004XCUEXY%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XCUEXY</URL></ItemLink><ItemLink><Description>Tell
|
63
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B004XCUEXY%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XCUEXY</URL></ItemLink><ItemLink><Description>All
|
64
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B004XCUEXY%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XCUEXY</URL></ItemLink><ItemLink><Description>All
|
65
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B004XCUEXY%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB004XCUEXY</URL></ItemLink></ItemLinks><ItemAttributes><Actor>Foo
|
66
|
+
FIghters</Actor><Director>James Moll</Director><Manufacturer>RCA</Manufacturer><ProductGroup>DVD</ProductGroup><Title>Foo
|
67
|
+
Fighters: Back And Forth [Blu-Ray]</Title></ItemAttributes></Item><Item><ASIN>B005EXA8XC</ASIN><DetailPageURL>http://www.amazon.com/Nirvana-Live-at-Paramount/dp/B005EXA8XC%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB005EXA8XC</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
68
|
+
Details</Description><URL>http://www.amazon.com/Nirvana-Live-at-Paramount/dp/tech-data/B005EXA8XC%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EXA8XC</URL></ItemLink><ItemLink><Description>Add
|
69
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB005EXA8XC%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EXA8XC</URL></ItemLink><ItemLink><Description>Add
|
70
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB005EXA8XC%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EXA8XC</URL></ItemLink><ItemLink><Description>Add
|
71
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB005EXA8XC%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EXA8XC</URL></ItemLink><ItemLink><Description>Tell
|
72
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B005EXA8XC%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EXA8XC</URL></ItemLink><ItemLink><Description>All
|
73
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B005EXA8XC%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EXA8XC</URL></ItemLink><ItemLink><Description>All
|
74
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B005EXA8XC%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB005EXA8XC</URL></ItemLink></ItemLinks><ItemAttributes><Actor>Nirvana</Actor><Director>Nirvana</Director><Manufacturer>Geffen
|
75
|
+
Records</Manufacturer><ProductGroup>DVD</ProductGroup><Title>Nirvana: Live at
|
76
|
+
the Paramount</Title></ItemAttributes></Item><Item><ASIN>B003O86MY8</ASIN><DetailPageURL>http://www.amazon.com/Rock-Symphonies-David-Garrett/dp/B003O86MY8%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB003O86MY8</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
77
|
+
Details</Description><URL>http://www.amazon.com/Rock-Symphonies-David-Garrett/dp/tech-data/B003O86MY8%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB003O86MY8</URL></ItemLink><ItemLink><Description>Add
|
78
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB003O86MY8%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB003O86MY8</URL></ItemLink><ItemLink><Description>Add
|
79
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB003O86MY8%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB003O86MY8</URL></ItemLink><ItemLink><Description>Add
|
80
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB003O86MY8%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB003O86MY8</URL></ItemLink><ItemLink><Description>Tell
|
81
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B003O86MY8%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB003O86MY8</URL></ItemLink><ItemLink><Description>All
|
82
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B003O86MY8%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB003O86MY8</URL></ItemLink><ItemLink><Description>All
|
83
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B003O86MY8%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB003O86MY8</URL></ItemLink></ItemLinks><ItemAttributes><Artist>David
|
84
|
+
Garrett</Artist><Manufacturer>Decca</Manufacturer><ProductGroup>Music</ProductGroup><Title>Rock
|
85
|
+
Symphonies</Title></ItemAttributes></Item><Item><ASIN>B000003TA4</ASIN><DetailPageURL>http://www.amazon.com/Nevermind-Nirvana/dp/B000003TA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000003TA4</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
86
|
+
Details</Description><URL>http://www.amazon.com/Nevermind-Nirvana/dp/tech-data/B000003TA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>Add
|
87
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB000003TA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>Add
|
88
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB000003TA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>Add
|
89
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB000003TA4%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>Tell
|
90
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B000003TA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>All
|
91
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B000003TA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink><ItemLink><Description>All
|
92
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B000003TA4%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TA4</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Geffen
|
93
|
+
Records</Manufacturer><ProductGroup>Music</ProductGroup><Title>Nevermind</Title></ItemAttributes></Item><Item><ASIN>B000003TB9</ASIN><DetailPageURL>http://www.amazon.com/MTV-Unplugged-New-York-Nirvana/dp/B000003TB9%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000003TB9</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
94
|
+
Details</Description><URL>http://www.amazon.com/MTV-Unplugged-New-York-Nirvana/dp/tech-data/B000003TB9%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TB9</URL></ItemLink><ItemLink><Description>Add
|
95
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB000003TB9%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TB9</URL></ItemLink><ItemLink><Description>Add
|
96
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB000003TB9%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TB9</URL></ItemLink><ItemLink><Description>Add
|
97
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB000003TB9%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TB9</URL></ItemLink><ItemLink><Description>Tell
|
98
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B000003TB9%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TB9</URL></ItemLink><ItemLink><Description>All
|
99
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B000003TB9%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TB9</URL></ItemLink><ItemLink><Description>All
|
100
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B000003TB9%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TB9</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Geffen
|
101
|
+
Records</Manufacturer><ProductGroup>Music</ProductGroup><Title>MTV Unplugged
|
102
|
+
in New York</Title></ItemAttributes></Item><Item><ASIN>B000WQW988</ASIN><DetailPageURL>http://www.amazon.com/Nirvana-Unplugged-New-York/dp/B000WQW988%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000WQW988</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
103
|
+
Details</Description><URL>http://www.amazon.com/Nirvana-Unplugged-New-York/dp/tech-data/B000WQW988%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000WQW988</URL></ItemLink><ItemLink><Description>Add
|
104
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB000WQW988%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000WQW988</URL></ItemLink><ItemLink><Description>Add
|
105
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB000WQW988%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000WQW988</URL></ItemLink><ItemLink><Description>Add
|
106
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB000WQW988%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000WQW988</URL></ItemLink><ItemLink><Description>Tell
|
107
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B000WQW988%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000WQW988</URL></ItemLink><ItemLink><Description>All
|
108
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B000WQW988%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000WQW988</URL></ItemLink><ItemLink><Description>All
|
109
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B000WQW988%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000WQW988</URL></ItemLink></ItemLinks><ItemAttributes><Actor>Nirvana</Actor><Actor>David
|
110
|
+
Grohl</Actor><Actor>Kurt Cobain</Actor><Actor>Krist Novoselic</Actor><Actor>Cris
|
111
|
+
Kirkwood</Actor><Director>Beth McCarthy-Miller</Director><Manufacturer>Geffen
|
112
|
+
Records</Manufacturer><ProductGroup>DVD</ProductGroup><Title>Nirvana: Unplugged
|
113
|
+
In New York</Title></ItemAttributes></Item><Item><ASIN>B000003TAR</ASIN><DetailPageURL>http://www.amazon.com/Utero-Nirvana/dp/B000003TAR%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000003TAR</DetailPageURL><ItemLinks><ItemLink><Description>Technical
|
114
|
+
Details</Description><URL>http://www.amazon.com/Utero-Nirvana/dp/tech-data/B000003TAR%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TAR</URL></ItemLink><ItemLink><Description>Add
|
115
|
+
To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB000003TAR%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TAR</URL></ItemLink><ItemLink><Description>Add
|
116
|
+
To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB000003TAR%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TAR</URL></ItemLink><ItemLink><Description>Add
|
117
|
+
To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB000003TAR%26SubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TAR</URL></ItemLink><ItemLink><Description>Tell
|
118
|
+
A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/B000003TAR%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TAR</URL></ItemLink><ItemLink><Description>All
|
119
|
+
Customer Reviews</Description><URL>http://www.amazon.com/review/product/B000003TAR%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TAR</URL></ItemLink><ItemLink><Description>All
|
120
|
+
Offers</Description><URL>http://www.amazon.com/gp/offer-listing/B000003TAR%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000003TAR</URL></ItemLink></ItemLinks><ItemAttributes><Artist>Nirvana</Artist><Manufacturer>Geffen
|
121
|
+
Records</Manufacturer><ProductGroup>Music</ProductGroup><Title>In Utero</Title></ItemAttributes></Item></Items></ItemSearchResponse>'
|
122
|
+
http_version: '1.1'
|
data/spec/config_spec.rb
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module ASIN
|
4
|
+
describe ASIN do
|
5
|
+
context "configuration" do
|
6
|
+
it "should fail without secret and key" do
|
7
|
+
lambda { @helper.lookup 'bla' }.should raise_error(RuntimeError, "you have to configure ASIN: 'configure :secret => 'your-secret', :key => 'your-key'")
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should fail with configuration key set to nil" do
|
11
|
+
@helper.configure :secret => @secret, :key => @key, :associate_tag => nil
|
12
|
+
lambda { @helper.lookup 'bla' }.should raise_error(RuntimeError, "nil is not a valid value for associate_tag")
|
13
|
+
end
|
14
|
+
|
15
|
+
it "should fail with wrong configuration key" do
|
16
|
+
lambda { @helper.configure :wrong => 'key' }.should raise_error(NoMethodError)
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should not override the configuration" do
|
20
|
+
config = @helper.configure :key => 'wont get overridden'
|
21
|
+
config.key.should_not be_nil
|
22
|
+
|
23
|
+
config = @helper.configure :secret => 'is also set'
|
24
|
+
config.key.should_not be_nil
|
25
|
+
config.secret.should_not be_nil
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should work with a configuration block" do
|
29
|
+
conf = ASIN::Configuration.configure do |config|
|
30
|
+
config.key = 'bla'
|
31
|
+
end
|
32
|
+
conf.key.should eql('bla')
|
33
|
+
end
|
34
|
+
|
35
|
+
it "should read configuration from yml" do
|
36
|
+
config = ASIN::Configuration.configure :yaml => 'spec/asin.yml'
|
37
|
+
config.secret.should eql('secret_yml')
|
38
|
+
config.key.should eql('key_yml')
|
39
|
+
config.host.should eql('host_yml')
|
40
|
+
config.logger.should eql('logger_yml')
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should read configuration from yml with block" do
|
44
|
+
conf = ASIN::Configuration.configure :yaml => 'spec/asin.yml' do |config, yml|
|
45
|
+
config.secret = nil
|
46
|
+
config.key = yml['secret']
|
47
|
+
end
|
48
|
+
conf.secret.should be_nil
|
49
|
+
conf.key.should eql('secret_yml')
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/spec/search_spec.rb
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module ASIN
|
4
|
+
describe ASIN do
|
5
|
+
context "lookup and search" do
|
6
|
+
before do
|
7
|
+
@helper.configure :secret => @secret, :key => @key
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should lookup a book", :vcr do
|
11
|
+
items = @helper.lookup(ANY_ASIN)
|
12
|
+
items.first.title.should =~ /Learn Objective/
|
13
|
+
end
|
14
|
+
|
15
|
+
it "should have metadata", :vcr do
|
16
|
+
items = @helper.lookup(ANY_ASIN, :ResponseGroup => :Medium)
|
17
|
+
item = items.first
|
18
|
+
item.asin.should eql(ANY_ASIN)
|
19
|
+
item.title.should =~ /Learn Objective/
|
20
|
+
item.amount.should eql(3999)
|
21
|
+
item.details_url.should eql('http://www.amazon.com/Learn-Objective-C-Mac-Mark-Dalrymple/dp/1430218150%3FSubscriptionId%3DAKIAJFA5X7RTOKFNPVZQ%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1430218150')
|
22
|
+
item.image_url.should eql('http://ecx.images-amazon.com/images/I/41kq5bDvnUL._SL500_.jpg')
|
23
|
+
item.review.should =~ /Take your coding skills to the next level/
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should lookup multiple response groups", :vcr do
|
27
|
+
items = @helper.lookup(ANY_ASIN, :ResponseGroup => [:Small, :AlternateVersions])
|
28
|
+
|
29
|
+
item = items.first
|
30
|
+
item.asin.should eql(ANY_ASIN)
|
31
|
+
item.title.should =~ /Learn Objective/
|
32
|
+
item.raw.include?("AlternateVersions").should eql(true)
|
33
|
+
item.raw["AlternateVersions"].length.should eql(1)
|
34
|
+
item.raw["AlternateVersions"]["AlternateVersion"]["Binding"].should eql("Kindle Edition")
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should lookup multiple books", :vcr do
|
38
|
+
items = @helper.lookup(ANY_ASIN, ANY_OTHER_ASIN)
|
39
|
+
|
40
|
+
items.last.title.should =~ /Learn Objective/
|
41
|
+
items.first.title.should =~ /Beginning iPhone Development/
|
42
|
+
end
|
43
|
+
|
44
|
+
it "should return a custom item class", :vcr do
|
45
|
+
module TEST
|
46
|
+
class TestItem
|
47
|
+
attr_accessor :testo
|
48
|
+
def initialize(hash)
|
49
|
+
@testo = hash
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
@helper.configure :item_type => TEST::TestItem
|
54
|
+
@helper.lookup(ANY_ASIN).first.testo.should_not be_nil
|
55
|
+
end
|
56
|
+
|
57
|
+
it "should return a raw value", :vcr do
|
58
|
+
@helper.configure :item_type => :raw
|
59
|
+
@helper.lookup(ANY_ASIN).first['ItemAttributes']['Title'].should_not be_nil
|
60
|
+
end
|
61
|
+
|
62
|
+
it "should return a mash value", :vcr do
|
63
|
+
@helper.configure :item_type => :mash
|
64
|
+
@helper.lookup(ANY_ASIN).first.ItemAttributes.Title.should_not be_nil
|
65
|
+
end
|
66
|
+
|
67
|
+
it "should return a rash value", :vcr do
|
68
|
+
@helper.configure :item_type => :rash
|
69
|
+
@helper.lookup(ANY_ASIN).first.item_attributes.title.should_not be_nil
|
70
|
+
end
|
71
|
+
|
72
|
+
it "should search_keywords and handle a single result", :vcr do
|
73
|
+
items = @helper.search_keywords('0471317519')
|
74
|
+
items.first.title.should =~ /A Self-Teaching Guide/
|
75
|
+
end
|
76
|
+
|
77
|
+
it "should search_keywords a book with fulltext", :vcr do
|
78
|
+
items = @helper.search_keywords 'Learn', 'Objective-C'
|
79
|
+
items.should have(10).things
|
80
|
+
items.first.title.should =~ /Programming in Objective-C/
|
81
|
+
end
|
82
|
+
|
83
|
+
it "should search_keywords never mind music", :vcr do
|
84
|
+
items = @helper.search_keywords 'nirvana', 'never mind', :SearchIndex => :Music
|
85
|
+
items.should have(10).things
|
86
|
+
items.map(&:title).join.should =~ /Nevermind/
|
87
|
+
end
|
88
|
+
|
89
|
+
it "should search music", :vcr do
|
90
|
+
items = @helper.search :SearchIndex => :Music
|
91
|
+
items.should have(0).things
|
92
|
+
end
|
93
|
+
|
94
|
+
it "should search never mind music", :vcr do
|
95
|
+
items = @helper.search :Keywords => 'nirvana', :SearchIndex => :Music
|
96
|
+
items.should have(10).things
|
97
|
+
items.map(&:title).join.should =~ /Nevermind/
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|