asin 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/.travis.yml +0 -4
  2. data/CHANGELOG.md +10 -0
  3. data/Gemfile.lock +30 -40
  4. data/README.md +1 -7
  5. data/asin.gemspec +8 -11
  6. data/lib/asin/client.rb +0 -3
  7. data/lib/asin/configuration.rb +3 -3
  8. data/lib/asin/version.rb +1 -1
  9. data/rakefile.rb +2 -2
  10. data/spec/cassettes/asin/browse_node_should_lookup_a_browse_node.yml +34 -28
  11. data/spec/cassettes/asin/cart_should_create_a_cart.yml +34 -27
  12. data/spec/cassettes/asin/cart_with_an_existing_cart_should_add_items_to_a_cart.yml +93 -0
  13. data/spec/cassettes/asin/cart_with_an_existing_cart_should_clear_a_cart.yml +90 -0
  14. data/spec/cassettes/asin/cart_with_an_existing_cart_should_get_a_cart.yml +92 -0
  15. data/spec/cassettes/asin/cart_with_an_existing_cart_should_update_a_cart.yml +94 -0
  16. data/spec/cassettes/asin/lookup_and_search_should_have_metadata.yml +81 -74
  17. data/spec/cassettes/asin/lookup_and_search_should_lookup_a_book.yml +81 -74
  18. data/spec/cassettes/asin/lookup_and_search_should_lookup_multiple_books.yml +132 -124
  19. data/spec/cassettes/asin/lookup_and_search_should_lookup_multiple_response_groups.yml +38 -32
  20. data/spec/cassettes/asin/lookup_and_search_should_return_a_custom_item_class.yml +81 -74
  21. data/spec/cassettes/asin/lookup_and_search_should_return_a_mash_value.yml +81 -74
  22. data/spec/cassettes/asin/lookup_and_search_should_return_a_raw_value.yml +81 -74
  23. data/spec/cassettes/asin/lookup_and_search_should_search_keywords_a_book_with_fulltext.yml +586 -571
  24. data/spec/cassettes/asin/lookup_and_search_should_search_keywords_and_handle_a_single_result.yml +70 -64
  25. data/spec/cassettes/asin/lookup_and_search_should_search_keywords_never_mind_music.yml +114 -108
  26. data/spec/cassettes/asin/lookup_and_search_should_search_music.yml +29 -23
  27. data/spec/cassettes/asin/lookup_and_search_should_search_never_mind_music.yml +114 -108
  28. data/spec/cassettes/asin/similarity_should_find_similar_items.yml +626 -614
  29. data/spec/cassettes/asin/similarity_should_find_similar_items_for_multiple_asins_and_different_config.yml +66 -69
  30. data/spec/{browse_node_spec.rb → lib/browse_node_spec.rb} +0 -0
  31. data/spec/{cart_spec.rb → lib/cart_spec.rb} +0 -0
  32. data/spec/{config_spec.rb → lib/config_spec.rb} +1 -1
  33. data/spec/{search_spec.rb → lib/search_spec.rb} +0 -5
  34. data/spec/{similarity_spec.rb → lib/similarity_spec.rb} +1 -1
  35. data/spec/spec_helper.rb +2 -3
  36. metadata +38 -70
  37. data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_add_items_to_a_cart.yml +0 -84
  38. data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_clear_a_cart.yml +0 -81
  39. data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_get_a_cart.yml +0 -82
  40. data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_update_a_cart.yml +0 -85
  41. data/spec/cassettes/asin/lookup_and_search_should_return_a_rash_value.yml +0 -90
@@ -1,85 +1,82 @@
1
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=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&ItemId=1430218150,1430216263&Operation=SimilarityLookup&ResponseGroup=Small&Service=AWSECommerceService&Signature=eyrXTLjIPe3tndamahgTG2HWVjeg3vblhDsvf7Heqlo=&SimilarityType=Intersection&Timestamp=2012-09-22T13:41:53Z&Version=2011-08-01
6
- body:
7
- headers:
8
- response: !ruby/struct:VCR::Response
9
- status: !ruby/struct:VCR::ResponseStatus
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://webservices.amazon.com/onca/xml?AWSAccessKeyId=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&ItemId=1430218150,1430216263&Operation=SimilarityLookup&ResponseGroup=Small&Service=AWSECommerceService&Signature=R2PnbDy7Hsb0CB79z1FBxnldSrttqpl0jbPK8E99++0=&SimilarityType=Intersection&Timestamp=2012-09-25T20:04:58Z&Version=2011-08-01
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
10
12
  code: 200
11
13
  message: !binary |-
12
14
  T0s=
13
15
  headers:
14
- !binary "ZGF0ZQ==":
16
+ !binary "RGF0ZQ==":
15
17
  - !binary |-
16
- U2F0LCAyMiBTZXAgMjAxMiAxMzo0MTo0OSBHTVQ=
17
- !binary "c2VydmVy":
18
+ VHVlLCAyNSBTZXAgMjAxMiAyMDowNDo1OSBHTVQ=
19
+ !binary "U2VydmVy":
18
20
  - !binary |-
19
21
  U2VydmVy
20
- !binary "Y29udGVudC10eXBl":
22
+ !binary "Q29udGVudC1UeXBl":
21
23
  - !binary |-
22
24
  dGV4dC94bWw7Y2hhcnNldD1VVEYtOA==
23
- !binary "dmFyeQ==":
25
+ !binary "VmFyeQ==":
24
26
  - !binary |-
25
27
  QWNjZXB0LUVuY29kaW5nLFVzZXItQWdlbnQ=
26
- !binary "bm5jb2VjdGlvbg==":
28
+ !binary "Tm5jb2VjdGlvbg==":
27
29
  - !binary |-
28
30
  Y2xvc2U=
29
- !binary "dHJhbnNmZXItZW5jb2Rpbmc=":
31
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
30
32
  - !binary |-
31
33
  Y2h1bmtlZA==
