beer_in_the_evening 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -114,7 +114,14 @@ module BeerInTheEvening
114
114
  rows.map! { |row|
115
115
  Pub.new row
116
116
  }
117
- logger.debug "Returning results as pubs"
117
+
118
+ if minimum_rating
119
+ # Some searches don't obey the minimum_rating parameter eg when
120
+ # searching by postcode.
121
+ rows.delete_if { |p| p.rating < minimum_rating }
122
+ logger.debug "Whittled results down to #{rows.size} after strict minimum rating check"
123
+ end
124
+ logger.debug "Returning #{rows.size} results as pubs"
118
125
  rows
119
126
  end
120
127
  private :results_on_page
@@ -1,3 +1,3 @@
1
1
  module BeerInTheEvening
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beer_in_the_evening
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: