<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,7 +11,7 @@ lib/phone_number/country_code/base.rb
 lib/phone_number/country_code/country_code_1.rb
 lib/phone_number/country_code/country_code_54.rb
 lib/phone_number/version.rb
-phonenumber.gemspec
+phone_number.gemspec
 test/test_country_code_1.rb
 test/test_country_code_54.rb
 test/test_helper.rb</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,13 @@
 require 'newgem'
 require File.dirname(__FILE__) + '/lib/phone_number/version.rb'
 
-$hoe = Hoe.new('phonenumber', PhoneNumber::Version::STRING) do |p|
+$hoe = Hoe.new('phone_number', PhoneNumber::Version::STRING) do |p|
   p.developer('Norman Clarke', 'norman@randomba.org')
   p.changes              = p.paragraphs_of(&quot;History.txt&quot;, 0..1).join(&quot;\n\n&quot;)
-  p.rubyforge_name       = p.name # TODO this is default value
-  p.summary = &quot;&quot;
-  p.description = &quot;&quot;
+  p.rubyforge_name       = &quot;phone_number&quot; # TODO this is default value
+  p.summary = &quot;none&quot;
+  p.description = &quot;none&quot;
+  p.url = &quot;http://github.com/norman/phonenumber&quot;
   # p.extra_deps         = [
   #   ['activesupport','&gt;= 2.0.2'],
   # ]</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -11,6 +11,15 @@ module CountryCode
         CountryCode::Base
       end
     end
+    
+    # Return the numeric country code for the given ISO.
+    def code(iso)
+      CODES.select {|x| x[1].include?(iso)}[0][0]
+    rescue NoMethodError
+      nil
+    end
+    
+    
   end
 
   # Maps numeric country prefix to country ISO's. Taken from {Wikipedia}[http://en.wikipedia.org/wiki/List_of_country_calling_codes].</diff>
      <filename>lib/phone_number/country_code.rb</filename>
    </modified>
    <modified>
      <diff>@@ -13,19 +13,19 @@ class CountryCode::CountryCode1 &lt; CountryCode::Base
     end
     
     def real_number(phone_number)
-      phone_number.number.to_s.gsub(/^1/, '')
+      phone_number.number.to_s.gsub(/\A1/, '')
     end
 
     def area_code(phone_number)
-      phone_number.real_number.slice(0..2).to_s
+      phone_number.real_number.slice(0, 3).to_s
     end
 
     def prefix(phone_number)
-      phone_number.real_number.slice(3..5).to_s
+      phone_number.real_number.slice(3, 3).to_s
     end
 
     def line_number(phone_number)
-      phone_number.real_number.slice(6..9).to_s
+      phone_number.real_number.slice(6, 4).to_s
     end
 
     def region(phone_number)</diff>
      <filename>lib/phone_number/country_code/country_code_1.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,8 @@ class CountryCode::CountryCode54 &lt; CountryCode::Base
     end
 
     def real_number(phone_number)
-      phone_number.number.to_s.gsub(/\A0|\A54/, '')
+      num = phone_number.number.to_s.gsub(/\A0|\A54/, '')
+      num =~ /^4[\d]{7}/ ? &quot;11#{num}&quot; : num
     end
 
     def area_code(phone_number)</diff>
      <filename>lib/phone_number/country_code/country_code_54.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module PhoneNumber
   module Version
     MAJOR = 0
     MINOR = 0
-    TINY = 0
+    TINY = 1
     STRING = [MAJOR, MINOR, TINY].join('.')
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/phone_number/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,13 +8,13 @@ class TestCountryCode54 &lt; Test::Unit::TestCase
     city_should_be &quot;Buenos Aires&quot;
     country_code_should_be &quot;54&quot;
     country_should_be &quot;AR&quot;
+    default_format_should_be &quot;011 4444 3333&quot;
     line_number_should_be &quot;3333&quot;
     local_prefix_should_be nil
     prefix_should_be &quot;4444&quot;
     real_number_should_be &quot;1144443333&quot;
     real_number_without_local_prefix_should_be &quot;1144443333&quot;
     region_should_be &quot;C&quot;