32
- body: ! '<?xml version="1.0" ?><SimilarityLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><RequestId>3dad69f9-6456-4e26-b02b-6044c4a30488</RequestId><Arguments><Argument
33
- Name="SimilarityType" Value="Intersection"></Argument><Argument Name="Operation"
34
- Value="SimilarityLookup"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
35
- Name="Signature" Value="eyrXTLjIPe3tndamahgTG2HWVjeg3vblhDsvf7Heqlo="></Argument><Argument
36
- Name="AssociateTag" Value="phoet-20"></Argument><Argument Name="Version" Value="2011-08-01"></Argument><Argument
37
- Name="ItemId" Value="1430218150,1430216263"></Argument><Argument Name="AWSAccessKeyId"
38
- Value="AKIAIBNLWSCV5OXMPD6A"></Argument><Argument Name="Timestamp" Value="2012-09-22T13:41:53Z"></Argument><Argument
39
- Name="ResponseGroup" Value="Small"></Argument></Arguments><RequestProcessingTime>0.0794200000000000</RequestProcessingTime></OperationRequest><Items><Request><IsValid>True</IsValid><SimilarityLookupRequest><ItemId>1430218150</ItemId><ItemId>1430216263</ItemId><ResponseGroup>Small</ResponseGroup><SimilarityType>Intersection</SimilarityType></SimilarityLookupRequest></Request><Item><ASIN>1430236051</ASIN><DetailPageURL>http://www.amazon.com/Beginning-iOS-Development-Exploring-SDK/dp/1430236051%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1430236051</DetailPageURL><ItemLinks><ItemLink><Description>Technical
40
- Details</Description><URL>http://www.amazon.com/Beginning-iOS-Development-Exploring-SDK/dp/tech-data/1430236051%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>Add
41
- To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D1430236051%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>Add
42
- To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D1430236051%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>Add
43
- To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D1430236051%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>Tell
44
- A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/1430236051%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>All
45
- Customer Reviews</Description><URL>http://www.amazon.com/review/product/1430236051%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>All
46
- Offers</Description><URL>http://www.amazon.com/gp/offer-listing/1430236051%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink></ItemLinks><ItemAttributes><Author>David
47
- Mark</Author><Author>Jack Nutting</Author><Author>Jeff LaMarche</Author><Manufacturer>Apress</Manufacturer><ProductGroup>Book</ProductGroup><Title>Beginning
48
- iOS 5 Development: Exploring the iOS SDK</Title></ItemAttributes></Item><Item><ASIN>0321811909</ASIN><DetailPageURL>http://www.amazon.com/Programming-Objective-C-Edition-Developers-Library/dp/0321811909%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0321811909</DetailPageURL><ItemLinks><ItemLink><Description>Technical
49
- Details</Description><URL>http://www.amazon.com/Programming-Objective-C-Edition-Developers-Library/dp/tech-data/0321811909%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>Add
50
- To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D0321811909%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>Add
51
- To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D0321811909%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>Add
52
- To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D0321811909%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>Tell
53
- A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/0321811909%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>All
54
- Customer Reviews</Description><URL>http://www.amazon.com/review/product/0321811909%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>All
55
- Offers</Description><URL>http://www.amazon.com/gp/offer-listing/0321811909%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink></ItemLinks><ItemAttributes><Author>Stephen
56
- G. Kochan</Author><Manufacturer>Addison-Wesley Professional</Manufacturer><ProductGroup>Book</ProductGroup><Title>Programming
57
- in Objective-C (4th Edition) (Developer''s Library)</Title></ItemAttributes></Item><Item><ASIN>143023024X</ASIN><DetailPageURL>http://www.amazon.com/Beginning-iPhone-Development-Exploring-iOS/dp/143023024X%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D143023024X</DetailPageURL><ItemLinks><ItemLink><Description>Technical
58
- Details</Description><URL>http://www.amazon.com/Beginning-iPhone-Development-Exploring-iOS/dp/tech-data/143023024X%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>Add
59
- To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D143023024X%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>Add
60
- To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D143023024X%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>Add
61
- To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D143023024X%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>Tell
62
- A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/143023024X%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>All
63
- Customer Reviews</Description><URL>http://www.amazon.com/review/product/143023024X%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>All
64
- Offers</Description><URL>http://www.amazon.com/gp/offer-listing/143023024X%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink></ItemLinks><ItemAttributes><Author>David
65
- Mark</Author><Author>Jack Nutting</Author><Author>Jeff LaMarche</Author><Manufacturer>Apress</Manufacturer><ProductGroup>Book</ProductGroup><Title>Beginning
66
- iPhone 4 Development: Exploring the iOS SDK</Title></ItemAttributes></Item><Item><ASIN>0321711394</ASIN><DetailPageURL>http://www.amazon.com/Programming-Objective-C-Edition-Developers-Library/dp/0321711394%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0321711394</DetailPageURL><ItemLinks><ItemLink><Description>Technical
67
- Details</Description><URL>http://www.amazon.com/Programming-Objective-C-Edition-Developers-Library/dp/tech-data/0321711394%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>Add
68
- To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D0321711394%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>Add
69
- To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D0321711394%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>Add
70
- To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D0321711394%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>Tell
71
- A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/0321711394%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>All
72
- Customer Reviews</Description><URL>http://www.amazon.com/review/product/0321711394%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>All
73
- Offers</Description><URL>http://www.amazon.com/gp/offer-listing/0321711394%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink></ItemLinks><ItemAttributes><Author>Stephen
74
- G. Kochan</Author><Manufacturer>Addison-Wesley Professional</Manufacturer><ProductGroup>Book</ProductGroup><Title>Programming
75
- in Objective-C, Third Edition (Developer''s Library)</Title></ItemAttributes></Item><Item><ASIN>1430218592</ASIN><DetailPageURL>http://www.amazon.com/Learn-Cocoa-Mac-Series/dp/1430218592%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1430218592</DetailPageURL><ItemLinks><ItemLink><Description>Technical
76
- Details</Description><URL>http://www.amazon.com/Learn-Cocoa-Mac-Series/dp/tech-data/1430218592%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430218592</URL></ItemLink><ItemLink><Description>Add
77
- To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D1430218592%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430218592</URL></ItemLink><ItemLink><Description>Add
78
- To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D1430218592%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430218592</URL></ItemLink><ItemLink><Description>Add
79
- To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D1430218592%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430218592</URL></ItemLink><ItemLink><Description>Tell
80
- A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/1430218592%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430218592</URL></ItemLink><ItemLink><Description>All
81
- Customer Reviews</Description><URL>http://www.amazon.com/review/product/1430218592%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430218592</URL></ItemLink><ItemLink><Description>All
82
- Offers</Description><URL>http://www.amazon.com/gp/offer-listing/1430218592%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430218592</URL></ItemLink></ItemLinks><ItemAttributes><Author>Jack
83
- Nutting</Author><Author>Dave Mark</Author><Author>Jeff LaMarche</Author><Manufacturer>Apress</Manufacturer><ProductGroup>Book</ProductGroup><Title>Learn
84
- Cocoa on the Mac (Learn Series)</Title></ItemAttributes></Item></Items></SimilarityLookupResponse>'
85
- http_version: '1.1'
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ! '<?xml version="1.0" ?><SimilarityLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><RequestId>5ad506f3-5a6a-42bf-907c-60f23a5dba9e</RequestId><Arguments><Argument
37
+ Name="SimilarityType" Value="Intersection"></Argument><Argument Name="Operation"
38
+ Value="SimilarityLookup"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
39
+ Name="Signature" Value="R2PnbDy7Hsb0CB79z1FBxnldSrttqpl0jbPK8E99++0="></Argument><Argument
40
+ Name="AssociateTag" Value="phoet-20"></Argument><Argument Name="Version" Value="2011-08-01"></Argument><Argument
41
+ Name="ItemId" Value="1430218150,1430216263"></Argument><Argument Name="AWSAccessKeyId"
42
+ Value="AKIAIBNLWSCV5OXMPD6A"></Argument><Argument Name="Timestamp" Value="2012-09-25T20:04:58Z"></Argument><Argument
43
+ Name="ResponseGroup" Value="Small"></Argument></Arguments><RequestProcessingTime>0.0708440000000000</RequestProcessingTime></OperationRequest><Items><Request><IsValid>True</IsValid><SimilarityLookupRequest><ItemId>1430218150</ItemId><ItemId>1430216263</ItemId><ResponseGroup>Small</ResponseGroup><SimilarityType>Intersection</SimilarityType></SimilarityLookupRequest></Request><Item><ASIN>1430236051</ASIN><DetailPageURL>http://www.amazon.com/Beginning-iOS-Development-Exploring-SDK/dp/1430236051%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1430236051</DetailPageURL><ItemLinks><ItemLink><Description>Technical
44
+ Details</Description><URL>http://www.amazon.com/Beginning-iOS-Development-Exploring-SDK/dp/tech-data/1430236051%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>Add
45
+ To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D1430236051%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>Add
46
+ To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D1430236051%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>Add
47
+ To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D1430236051%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>Tell
48
+ A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/1430236051%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>All
49
+ Customer Reviews</Description><URL>http://www.amazon.com/review/product/1430236051%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink><ItemLink><Description>All
50
+ Offers</Description><URL>http://www.amazon.com/gp/offer-listing/1430236051%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1430236051</URL></ItemLink></ItemLinks><ItemAttributes><Author>David
51
+ Mark</Author><Author>Jack Nutting</Author><Author>Jeff LaMarche</Author><Manufacturer>Apress</Manufacturer><ProductGroup>Book</ProductGroup><Title>Beginning
52
+ iOS 5 Development: Exploring the iOS SDK</Title></ItemAttributes></Item><Item><ASIN>0321811909</ASIN><DetailPageURL>http://www.amazon.com/Programming-Objective-C-Edition-Developers-Library/dp/0321811909%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0321811909</DetailPageURL><ItemLinks><ItemLink><Description>Technical
53
+ Details</Description><URL>http://www.amazon.com/Programming-Objective-C-Edition-Developers-Library/dp/tech-data/0321811909%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>Add
54
+ To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D0321811909%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>Add
55
+ To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D0321811909%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>Add
56
+ To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D0321811909%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>Tell
57
+ A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/0321811909%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>All
58
+ Customer Reviews</Description><URL>http://www.amazon.com/review/product/0321811909%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink><ItemLink><Description>All
59
+ Offers</Description><URL>http://www.amazon.com/gp/offer-listing/0321811909%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321811909</URL></ItemLink></ItemLinks><ItemAttributes><Author>Stephen
60
+ G. Kochan</Author><Manufacturer>Addison-Wesley Professional</Manufacturer><ProductGroup>Book</ProductGroup><Title>Programming
61
+ in Objective-C (4th Edition) (Developer''s Library)</Title></ItemAttributes></Item><Item><ASIN>143023024X</ASIN><DetailPageURL>http://www.amazon.com/Beginning-iPhone-Development-Exploring-iOS/dp/143023024X%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D143023024X</DetailPageURL><ItemLinks><ItemLink><Description>Technical
62
+ Details</Description><URL>http://www.amazon.com/Beginning-iPhone-Development-Exploring-iOS/dp/tech-data/143023024X%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>Add
63
+ To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D143023024X%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>Add
64
+ To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D143023024X%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>Add
65
+ To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D143023024X%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>Tell
66
+ A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/143023024X%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>All
67
+ Customer Reviews</Description><URL>http://www.amazon.com/review/product/143023024X%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink><ItemLink><Description>All
68
+ Offers</Description><URL>http://www.amazon.com/gp/offer-listing/143023024X%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D143023024X</URL></ItemLink></ItemLinks><ItemAttributes><Author>David
69
+ Mark</Author><Author>Jack Nutting</Author><Author>Jeff LaMarche</Author><Manufacturer>Apress</Manufacturer><ProductGroup>Book</ProductGroup><Title>Beginning
70
+ iPhone 4 Development: Exploring the iOS SDK</Title></ItemAttributes></Item><Item><ASIN>0321711394</ASIN><DetailPageURL>http://www.amazon.com/Programming-Objective-C-Edition-Developers-Library/dp/0321711394%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0321711394</DetailPageURL><ItemLinks><ItemLink><Description>Technical
71
+ Details</Description><URL>http://www.amazon.com/Programming-Objective-C-Edition-Developers-Library/dp/tech-data/0321711394%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>Add
72
+ To Baby Registry</Description><URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D0321711394%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>Add
73
+ To Wedding Registry</Description><URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D0321711394%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>Add
74
+ To Wishlist</Description><URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D0321711394%26SubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>Tell
75
+ A Friend</Description><URL>http://www.amazon.com/gp/pdp/taf/0321711394%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>All
76
+ Customer Reviews</Description><URL>http://www.amazon.com/review/product/0321711394%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink><ItemLink><Description>All
77
+ Offers</Description><URL>http://www.amazon.com/gp/offer-listing/0321711394%3FSubscriptionId%3DAKIAIBNLWSCV5OXMPD6A%26tag%3Dphoet-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3D0321711394</URL></ItemLink></ItemLinks><ItemAttributes><Author>Stephen
78
+ G. Kochan</Author><Manufacturer>Addison-Wesley Professional</Manufacturer><ProductGroup>Book</ProductGroup><Title>Programming
79
+ in Objective-C, Third Edition (Developer''s Library)</Title></ItemAttributes></Item></Items></SimilarityLookupResponse>'
80
+ http_version:
81
+ recorded_at: Tue, 25 Sep 2012 20:04:58 GMT
82
+ recorded_with: VCR 2.2.5
File without changes
@@ -4,7 +4,7 @@ module ASIN
4
4
  describe ASIN do
