rb_wunderground 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,14 +20,16 @@ module RbWunderground
20
20
 
21
21
  FEATURES.each do |name|
22
22
  define_method(name) do |arg|
23
- url = base_url + name + "/q/" + arg + format
23
+ url = ""
24
+ url << base_url << name << "/q/" << arg << format
24
25
  fetch_result(url)
25
26
  end
26
27
  end
27
28
 
28
29
  def method_missing(name, *args, &block)
29
30
  if name =~ /^history_(.+)$/ || name =~ /^planner_(.+)$/
30
- url = base_url + name.to_s + "/q/" + args[0] + format
31
+ url = ""
32
+ url << base_url << name.to_s << "/q/" << args[0] << format
31
33
  fetch_result(url)
32
34
  else
33
35
  super
@@ -1,3 +1,3 @@
1
1
  module RbWunderground
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb_wunderground
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: