<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -28,7 +28,7 @@ All fields are optional but the name, you are required to provide at least one o
 
 ===Contact
 
-* +tel+ - Provide the phone number
+* +tel+ - Provide a hash with the phone types and numbers
 * +url+ - Add a link to a site in the name
 * +email+ - Add a link to a mailto: address
 
@@ -55,7 +55,21 @@ The output is:
 	&lt;a href=&quot;http:blog.shadowmaru.org&quot; class=&quot;fn n url&quot;&gt;
 		&lt;span class=&quot;given-name&quot;&gt;Ricardo&lt;/span&gt; &lt;span class=&quot;family-name&quot;&gt;Yasuda&lt;/span&gt;
 	&lt;/a&gt;
-	&lt;div class=&quot;adr&quot;&gt;
+	&lt;span class=&quot;adr&quot;&gt;
 		&lt;span class=&quot;country-name&quot;&gt;Brazil&lt;/span&gt;
-	&lt;/div&gt;
-  &lt;/span&gt;
\ No newline at end of file
+	&lt;/span&gt;
+  &lt;/span&gt;
+  
+An example with telephone numbers:
+
+  &lt;%= hcard(:fn =&gt; &quot;John Doe&quot;, :tel =&gt; { &quot;fax&quot; =&gt; &quot;544-5544&quot;, &quot;home&quot; =&gt; &quot;555-5555&quot; }) %&gt;
+
+The output is:
+
+  &lt;span class=&quot;vcard&quot;&gt;
+    &lt;span class=&quot;fn n&quot;&gt;John Doe&lt;/span&gt;
+    &lt;span class=&quot;tel&quot;&gt;
+      &lt;span class=&quot;tel-label-fax type&quot;&gt;Fax: &lt;/span&gt;&lt;span class=&quot;value&quot;&gt;544-5544&lt;/span&gt;
+      &lt;span class=&quot;tel-label-home type&quot;&gt;Home: &lt;/span&gt;&lt;span class=&quot;value&quot;&gt;555-5555&lt;/span&gt;
+    &lt;/span&gt; 
+  &lt;/span&gt;</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -21,18 +21,19 @@ module MicroformatsHelper
   # * +additional+ - Additional Name: goes between given and family names
   # * +prefix+ - Honorific Prefix: for titles like Dr. or Sir
   # * +suffix+ - Honorific Suffix: for titles like M.D. or Jr
+  # * +org+ - Organization name
   # 
   # ===Address
   # 
   # * +street+ - Street Address
   # * +locality+ - The city or similar
   # * +region+ - The state, county or similar
-  # * +postal-code+ - ZIP number
+  # * +postal_code+ - ZIP number
   # * +country+ - The country
   # 
   # ===Contact
   # 
-  # * +tel+ - Provide the phone number
+  # * +tel+ - Provide a hash with the phone types and numbers
   # * +url+ - Add a link to a site in the name
   # * +email+ - Add a link to a mailto: address
   def hcard(values)
@@ -107,7 +108,11 @@ module MicroformatsHelper
     end
 
     if tel = values[:tel]