5
5
  context "configuration" do
6
6
  it "should fail without secret and key" do
7
- expect { @helper.lookup 'bla' }.should raise_error(ArgumentError, "you are missing mandatory configuration options. please set [:secret, :key, :associate_tag]")
7
+ expect { @helper.lookup 'bla' }.to raise_error(ArgumentError, "you are missing mandatory configuration options. please set [:secret, :key, :associate_tag]")
8
8
  end
9
9
 
10
10
  it "should fail with wrong configuration key" do
@@ -62,11 +62,6 @@ module ASIN
62
62
  @helper.lookup(ANY_ASIN).first.ItemAttributes.Title.should_not be_nil
63
63
  end
64
64
 
65
- it "should return a rash value", :vcr do
66
- @helper.configure :item_type => :rash
67
- @helper.lookup(ANY_ASIN).first.item_attributes.title.should_not be_nil
68
- end
69
-
70
65
  it "should search_keywords and handle a single result", :vcr do
71
66
  items = @helper.search_keywords('0471317519')
72
67
  items.first.title.should =~ /A Self-Teaching Guide/
@@ -16,7 +16,7 @@ module ASIN
16
16
 
17
17
  it "should find similar items for multiple asins and different config", :vcr do
18
18
  items = @helper.similar(ANY_ASIN, ANY_OTHER_ASIN, :SimilarityType => :Intersection, :ResponseGroup => :Small)