-    default_format_should_be &quot;011 4444 3333&quot;
   end
 
   context &quot;A Buenos Aires cell number&quot; do
@@ -23,13 +23,13 @@ class TestCountryCode54 &lt; Test::Unit::TestCase
     city_should_be &quot;Buenos Aires&quot;
     country_code_should_be &quot;54&quot;
     country_should_be &quot;AR&quot;
+    default_format_should_be &quot;011 15 5555 4444&quot;
     line_number_should_be &quot;4444&quot;
     local_prefix_should_be &quot;15&quot;
     prefix_should_be &quot;5555&quot;
     real_number_should_be &quot;111555554444&quot;
     real_number_without_local_prefix_should_be &quot;1155554444&quot;
     region_should_be &quot;C&quot;
-    default_format_should_be &quot;011 15 5555 4444&quot;
   end
 
   context &quot;A Buenos Aires cell number dialed from abroad&quot; do
@@ -38,6 +38,7 @@ class TestCountryCode54 &lt; Test::Unit::TestCase
     city_should_be &quot;Buenos Aires&quot;
     country_code_should_be &quot;54&quot;
     country_should_be &quot;AR&quot;
+    # default_format_should_be &quot;011 15 5555 4444&quot;
     line_number_should_be &quot;4444&quot;
     local_prefix_should_be &quot;9&quot;
     prefix_should_be &quot;5555&quot;
@@ -52,13 +53,13 @@ class TestCountryCode54 &lt; Test::Unit::TestCase
     city_should_be &quot;Bah&#237;a Blanca&quot;
     country_code_should_be &quot;54&quot;
     country_should_be &quot;AR&quot;
+    default_format_should_be &quot;0291 444 3333&quot;
     line_number_should_be &quot;3333&quot;
     local_prefix_should_be nil
     prefix_should_be &quot;444&quot;
     real_number_should_be &quot;2914443333&quot;
     real_number_without_local_prefix_should_be &quot;2914443333&quot;
     region_should_be &quot;B&quot;
-    default_format_should_be &quot;0291 444 3333&quot;
   end
 
   context &quot;A Bariloche phone number&quot; do
@@ -67,13 +68,13 @@ class TestCountryCode54 &lt; Test::Unit::TestCase
     city_should_be &quot;San Carlos de Bariloche&quot;
     country_code_should_be &quot;54&quot;
     country_should_be &quot;AR&quot;
+    default_format_should_be &quot;02944 444 333&quot;
     line_number_should_be &quot;333&quot;
     local_prefix_should_be nil
     prefix_should_be &quot;444&quot;
     real_number_should_be &quot;2944444333&quot;
     real_number_without_local_prefix_should_be &quot;2944444333&quot;
     region_should_be &quot;R&quot;
-    default_format_should_be &quot;02944 444 333&quot;
   end
 
 end
\ No newline at end of file</diff>
      <filename>test/test_country_code_54.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>phonenumber.gemspec</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>ac248789f41b5749a255a1aa380c2d558dd781c5</id>
    </parent>
  </parents>
  <author>
    <name>Norman Clarke</name>
    <email>norman@randomba.org</email>
  </author>
  <url>http://github.com/norman/phonenumber/commit/cd7e8106411455dc3f8db35beb6a06d05a82d48e</url>
  <id>cd7e8106411455dc3f8db35beb6a06d05a82d48e</id>
  <committed-date>2009-04-16T09:59:19-07:00</committed-date>
  <authored-date>2009-04-16T09:59:19-07:00</authored-date>
  <message>Improved Buenos Aires city phone number normalization.</message>
  <tree>ab95018c30de90c5654e7ac65fa7ecc393bc08ad</tree>
  <committer>
    <name>Norman Clarke</name>
    <email>norman@randomba.org</email>
  </committer>
</commit>
