placefinder 0.2 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ require 'httparty'
3
3
 
4
4
  module Placefinder
5
5
  class Base
6
- base_uri 'http://where.yahooapis.com/geocode'
6
+ API_URI = 'http://where.yahooapis.com/geocode'
7
7
 
8
8
  def initialize(params = {})
9
9
  @api_key = params[:api_key]
@@ -11,7 +11,7 @@ module Placefinder
11
11
 
12
12
  def get(params = {})
13
13
  params.merge!({:appid => @api_key}) if @api_key
14
- response = HTTParty.get('', :query => params)
14
+ response = HTTParty.get(API_URI, :query => params)
15
15
  response.parsed_response
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module Placefinder
2
- VERSION = "0.2"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: placefinder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- version: "0.2"
9
+ - 1
10
+ version: 0.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Adolfo Builes