19
- items.should have(5).elements
19
+ items.should have(4).elements
20
20
  items.first.title.should =~ /Beginning iOS 5 Development/
21
21
  end
22
22
  end
@@ -13,10 +13,9 @@ require 'httpclient'
13
13
  require 'vcr'
14
14
  require 'httpi'
15
15
 
16
- VCR.config do |c|
16
+ VCR.configure do |c|
17
17
  c.cassette_library_dir = 'spec/cassettes'
18
- c.stub_with :webmock
19
- # c.default_cassette_options = { :record => :new_episodes }
18
+ c.hook_into :webmock
20
19
  end
21
20
 
22
21
  ANY_ASIN = '1430218150'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,14 +9,14 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-22 00:00:00.000000000 Z
12
+ date: 2012-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: crack
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0.3'
22
22
  type: :runtime
@@ -24,7 +24,7 @@ dependencies:
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ~>
27
+ - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0.3'
30
30
  - !ruby/object:Gem::Dependency
@@ -32,7 +32,7 @@ dependencies:
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ~>
35
+ - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: '1.1'
38
38
  type: :runtime
@@ -40,7 +40,7 @@ dependencies:
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ~>
43
+ - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '1.1'
46
46
  - !ruby/object:Gem::Dependency
@@ -48,7 +48,7 @@ dependencies:
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
- - - ~>
51
+ - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0.9'
54
54
  type: :runtime
@@ -56,7 +56,7 @@ dependencies:
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
59
- - - ~>
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.9'
62
62
  - !ruby/object:Gem::Dependency
@@ -64,7 +64,7 @@ dependencies:
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
- - - ~>
67
+ - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0.1'
70
70
  type: :runtime
@@ -72,7 +72,7 @@ dependencies:
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
- - - ~>
75
+ - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0.1'
78
78
  - !ruby/object:Gem::Dependency
@@ -80,7 +80,7 @@ dependencies:
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
- - - ~>
83
+ - - ! '>='
84
84
  - !ruby/object:Gem::Version
85
85
  version: 2.2.3
86
86
  type: :development
@@ -88,25 +88,9 @@ dependencies:
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
91
- - - ~>
91
+ - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
93
  version: 2.2.3
94
- - !ruby/object:Gem::Dependency
95
- name: rash
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ~>
100
- - !ruby/object:Gem::Version
101
- version: 0.3.1
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: 0.3.1
110
94
  - !ruby/object:Gem::Dependency
111
95
  name: rake
112
96
  requirement: !ruby/object:Gem::Requirement
@@ -130,7 +114,7 @@ dependencies:
130
114
  requirements:
131
115
  - - ~>
132
116
  - !ruby/object:Gem::Version
133
- version: 1.11.3
117
+ version: 2.2.5
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -138,7 +122,7 @@ dependencies:
138
122
  requirements:
139
123
  - - ~>
140
124
  - !ruby/object:Gem::Version
141
- version: 1.11.3
125
+ version: 2.2.5
142
126
  - !ruby/object:Gem::Dependency
143
127
  name: webmock
144
128
  requirement: !ruby/object:Gem::Requirement
@@ -162,23 +146,7 @@ dependencies:
162
146
  requirements:
163
147
  - - ~>
164
148
  - !ruby/object:Gem::Version
165
- version: 2.7.0
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ~>
172
- - !ruby/object:Gem::Version
173
- version: 2.7.0
174
- - !ruby/object:Gem::Dependency
175
- name: fuubar
176
- requirement: !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
179
- - - ~>
180
- - !ruby/object:Gem::Version
181
- version: 0.0.5
149
+ version: 2.11.0
182
150
  type: :development
183
151
  prerelease: false
184
152
  version_requirements: !ruby/object:Gem::Requirement
@@ -186,7 +154,7 @@ dependencies:
186
154
  requirements:
187
155
  - - ~>
188
156
  - !ruby/object:Gem::Version
189
- version: 0.0.5
157
+ version: 2.11.0
190
158
  - !ruby/object:Gem::Dependency
191
159
  name: pry
192
160
  requirement: !ruby/object:Gem::Requirement
@@ -203,7 +171,8 @@ dependencies:
203
171
  - - ~>
204
172
  - !ruby/object:Gem::Version
205
173
  version: 0.9.9
206
- description: Amazon Simple INterface.
174
+ description: Amazon Simple INterface - Support for ItemLookup, SimilarityLookup, Search,
175
+ BrowseNode and Cart Operations.
207
176
  email:
208
177
  - phoetmail@googlemail.com
209
178
  executables: []
@@ -228,21 +197,18 @@ files:
228
197
  - lib/asin/version.rb
229
198
  - rakefile.rb
230
199
  - spec/asin.yml
231
- - spec/browse_node_spec.rb
232
- - spec/cart_spec.rb
233
- - spec/cassettes/asin/asin_cart_with_an_existing_cart_should_add_items_to_a_cart.yml
234
- - spec/cassettes/asin/asin_cart_with_an_existing_cart_should_clear_a_cart.yml
235
- - spec/cassettes/asin/asin_cart_with_an_existing_cart_should_get_a_cart.yml
236
- - spec/cassettes/asin/asin_cart_with_an_existing_cart_should_update_a_cart.yml
237
200
  - spec/cassettes/asin/browse_node_should_lookup_a_browse_node.yml
238
201
  - spec/cassettes/asin/cart_should_create_a_cart.yml
202
+ - spec/cassettes/asin/cart_with_an_existing_cart_should_add_items_to_a_cart.yml
203
+ - spec/cassettes/asin/cart_with_an_existing_cart_should_clear_a_cart.yml
204
+ - spec/cassettes/asin/cart_with_an_existing_cart_should_get_a_cart.yml
205
+ - spec/cassettes/asin/cart_with_an_existing_cart_should_update_a_cart.yml
239
206
  - spec/cassettes/asin/lookup_and_search_should_have_metadata.yml
240
207
  - spec/cassettes/asin/lookup_and_search_should_lookup_a_book.yml
241
208
  - spec/cassettes/asin/lookup_and_search_should_lookup_multiple_books.yml
242
209
  - spec/cassettes/asin/lookup_and_search_should_lookup_multiple_response_groups.yml
243
210
  - spec/cassettes/asin/lookup_and_search_should_return_a_custom_item_class.yml
244
211
  - spec/cassettes/asin/lookup_and_search_should_return_a_mash_value.yml
245
- - spec/cassettes/asin/lookup_and_search_should_return_a_rash_value.yml
246
212
  - spec/cassettes/asin/lookup_and_search_should_return_a_raw_value.yml
247
213
  - spec/cassettes/asin/lookup_and_search_should_search_keywords_a_book_with_fulltext.yml
248
214
  - spec/cassettes/asin/lookup_and_search_should_search_keywords_and_handle_a_single_result.yml
@@ -251,9 +217,11 @@ files:
251
217
  - spec/cassettes/asin/lookup_and_search_should_search_never_mind_music.yml
