book_worm 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- book_worm (0.1.5)
4
+ book_worm (0.1.6)
5
5
  httparty
6
6
 
7
7
  GEM
@@ -22,7 +22,8 @@ module BookWorm
22
22
  private
23
23
 
24
24
  def average_price_listed(listings)
25
- sum = 0
25
+ sum = 0.00
26
+ return sum if listings.empty?
26
27
  listings.each do |listing|
27
28
  sum += listing["price"].to_f
28
29
  end
@@ -138,7 +138,7 @@ module BookWorm
138
138
  [results['ISBNdb']['BookList']['BookData']].flatten.collect do |book|
139
139
  Book.new(book)
140
140
  end
141
- rescue
141
+ rescue Exception => e
142
142
  []
143
143
  end
144
144
  end
@@ -1,3 +1,3 @@
1
1
  module BookWorm
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: book_worm
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.6
5
+ version: 0.1.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tony Schneider