weatherzone 0.6.1 → 0.6.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/lib/weatherzone.rb +1 -1
- data/lib/weatherzone/finder.rb +12 -0
- metadata +3 -3
data/lib/weatherzone.rb
CHANGED
data/lib/weatherzone/finder.rb
CHANGED
@@ -87,6 +87,18 @@ module Weatherzone
|
|
87
87
|
find(options).countries.first.locations
|
88
88
|
end
|
89
89
|
|
90
|
+
def find_radars_by_state(state, options={})
|
91
|
+
options = options.dup
|
92
|
+
options.merge!(:params => "<=radar&links=1&ra=1&state=#{state}")
|
93
|
+
find(options).countries.first.locations
|
94
|
+
end
|
95
|
+
|
96
|
+
def find_by_radar_code(radar_code, options={})
|
97
|
+
options = options.dup
|
98
|
+
options.merge!(:params => "<=radar&lc=#{radar_code}&links=1&ra=1")
|
99
|
+
find(options)
|
100
|
+
end
|
101
|
+
|
90
102
|
def build_params(location_code, options)
|
91
103
|
params = location_code ? "&lc=#{location_code}" : ""
|
92
104
|
params += options.delete(:params) if options[:params]
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 3
|
9
|
+
version: 0.6.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ben Askins
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-24 00:00:00 +11:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|