-      span_tel = &quot;\nTel: &quot; + content_tag(&quot;div&quot;, tel, :class =&gt; &quot;tel&quot;) + &quot;\n&quot;
+      tel_values = &quot;&quot;
+      tel.each do |k,v|
+        tel_values += content_tag(&quot;span&quot;, &quot;#{k.capitalize}: &quot;, :class =&gt; &quot;tel-label-#{k} type&quot;) + content_tag(&quot;span&quot;, v, :class =&gt; &quot;value&quot;)
+      end
+      span_tel = &quot;\n&quot; + content_tag(&quot;span&quot;, tel_values, :class =&gt; &quot;tel&quot;) + &quot;\n&quot;
     else
       span_tel = &quot;&quot;
     end</diff>
      <filename>lib/microformats_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -45,7 +45,7 @@ class MicroformatsHelperTest &lt; Test::Unit::TestCase
   
   def test_hcard_address
     output = hcard(:fn =&gt; &quot;John Doe&quot;, :street =&gt; &quot;123 Fictional Lane&quot;, :locality =&gt; &quot;Neverland&quot;, :region =&gt; &quot;Imagination&quot;)
-    assert_equal &quot;&lt;span class=\&quot;vcard\&quot;&gt;\n&lt;span class=\&quot;fn n\&quot;&gt;John Doe&lt;/span&gt;\n\n&lt;div class=\&quot;adr\&quot;&gt;&lt;span class=\&quot;street-address\&quot;&gt;123 Fictional Lane&lt;/span&gt; &lt;span class=\&quot;locality\&quot;&gt;Neverland&lt;/span&gt; - &lt;span class=\&quot;region\&quot;&gt;Imagination&lt;/span&gt;&lt;/div&gt;\n&lt;/span&gt;&quot;, output
+    assert_equal &quot;&lt;span class=\&quot;vcard\&quot;&gt;\n&lt;span class=\&quot;fn n\&quot;&gt;John Doe&lt;/span&gt;\n\n&lt;span class=\&quot;adr\&quot;&gt;&lt;span class=\&quot;street-address\&quot;&gt;123 Fictional Lane&lt;/span&gt; &lt;span class=\&quot;locality\&quot;&gt;Neverland&lt;/span&gt; - &lt;span class=\&quot;region\&quot;&gt;Imagination&lt;/span&gt;&lt;/span&gt;\n&lt;/span&gt;&quot;, output
   end
   
   def test_hcard_email
@@ -54,7 +54,7 @@ class MicroformatsHelperTest &lt; Test::Unit::TestCase
   end
   
   def test_hcard_tel
-    output = hcard(:fn =&gt; &quot;John Doe&quot;, :tel =&gt; &quot;555-5555&quot;)
-    assert_equal &quot;&lt;span class=\&quot;vcard\&quot;&gt;\n&lt;span class=\&quot;fn n\&quot;&gt;John Doe&lt;/span&gt;\n\nTel: &lt;div class=\&quot;tel\&quot;&gt;555-5555&lt;/div&gt;\n&lt;/span&gt;&quot;, output
+    output = hcard(:fn =&gt; &quot;John Doe&quot;, :tel =&gt; { &quot;fax&quot; =&gt; &quot;544-5544&quot;, &quot;home&quot; =&gt; &quot;555-5555&quot; })
+    assert_equal &quot;&lt;span class=\&quot;vcard\&quot;&gt;\n&lt;span class=\&quot;fn n\&quot;&gt;John Doe&lt;/span&gt;\n\n&lt;span class=\&quot;tel\&quot;&gt;&lt;span class=\&quot;tel-label-fax type\&quot;&gt;Fax: &lt;/span&gt;&lt;span class=\&quot;value\&quot;&gt;544-5544&lt;/span&gt;&lt;span class=\&quot;tel-label-home type\&quot;&gt;Home: &lt;/span&gt;&lt;span class=\&quot;value\&quot;&gt;555-5555&lt;/span&gt;&lt;/span&gt;\n&lt;/span&gt;&quot;, output
   end
 end
\ No newline at end of file</diff>
      <filename>test/microformats_helper_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>24a1e44bf6b60826b256dd3f7af402a762dcf547</id>
    </parent>
  </parents>
  <author>
    <name>Ricardo Shiota Yasuda</name>
    <email>shadow11@gmail.com</email>
  </author>
  <url>http://github.com/shadow11/microformats_helper/commit/e1c7f4224f50006132d4262e5d349c1eae9b6af8</url>
  <id>e1c7f4224f50006132d4262e5d349c1eae9b6af8</id>
  <committed-date>2009-09-04T09:53:31-07:00</committed-date>
  <authored-date>2009-09-04T09:53:31-07:00</authored-date>
  <message>Support for multiple phone numbers</message>
  <tree>14df86186b4bc13eb220a834c8669e227415ece9</tree>
  <committer>
    <name>Ricardo Shiota Yasuda</name>
    <email>shadow11@gmail.com</email>
  </committer>
</commit>
