wunderground 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
data/lib/wunderground.rb CHANGED
@@ -42,8 +42,8 @@ class Wunderground
42
42
  send("planner_#{range}_for",*args)
43
43
  end
44
44
 
45
- def respond_to?(method)
46
- method_missing_match?(method) || super(method)
45
+ def respond_to?(method, include_all = false)
46
+ method_missing_match?(method) || super
47
47
  end
48
48
 
49
49
  protected
@@ -74,7 +74,7 @@ class Wunderground
74
74
  ip_address = opts[:geo_ip] and args.push("autoip") if opts[:geo_ip]
75
75
  timeout = opts[:timeout]
76
76
  end
77
- call(url <<'/q/'<< args.join('/') << ".json" << (ip_address ? "?geo_ip=#{ip_address}" : ''),timeout)
77
+ call(url <<'/q/'<< URI.escape(args.join('/')) << ".json" << (ip_address ? "?geo_ip=#{ip_address}" : ''),timeout)
78
78
  end
79
79
 
80
80
  class << self
@@ -89,4 +89,4 @@ class Wunderground
89
89
  def method_missing_match?(method)
90
90
  method.to_s.end_with?("_for")
91
91
  end
92
- end
92
+ end
@@ -104,6 +104,8 @@ class TestWunderground < Test::Unit::TestCase
104
104
  @wunderground.forecast_for("1234.1234,-1234.1234")
105
105
  expect_get(@url+"forecast/q/pws:WHAT.json",{timeout: 30})
106
106
  @wunderground.forecast_for("pws:WHAT")
107
+ expect_get(@url+"forecast/q/A,%20B.json",{timeout: 30})
108
+ @wunderground.forecast_for("A, B")
107
109
  end
108
110
 
109
111
  should 'formats query of type geo_ip' do
data/wunderground.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "wunderground"
8
- s.version = "1.1.0"
8
+ s.version = "1.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Winfred Nadeau"]
12
- s.date = "2013-05-03"
12
+ s.date = "2014-02-11"
13
13
  s.description = "A simple ruby API wrapper for interacting with the Wunderground API"
14
14
  s.email = "winfred.nadeau@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.homepage = "http://github.com/wnadeau/wunderground_ruby"
32
32
  s.licenses = ["MIT"]
33
33
  s.require_paths = ["lib"]
34
- s.rubygems_version = "1.8.25"
34
+ s.rubygems_version = "1.8.23"
35
35
  s.summary = "A simple ruby API wrapper for interacting with the Wunderground API"
36
36
 
37
37
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wunderground
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-03 00:00:00.000000000 Z
12
+ date: 2014-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -188,7 +188,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
188
  version: '0'
189
189
  segments:
190
190
  - 0
191
- hash: 961218802401752725
191
+ hash: -3646871117310151999
192
192
  required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 1.8.25
200
+ rubygems_version: 1.8.23
201
201
  signing_key:
202
202
  specification_version: 3
203
203
  summary: A simple ruby API wrapper for interacting with the Wunderground API