outoftime-noaa 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.2.2. Fix error in NOAA::CurrentConditions#weather_type_code
2
+
1
3
  v0.2.1. Fix error in NOAA.current_conditions()
2
4
 
3
5
  v0.2.0. Get #weather_type_code and #image_url from CurrentConditions and Forecast
data/lib/noaa.rb CHANGED
@@ -14,7 +14,7 @@ require 'geokit'
14
14
  # NOAA API you will need; one exception is discussed below.
15
15
  #
16
16
  module NOAA
17
- VERSION = '0.2.1'
17
+ VERSION = '0.2.2'
18
18
 
19
19
  class <<self
20
20
  #
@@ -53,7 +53,7 @@ module NOAA
53
53
  # - <code>:smoke</code> - Smoke
54
54
  # - <code>:dust</code> - Dust/Sand
55
55
  # - <code>:mist</code> - Haze
56
- # - <code>:nsvrtsra</code> - Tornado
56
+ # - <code>:svrtsra</code> - Tornado
57
57
  # - <code>:fzrara</code> - Freezing Rain/Rain
58
58
  # - <code>:raip</code> - Rain/Hail
59
59
  # - <code>:rasn</code> - Rain/Snow
@@ -64,7 +64,7 @@ module NOAA
64
64
  # descriptions and their type codes.
65
65
  #
66
66
  def weather_type_code
67
- @weather_type_code ||= text_from_node('icon_url_name').sub(/\.jpg$/, '').to_sym
67
+ @weather_type_code ||= text_from_node('icon_url_name').gsub(/^n|\.jpg$/, '').to_sym
68
68
  end
69
69
 
70
70
  #
data/noaa.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{noaa}
5
- s.version = "0.2.1"
5
+ s.version = "0.2.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Mat Brown"]
9
- s.date = %q{2009-01-02}
9
+ s.date = %q{2009-01-04}
10
10
  s.default_executable = %q{noaa-update-stations}
11
11
  s.description = %q{Ruby API for National Oceanic and Atmospheric Administration weather data}
12
12
  s.email = %q{mat@patch.com}
@@ -34,9 +34,9 @@ This can be run at any time to update the stations, but you must run it once to
34
34
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
35
35
  s.add_runtime_dependency(%q<libxml-ruby>, [">= 0.9.7"])
36
36
  s.add_runtime_dependency(%q<andre-geokit>, [">= 1.2.0"])
37
- s.add_runtime_dependency(%q<jeremymcanally-context>, [">= 0.0.6"])
38
- s.add_runtime_dependency(%q<jeremymcanally-matchy>, [">= 0.0.1"])
39
- s.add_runtime_dependency(%q<ruby-debug>, ["~> 0.10"])
37
+ s.add_development_dependency(%q<jeremymcanally-context>, [">= 0.0.6"])
38
+ s.add_development_dependency(%q<jeremymcanally-matchy>, [">= 0.0.1"])
39
+ s.add_development_dependency(%q<ruby-debug>, ["~> 0.10"])
40
40
  else
41
41
  s.add_dependency(%q<libxml-ruby>, [">= 0.9.7"])
42
42
  s.add_dependency(%q<andre-geokit>, [">= 1.2.0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outoftime-noaa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mat Brown
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-02 00:00:00 -08:00
12
+ date: 2009-01-04 00:00:00 -08:00
13
13
  default_executable: noaa-update-stations
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency