woefoo 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/woefoo/version.rb +1 -1
- data/lib/woefoo.rb +4 -2
- metadata +3 -3
data/lib/woefoo/version.rb
CHANGED
data/lib/woefoo.rb
CHANGED
@@ -68,9 +68,11 @@ module Woefoo
|
|
68
68
|
def build_parameterized_url(opts={})
|
69
69
|
s = ""
|
70
70
|
[:line1, :city, :state, :postal, :country].each do |l|
|
71
|
-
|
71
|
+
if opts.include?(l)
|
72
|
+
val = ::CGI.escape(opts[l])
|
73
|
+
s << "&#{l.to_s}=#{val} "
|
74
|
+
end
|
72
75
|
end
|
73
|
-
s = ::CGI.escape(s)
|
74
76
|
"http://where.yahooapis.com/geocode?appid=#{@appid}&count=#{placefinder_result_count}#{s}"
|
75
77
|
end
|
76
78
|
|
metadata
CHANGED