woefoo 0.0.8 → 0.0.9

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.
Files changed (3) hide show
  1. data/lib/woefoo/version.rb +1 -1
  2. data/lib/woefoo.rb +4 -2
  3. metadata +3 -3
@@ -1,3 +1,3 @@
1
1
  module Woefoo
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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
- s << "&#{l.to_s}=#{opts[l]} " if opts.include?(l)
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woefoo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - smnirven