lib/fassbinder/response.rb in fassbinder-0.0.14 vs lib/fassbinder/response.rb in fassbinder-0.0.15

- old
+ new

@@ -39,10 +39,10 @@ builder = BookBuilder.new builder.asin = doc['ASIN'] builder.offers_total = doc['Offers']['TotalOffers'] host = Sucker::Request::HOSTS[@locale] - builder.venue = "amazon.#{host.match(/[^.]+$/)}" + builder.venue = host.sub('ecs.amazonaws', 'amazon') offers = [doc['Offers']['Offer']].flatten.compact offers.each { |offer| builder.add_offer(offer) } builder.book