weather_underground 0.0.1 → 0.0.3

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.
data/README.md CHANGED
@@ -8,6 +8,10 @@ Usage
8
8
 
9
9
  w = WeatherUnderground::Base.new(API_KEY)
10
10
 
11
+ Forecast
12
+
13
+ w.forecast('63108')
14
+
11
15
  GeoLookup:
12
16
 
13
17
  w.geolookup('63108')
@@ -1,3 +1,3 @@
1
1
  module WeatherUnderground
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -11,6 +11,10 @@ module WeatherUnderground
11
11
  @apikey = apikey
12
12
  end
13
13
 
14
+ def forecast(location)
15
+ make_request url_with_key + "/forecast/conditions/q/%s.json" % URI.escape(location)
16
+ end
17
+
14
18
  def geolookup(location)
15
19
  make_request url_with_key + "/geolookup/conditions/q/%s.json" % URI.escape(location)
16
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weather_underground
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-08 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
16
- requirement: &70366091595040 !ruby/object:Gem::Requirement
16
+ requirement: &70092817234080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.6.7
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70366091595040
24
+ version_requirements: *70092817234080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &70366091594040 !ruby/object:Gem::Requirement
27
+ requirement: &70092817233420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.6.5
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70366091594040
35
+ version_requirements: *70092817233420
36
36
  description: A Ruby gem for the Weather Underground API
37
37
  email:
38
38
  - excid3@gmail.com