<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -17,8 +17,17 @@ ERB is also supported inside the configuration.
 development:
   app.dewey.ws:	192.168.0.1
 
-== TODO
+== Experimental
 
-Complete tests -- yeah bad me.
+One can specify &quot;wildcard&quot; hosts (more or less).  The host 'baz.foo.com' will match
+the most specific ('baz.foo.com') when present in hosts.yml.  Otherwise, it will
+match '.foo.com' then '.com'.
+
+---
+.com: 1.1.1.1
+.foo.com: 6.6.6.6
+bar.com: 10.10.10.2
+baz.com: 10.10.10.3
+baz.foo.com: 10.10.10.4
 
 Copyright (c) 2008 John Dewey &lt;john@dewey.ws&gt;, released under the MIT license</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ class IPSocket
     CONFIG  = (c.is_a? FalseClass) ? {} : ((c.has_key? RAILS_ENV) ? c[RAILS_ENV] : c)
 
     def getaddress_with_yaml(host)
-      CONFIG[host] ? CONFIG[host].to_s : getaddress_without_yaml(host)
+      CONFIG[host] ? CONFIG[host].to_s : (CONFIG[CONFIG.keys.map{ |k| host.match(/#{k}/) }.first.to_s] || getaddress_without_yaml(host))
     end
     alias_method_chain :getaddress, :yaml
   end</diff>
      <filename>lib/railsolver.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ddc898da4e457b4e70c7bf44f9420ab01923ea06</id>
    </parent>
  </parents>
  <author>
    <name>John Dewey</name>
    <email>john@dewey.ws</email>
  </author>
  <url>http://github.com/retr0h/railsolver/commit/0729600375be1d42ce10a299feddb6fcefac6064</url>
  <id>0729600375be1d42ce10a299feddb6fcefac6064</id>
  <committed-date>2008-09-12T23:14:04-07:00</committed-date>
  <authored-date>2008-09-12T23:14:04-07:00</authored-date>
  <message>added wildcard caps.</message>
  <tree>a8aa359720d6d6405b9c0e9157c3632b26363427</tree>
  <committer>
    <name>John Dewey</name>
    <email>john@dewey.ws</email>
  </committer>
</commit>