252
218
  - spec/cassettes/asin/similarity_should_find_similar_items.yml
253
219
  - spec/cassettes/asin/similarity_should_find_similar_items_for_multiple_asins_and_different_config.yml
254
- - spec/config_spec.rb
255
- - spec/search_spec.rb
256
- - spec/similarity_spec.rb
220
+ - spec/lib/browse_node_spec.rb
221
+ - spec/lib/cart_spec.rb
222
+ - spec/lib/config_spec.rb
223
+ - spec/lib/search_spec.rb
224
+ - spec/lib/similarity_spec.rb
257
225
  - spec/spec_helper.rb
258
226
  homepage: http://github.com/phoet/asin
259
227
  licenses: []
@@ -278,24 +246,22 @@ rubyforge_project: asin
278
246
  rubygems_version: 1.8.24
279
247
  signing_key:
280
248
  specification_version: 3
281
- summary: Simple interface to AWS Lookup, Search and Cart operations.
249
+ summary: Amazon Simple INterface - Support for ItemLookup, SimilarityLookup, Search,
250
+ BrowseNode and Cart Operations.
282
251
  test_files:
283
252
  - spec/asin.yml
284
- - spec/browse_node_spec.rb
285
- - spec/cart_spec.rb
286
- - spec/cassettes/asin/asin_cart_with_an_existing_cart_should_add_items_to_a_cart.yml
287
- - spec/cassettes/asin/asin_cart_with_an_existing_cart_should_clear_a_cart.yml
288
- - spec/cassettes/asin/asin_cart_with_an_existing_cart_should_get_a_cart.yml
289
- - spec/cassettes/asin/asin_cart_with_an_existing_cart_should_update_a_cart.yml
290
253
  - spec/cassettes/asin/browse_node_should_lookup_a_browse_node.yml
291
254
  - spec/cassettes/asin/cart_should_create_a_cart.yml
255
+ - spec/cassettes/asin/cart_with_an_existing_cart_should_add_items_to_a_cart.yml
256
+ - spec/cassettes/asin/cart_with_an_existing_cart_should_clear_a_cart.yml
257
+ - spec/cassettes/asin/cart_with_an_existing_cart_should_get_a_cart.yml
258
+ - spec/cassettes/asin/cart_with_an_existing_cart_should_update_a_cart.yml
292
259
  - spec/cassettes/asin/lookup_and_search_should_have_metadata.yml
293
260
  - spec/cassettes/asin/lookup_and_search_should_lookup_a_book.yml
294
261
  - spec/cassettes/asin/lookup_and_search_should_lookup_multiple_books.yml
295
262
  - spec/cassettes/asin/lookup_and_search_should_lookup_multiple_response_groups.yml
296
263
  - spec/cassettes/asin/lookup_and_search_should_return_a_custom_item_class.yml
297
264
  - spec/cassettes/asin/lookup_and_search_should_return_a_mash_value.yml
298
- - spec/cassettes/asin/lookup_and_search_should_return_a_rash_value.yml
299
265
  - spec/cassettes/asin/lookup_and_search_should_return_a_raw_value.yml
300
266
  - spec/cassettes/asin/lookup_and_search_should_search_keywords_a_book_with_fulltext.yml
301
267
  - spec/cassettes/asin/lookup_and_search_should_search_keywords_and_handle_a_single_result.yml
@@ -304,7 +270,9 @@ test_files:
304
270
  - spec/cassettes/asin/lookup_and_search_should_search_never_mind_music.yml
305
271
  - spec/cassettes/asin/similarity_should_find_similar_items.yml
306
272
  - spec/cassettes/asin/similarity_should_find_similar_items_for_multiple_asins_and_different_config.yml
307
- - spec/config_spec.rb
308
- - spec/search_spec.rb
309
- - spec/similarity_spec.rb
273
+ - spec/lib/browse_node_spec.rb
274
+ - spec/lib/cart_spec.rb
275
+ - spec/lib/config_spec.rb
276
+ - spec/lib/search_spec.rb
277
+ - spec/lib/similarity_spec.rb
310
278
  - spec/spec_helper.rb