geokit/geokit — pull request #103 by rjanse (2013-09-17 08:30:58+00:00)
Title: Bugfix: google3 service viewport biasing.

Telling the `::GoogleGeocoder3.geocode` to return only results from in and around a `bound` with the `:bias` option did not work.
Bug example:
```ruby
la_bounds = Geokit::Geocoders::GoogleGeocoder3.geocode('Los Angeles').suggested_bounds
=> #, @ne=#>

Geokit::Geocoders::GoogleGeocoder3.geocode('Winnetka', :bias => la_bounds)
=> #], @street_address=nil, @sub_premise=nil, @street_number=nil, @street_name=nil, @city=nil, @state=nil, @zip=nil, @country_code=nil, @province=nil, @success=false, @precision="unknown", @full_address=nil, @lat=nil, @lng=nil>
```
As you can see it returns a `GeoLoc` object with attributes that contain nil values.

These commits fixes the `google3` service:

```Ruby
la_bounds = Geokit::Geocoders::GoogleGeocoder3.geocode('Los Angeles').suggested_bounds
=> #, @ne=#>
Geokit::Geocoders::GoogleGeocoder3.geocode('Winnetka', :bias => la_bounds)
=> #], @street_address=nil, @sub_premise=nil, @street_number=nil, @street_name=nil, @city="Los Angeles", @state="CA", @zip=nil, @country_code="US", @province="CA", @success=true, @precision="city", @full_address="Winnetka, Los Angeles, CA, USA", @lat=34.2048586, @lng=-118.5739621, @provider="google3", @district="Los Angeles", @country="United States", @accuracy=4, @suggested_bounds=#, @ne=#>, @neighborhood="Winnetka">
irb(main):012:0>
```
Also there was a problems installing the gem with bundler:
```
rake aborted!
cannot load such file -- bundler/gem_tasks

An error occurred while installing geokit (1.6.5), and Bundler cannot continue.
Make sure that `gem install geokit -v '1.6.5'` succeeds before bundling.
```
I removed the `require "bundler/gem_tasks` and that fixes that problem.