[Alexandria-list] Testing Alexandria SVN: Amazon locales and converting from ISBN10
Liam Davison
liamjdavison at gmail.com
Thu May 3 16:19:24 EDT 2007
Hi all,
I thought I'd spend some time today playing around with Alexandria, but I'm
afraid I didn't have much luck. I started with the latest from SVN, launched
alexandria, switched to Amazon.co.uk and found my first snag. Now it has
been ages since I worked on Alexandria, so please forgive me if this has all
been looked at before. I'm also terrible at reporting bugs - you should the
emails my web developer and I exchange...
- The name of the amazon provider does not reflect the chosen locale. It
appears as Amazon (Usa) regardless of the chosen locale
- Searches on sites other than amazon.com fail:
New @find_thread #<Thread:0xb721c23c>
Amazon (Usa) lookup
Exception `URI::InvalidURIError' at /usr/lib/ruby/1.8/uri/common.rb:432 -
bad URI(is not URI?):
Fetching
http://xml.amazon.com/onca/xml3?t=calibanorg-20&KeywordSearch=Maximum+City&mode=books-de&f=xml&type=heavy&dev-t=01YF1BBNF7JRSVCMGD02&page=1&locale=de...
Exception `NoMethodError' at /usr/lib/ruby/1.8/amazon/search.rb:945 -
undefined method `coerce' for false:FalseClass
Exception `TypeError' at /usr/lib/ruby/1.8/amazon/search.rb:945 - false
can't be coerced into Fixnum
---
I then tried using my old alexandria 0.6.1 folder, complete with 2 ISBN10
only libraries, but that immediately failed. This has been reported by
another user, but basically it gets caught in a loop:
version: CVS
Entering resave-test block for 0749083468.yaml
Exception `RuntimeError' at
/usr/local/lib/site_ruby/1.8/alexandria/library.rb:92 - 0749083468.yaml isbn
is not okay
I'm reformatting 0749083468.yaml because 0749083468.yaml isbn is not okay
Moving cover /home/liam/.alexandria/OnixTest/9780749083465.cover to
/home/liam/.alexandria/OnixTest/9780749083465.cover
Exception `ArgumentError' at /usr/lib/ruby/1.8/fileutils.rb:1378 - same
file: /home/liam/.alexandria/OnixTest/9780749083465.cover and
/home/liam/.alexandria/OnixTest/9780749083465.cover
--- !ruby/object:Alexandria::Book
authors:
- Chris Gordon
edition: Paperback
isbn: "9780749083465"
loaned: false
loaned_since: 2005-06-28 00:00:00 +01:00
loaned_to: ""
notes: Harmless fun
publisher: Allison & Busby
rating: 3
saved_ident: "9780749083465"
title: Book of Weird
version: CVS
Entering resave-test block for 0749083468.yaml
The loop appears to be endless, so I Ctrl-C'd:
Exception `RuntimeError' at
/usr/local/lib/site_ruby/1.8/alexandria/library.rb:92 - 0749083468.yaml isbn
is not okay
I'm reformatting 0749083468.yaml because 0749083468.yaml isbn is not okay
Moving cover /home/liam/.alexandria/OnixTest/9780749083465.cover to
/home/liam/.alexandria/OnixTest/9780749083465.cover
Exception `Interrupt' at
/usr/local/lib/site_ruby/1.8/alexandria/library.rb:502 -
/usr/local/lib/site_ruby/1.8/alexandria/library.rb:502:in `cover': Interrupt
from /usr/local/lib/site_ruby/1.8/alexandria/library.rb:357:in
`simple_save'
I hope this is useful, but please let me know what would be more helpful in
the future.
Liam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/alexandria-list/attachments/20070503/29a8435f/attachment-0001.html
More information about the Alexandria-list
mailing list