weatherzone 0.6.1 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/weatherzone.rb CHANGED
@@ -35,5 +35,5 @@ require 'weatherzone/helpers/date_parser'
35
35
  require 'weatherzone/helpers/units'
36
36
 
37
37
  module Weatherzone
38
- VERSION = '0.6.1'
38
+ VERSION = '0.6.3'
39
39
  end
@@ -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 => "&lt=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 => "&lt=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
- - 1
9
- version: 0.6.1
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-19 00:00:00 +11:00
17
+ date: 2010-03-24 00:00:00 +11:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency