|
|
 |
 |
 |
Changelog for ruby-amazon-0.8.1-1.i386.rpm :
* Sat Apr 03 2004 Ian Macdonald 0.8.1-1- 0.8.1- Fixed bug whereby having no config file would cause an exception. The same bug caused the first config file to be ignored if there was more than one.- Using a cache directory will now create the directory if it does not exist and will also raise an Amazon::Search::Cache::PathError if the path given is not a directory, or if the directory is either unreadable or unwritable.- Amazon::Search::Request::ALL_PAGES has now been renamed Amazon::Search::ALL_PAGES.- Avoid a locale in config file from overriding a locale passed to method.- Include a workaround for fact that MerchantSku seems to no longer be returned by remote shopping cart procedures. * Wed Mar 24 2004 Ian Macdonald 0.8.0-1- 0.8.0- A simple response caching system is now implemented via Amazon::Search::Cache.- A new module, Amazon::Locale, can be used to determine the most appropriate AWS locale for a connecting client, based on its IP address or DNS hostname.- Passing a sort type parameter to a search method resulted in an error, as the URL-encoded first character would later be confused with a format specifier during final URL construction.- A SearchError exception is now raised if a Marketplace search explicitly returns zero open listings. * Wed Mar 17 2004 Ian Macdonald 0.7.6-1- 0.7.6- The names of Amazon::Product and Amazon::Exchange::Product properties have been normalised, so that you would now refer to foo.total_customer_reviews, not foo.totalcustomerreviews, etc. - Some new search modes have been added to the DE locale, in line with Amazon\'s recent changes to that locale. - Certain product properties are now returned as integers or floats, not strings, where relevant. AATTaverage_customer_rating, for example, is now a float, whereas AATTnum_media and AATTsales_rank are integers. * Thu Mar 11 2004 Ian Macdonald 0.7.5-1- 0.7.5- When instantiating Request objects, Ruby/Amazon will now use /etc/amazonrc and ~/.amazonrc if available. These can be used to store the developer token and Associates ID.- Amazon::Search::Request#wishlist_search can now take a page parameter.- An Amazon::SearchError exception is now raised on an ALL_PAGES search if the total number of pages to fetch cannot be determined from the first page returned by AWS.- New class method, Amazon::ShoppingCart.one_click_form, allows the return of an HTML form for making a purchase using Amazon\'s 1-Click purchasing.- Improve robustness of error detection when performing a seller profile search.- Fixed bug whereby developer token was missing from HTML form produced by baby registry, wedding registry, wishlist and shopping-cart modules.- If no Associates ID is passed when instantiating a Request object, that of Ruby/Amazon\'s author is used instead.- A new example program, cart, is included. * Mon Mar 01 2004 Ian Macdonald 0.7.0-1- 0.7.0- Extensive code clean-up and bug-fixing.- It\'s no longer necessary (or possible) to manually call #parse. This now happens automatically when a Response object is instantiated. An attribute of the Response object is used to store the object formerly returned by calling #parse.- Amazon::Blended::ProductLine has been moved to Amazon::ProductLine.- Amazon::Seller, Amazon::Transaction and Amazon::ShoppingCart::Item are now all subclasses of Amazon::Product, so that to_s and other utility methods can be inherited.- Amazon::BabyRegistry.add_item has been moved to .add_item_form to make its purpose clearer and its use consistent with the identically named methods in the ShoppingCart class. Similarly, Amazon::WeddingRegistry.add_item and Amazon::Wishlist.add_item have undergone the same renaming.- AWS now returns wishlists in ascending order, so we reverse the order of the results to present them in descending order, which makes more sense.- All search methods can now take an optional block. If supplied, the products, seller or whichever details are returned by the method are yielded to the block.- Amazon::Transaction::Response objects now have a AATTtransactions attribute, which substitutes for the now private #parse method returning an Array of Amazon::Transaction objects.- Amazon::Search::Blended::Response objects now have a AATTproduct_lines attribute, which substitutes for the now private #parse method returning an Array, of Amazon::ProductLine objects.- Amazon::Search::Exchange::Response objects now have a AATTproducts attribute, which substitutes for the now private #parse method returning an Array of Amazon::Exchange::Product objects.- Amazon::Search::Seller::Response objects now have a AATTseller attribute, which substitutes for the now private #parse method returning an Amazon::Seller object.- Amazon::Search::Exchange::Marketplace::Response objects now have a AATTproducts attribute, which substitutes for the now private #parse method returning an Array of Amazon::Exchange::Product objects. They also have AATTopen_listings, which contains the number of open listings returned by AWS.- Amazon::Search::Exchange::ThirdParty::Response objects now have a AATTproducts attribute, which substitutes for the now private #parse method returning an Array of Amazon::Exchange::Product objects. It also has AATTseller_nickname, AATTstore_id, AATTstore_name and AATTopen_listings.- Wishlist IDs can be 12 characters long, not just 13 as stated in the AWS documentation. 12 character IDs are now supported.- Certain types of search on AWS are less reliable than others. Such searches, which seem to be seller, marketplace and third-party searches, now detect an empty search result set and raise SearchError accordingly. If, however, the nature of the error cannot be determined, self (which is the XML page returned by Amazon) is passed as the message when raising the SearchError exception. Error detection in general has been improved in this release.- In accordance with AWS Newsletter #7, searches in the JP locale now go to xml.amazon.co.jp. This is transparent to the programmer. * Tue Feb 24 2004 Ian Macdonald 0.6.0-1- 0.6.0- New instance method Amazon::Product#[] allows a product to be referenced by any of its instance variables, as if it were a Hash.- New instance method Amazon::Product#to_h really does convert an Amazon::Product to a Hash, so that all of the instance methods of that class can be used.- It\'s no longer necessary to \"require \'amazon\'\" when using the baby registry, wedding registry, wishlist and shopping cart libraries.- The baby registry, wedding registry, wishlist and shopping cart libraries were all producing non-functional forms for adding items to them.- Search errors were not causing exceptions to be properly raised.- There are new reader methods for Amazon::Search::Request instance variables AATTid and AATTtoken.- Relevant search methods (those that return multiple results) now accept a sort type parameter. These methods are #keyword_search, #node_search, - The valid sort types referred to in the last point can be obtained with the Amazon::Search.sort_types method.- A new exception class, Amazon::Search::Request::SortError, exists for the purpose of indicating the passing of an incorrect sort type to a search method.- \'video\' is now returned as a valid search mode by Amazon::Search.modes. This mode is apparently the union of the \'dvd\' and \'vhs\' modes, but is not documented as such in the AWS documentation. \'video\' is now allowed as a valid mode by #upc_search, #actor_search and #director_search.- #parse can now be called on the result of an Amazon::Search::Request, regardless of whether an Amazon::Search::Response or an Array of such responses is returned.- Amazon::ShoppingCart is now a class, not a module, and has been greatly expanded with a full implementation of the functionality available via the Remote Cart section of the AWS API.- Amazon::ShoppingCart#add_items adds one or more items to a shopping cart.- Amazon::ShoppingCart#modify_items changes the quantity of one or more items in a shopping cart.- Amazon::ShoppingCart#remove_items directly removes one or more items from a shopping cart.- Amazon::ShoppingCart#retrieve_items returns the state of a shopping cart.- Amazon::ShoppingCart#clear (or its synonym, #empty) clears a shopping cart of all products, but does not destroy the cart.- Amazon::ShoppingCart#[] allows you to refer to an item in a shopping cart by its ASIN. This will return an Array of Amazon::ShoppingCart::Item objects, one per entry in the shopping cart.- The ShoppingCart class has a couple of new supporting Exception classes, CartError and QuantityError. These are raised when shopping cart transactions fail or an illegal quantity is passed to a method.- ShoppingCart.add_items module method is now a class method and has been renamed ShoppingCart.add_items_form.- ShoppingCart.add_items method was using the Associates ID in the POST action. This should have been the ASIN.- ShoppingCart.add_marketplace_item module method is now a class method and has been renamed ShoppingCart.add_items_form.- ShoppingCart.add_marketplace_item module was using the Associates ID in the POST action. This should have been the ASIN.- New class Amazon::Transaction allows the use of Amazon\'s Transaction Details API to verify up to five transactions.- Amazon::Transaction::Request#get_details may be used to request information on transactions. This returns an Amazon::Transaction::Response, whose #parse method may be called to return an Array of Amazon::Transaction items. Amazon::Transaction::Error objects store the details of failed requests for transaction details. An Array of these is stored in the AATTerror instance variable of Amazon::Transaction items.- New exception class Amazon::Transaction::Request::OrderIDError is raised when an incorrect order ID is passed to #get_details.- AATTtotal_pages and AATTtotal_results were not being set in Array objects returned by ALL_PAGES searches.- Classes that have a #parse method now always return the same result, whether or not a block was given. * Mon Feb 16 2004 Ian Macdonald 0.5.0-1- 0.5.0- New method Amazon::Search::Request#text_stream_search supports text stream searches.- It\'s now no longer necessary to \"require \'amazon\'\" before requiring \'amazon/search\', \'amazon/babyregistry\', \'amazon/shoppingcart\', \'amazon/weddingregistry\' and \'amazon/wishlist\'.- The Amazon::Search::Offerings module has been removed, as offerings are now completely integrated into Amazon::Search.- Failed searches will now populate the AATTerror attribute of Response objects when their #parse method is called.- New module method Amazon::Search.offer_types replaces method of same name in Amazon::Search::Offerings.- It\'s now possible to return offering (third-party item) data when using - #asin_search now accepts an offer_page parameter.- ALL_PAGES searches are now threaded.- Amazon::Search::Request#parse and similarly named methods in the subclasses now return AATTargs if passed a block.- Amazon::Search::Response objects now populate a hash attribute, AATTargs, when their #parse method is called. This corresponds to the args nodes returned by Amazon\'s servers.- Fixed bug whereby the user-agent was not set when searching for the second and subsequent pages of ALL_PAGES requests.- \'apparel\' and \'wireless-phones\' are now a valid search mode, although their status with AWS is unofficial. * Mon Feb 09 2004 Ian Macdonald 0.4.0-1- 0.4.0- New instance method Amazon::Search::Request#blended_search supports blended searches, which return products from up to 15 Amazon categories.- New instance method Amazon::Search::Request#wishlist_search supports wishlist searches.- New Amazon::Search::Exchange module supports exchange searches.- New Amazon::Search::Offerings module supports searching for offerings.- New Amazon::Search::Seller module supports seller profile searches.- New Amazon::Search::Exchange::ThirdParty module supports third party product searches.- New Amazon::BabyRegistry module generates HTML form for adding an item to a baby registry.- New Amazon::ShoppingCart module generates HTML form for adding items to a shopping cart.- New Amazon::WeddingRegistry module generates HTML form for adding an item to a wedding registry.- New Amazon::Wishlist module generates HTML form for adding an item to a wishlist.- New Amazon::Product#to_s method allows for easy human-friendly printing of products.- Amazon::Search::Response#parse and other such #parse methods in subclasses can now act as iterators to an optional block.- Amazon::Search::Request#similarity_search now allows up to 5 ASINs to be searched for.- Amazon::Search::Request methods #author_search, #keyword_search and This parameter allows the user to specify that all editions of a book should be returned, not just the latest.- Amazon::Search::Response objects now contain new instance variables AATTtotal_results and AATTtotal_pages for tracking the total number of results and pages for each search.- New exception class Amazon::Search::HTTPError.- The URL of the page to be fetched is now printed if Ruby is run with -d.- Amazon::Marketplace::Product has been renamed Amazon::Exchange::Product.- Numerous other minor changes and bug fixes. * Sun Feb 01 2004 Ian Macdonald 0.3.0-1- 0.3.0- Amazon::Search::Request#search has been subdivided into #keyword_search, - New module Amazon::Search::Marketplace for Amazon Marketplace searches.- New product class Amazon::Search::Marketplace::Product.- New instance methods Amazon::Search::Marketplace#keyword_search and Amazon::Search::Marketplace#listing_search for marketplace searches. These return Amazon::Search::Marketplace::Response objects.- New class methods Amazon::Search::Marketplace.keyword_searches, Amazon::Search::Marketplace.geos, Amazon::Search::Marketplace.sorts and Amazon::Search::Marketplace.indices for determining valid keyword search types, geos types, sort types and index types when doing a marketplace search.- The international properties amazon.co.uk, amazon.de and amazon.co.jp are now also supported via a 3rd parameter to Amazon::Search::Request.new. A two letter string, \'us\', \'uk\', \'de\' or \'jp\', can be passed. Request objects now contain a new instance variable, AATTlocale, to track this when performing searches.- Amazon::Search::Request.new can now take a 4th argument, which is a user-agent to pass on to Amazon\'s Web Services- New Amazon::NAME constant gives library name.- ALL_PAGES searches are now returned more efficiently, as XML parsing can be deferred until Amazon::Search#parse is used.- UPC search now accepts extra modes: classical, software, dvd, vhs, electronics, pc-hardware.- Price range restrictions are now supported on relevant searches.- Single page ALL_PAGES searches now yield a single-element array, rather than directly returning an Amazon::Search::Response object.- Exception classes are now subclasses of StandardError, not RuntimeError.- Better error-checking and exception raising all around. * Fri Jan 23 2004 Ian Macdonald 0.2.0-1- 0.2.0- The Associates ID is now the optional second parameter in Amazon::Search::Request.new.- ALL_PAGES can now be passed to Amazon::Search::Request#search to return all pages for a given search.- The Amazon::Search::TypeError exception class has been added to catch non-existent search types.- AATTavgcustomerrating was not being set in Amazon::Search::Review objects.- New constants Amazon::Search::Request::HEAVY, Amazon::Search::Request::LITE.- Amazon::Search::Request::POWER_SEARCH is supported as a new search type.- Ruby/Amazon now makes calls to version 3 of the Amazon Web Services API. * Sun Jan 18 2004 Ian Macdonald 0.1.0-1- 0.1.0- First public release.
|
|
|