<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+v0.2.2. Fix error in NOAA::CurrentConditions#weather_type_code
+
 v0.2.1. Fix error in NOAA.current_conditions()
 
 v0.2.0. Get #weather_type_code and #image_url from CurrentConditions and Forecast</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ require 'geokit'
 # NOAA API you will need; one exception is discussed below.
 #
 module NOAA
-  VERSION = '0.2.1'
+  VERSION = '0.2.2'
 
   class &lt;&lt;self
     # </diff>
      <filename>lib/noaa.rb</filename>
    </modified>
    <modified>
      <diff>@@ -53,7 +53,7 @@ module NOAA
     # - &lt;code&gt;:smoke&lt;/code&gt; - Smoke
     # - &lt;code&gt;:dust&lt;/code&gt; - Dust/Sand
     # - &lt;code&gt;:mist&lt;/code&gt; - Haze
-    # - &lt;code&gt;:nsvrtsra&lt;/code&gt; - Tornado
+    # - &lt;code&gt;:svrtsra&lt;/code&gt; - Tornado
     # - &lt;code&gt;:fzrara&lt;/code&gt; - Freezing Rain/Rain
     # - &lt;code&gt;:raip&lt;/code&gt; - Rain/Hail
     # - &lt;code&gt;:rasn&lt;/code&gt; - Rain/Snow
@@ -64,7 +64,7 @@ module NOAA
     # descriptions and their type codes.
     #
     def weather_type_code
-      @weather_type_code ||= text_from_node('icon_url_name').sub(/\.jpg$/, '').to_sym
+      @weather_type_code ||= text_from_node('icon_url_name').gsub(/^n|\.jpg$/, '').to_sym
     end
 
     # </diff>
      <filename>lib/noaa/current_conditions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,11 +2,11 @@
 
 Gem::Specification.new do |s|
   s.name = %q{noaa}
-  s.version = &quot;0.2.1&quot;
+  s.version = &quot;0.2.2&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 1.2&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Mat Brown&quot;]
-  s.date = %q{2009-01-02}
+  s.date = %q{2009-01-04}
   s.default_executable = %q{noaa-update-stations}
   s.description = %q{Ruby API for National Oceanic and Atmospheric Administration weather data}
   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
     if Gem::Version.new(Gem::RubyGemsVersion) &gt;= Gem::Version.new('1.2.0') then
       s.add_runtime_dependency(%q&lt;libxml-ruby&gt;, [&quot;&gt;= 0.9.7&quot;])
       s.add_runtime_dependency(%q&lt;andre-geokit&gt;, [&quot;&gt;= 1.2.0&quot;])
-      s.add_runtime_dependency(%q&lt;jeremymcanally-context&gt;, [&quot;&gt;= 0.0.6&quot;])
-      s.add_runtime_dependency(%q&lt;jeremymcanally-matchy&gt;, [&quot;&gt;= 0.0.1&quot;])
-      s.add_runtime_dependency(%q&lt;ruby-debug&gt;, [&quot;~&gt; 0.10&quot;])
+      s.add_development_dependency(%q&lt;jeremymcanally-context&gt;, [&quot;&gt;= 0.0.6&quot;])
+      s.add_development_dependency(%q&lt;jeremymcanally-matchy&gt;, [&quot;&gt;= 0.0.1&quot;])
+      s.add_development_dependency(%q&lt;ruby-debug&gt;, [&quot;~&gt; 0.10&quot;])
     else
       s.add_dependency(%q&lt;libxml-ruby&gt;, [&quot;&gt;= 0.9.7&quot;])
       s.add_dependency(%q&lt;andre-geokit&gt;, [&quot;&gt;= 1.2.0&quot;])</diff>
      <filename>noaa.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>da541e6184c8469cd78b413b1bb389f8d21004d0</id>
    </parent>
  </parents>
  <author>
    <name>Mat Brown</name>
    <email>mat@patch.com</email>
  </author>
  <url>http://github.com/outoftime/noaa/commit/7628672da23ed717d34ab546e3608c93a01edf85</url>
  <id>7628672da23ed717d34ab546e3608c93a01edf85</id>
  <committed-date>2009-01-04T19:14:53-08:00</committed-date>
  <authored-date>2009-01-04T19:14:53-08:00</authored-date>
  <message>Fix bug in NOAA::CurrentConditions#weather_type_code

At night, NOAA XML will sometimes contain the &quot;night&quot; version of the
weather image in the URL. CurrentConditions#weather_type_code was not
accounting for this; now it does.</message>
  <tree>b0578cfacb419f6cb1f6996c471f1714434d29e2</tree>
  <committer>
    <name>Mat Brown</name>
    <email>mat@patch.com</email>
  </committer>
</commit>
