lib/libri/book.rb in libri-0.1.1 vs lib/libri/book.rb in libri-0.2.1

- old
+ new

@@ -18,10 +18,10 @@ # :title => book.css("div.product-shelf-title").text.strip, # :author => book.css("div.product-shelf-author").text.strip, # :url => "https://www.barnesandnoble.com" + book.css("a").attribute("href").value # } # }, - :availability => book_page.css("button#pdp-marketplace-btn").text.strip, + :availability => book_page.css("button#pdp-marketplace-btn").text.chomp, :url => book[:url] } book_info_hash.delete_if { |key, val| val.to_s.strip.empty? }