<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -204,7 +204,7 @@ module DataMapper
         @resource_naming_convention = NamingConventions::UnderscoredAndPluralized
         @field_naming_convention    = NamingConventions::Underscored
 
-        @transactions = Hash.new do |hash, key| 
+        @transactions = Hash.new do |hash, key|
           hash.delete_if do |k, v|
             !k.respond_to?(:alive?) || !k.alive?
           end</diff>
      <filename>lib/dm-core/adapters/abstract_adapter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -114,6 +114,10 @@ module DataMapper
       reversed.first(*args)
     end
 
+    def at(offset)
+      first(:offset =&gt; offset)
+    end
+
     # TODO: add at()
     # TODO: add slice()
     # TODO: alias [] to slice()</diff>
      <filename>lib/dm-core/collection.rb</filename>
    </modified>
    <modified>
      <diff>@@ -249,7 +249,9 @@ if ADAPTER
 
         describe '#at' do
           it 'should return a Resource' do
-            @collection.at(0).should be_kind_of(DataMapper::Resource)
+            resource_at = @collection.at(1)
+            resource_at.should be_kind_of(DataMapper::Resource)
+            resource_at.id.should == @bessie.id
           end
         end
 </diff>
      <filename>spec/integration/collection_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -131,7 +131,7 @@ describe DataMapper::Adapters::AbstractAdapter do
     t = Thread.new do
       @adapter.push_transaction(&quot;plur&quot;)
     end
-    while t.alive? 
+    while t.alive?
       sleep 0.1
     end
     @adapter.instance_eval do @transactions end.size.should == 1</diff>
      <filename>spec/unit/adapters/abstract_adapter_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>852c46cee14f159d016e0ca9945679859a1e6d39</id>
    </parent>
  </parents>
  <author>
    <name>Dan Kubb</name>
    <email>dan.kubb@autopilotmarketing.com</email>
  </author>
  <url>http://github.com/sam/dm-core/commit/5f9e56739ff520fea01e0b71bdb08a4d4dd9cd29</url>
  <id>5f9e56739ff520fea01e0b71bdb08a4d4dd9cd29</id>
  <committed-date>2008-06-08T02:18:11-07:00</committed-date>
  <authored-date>2008-06-08T02:18:11-07:00</authored-date>
  <message>Added Collection#at</message>
  <tree>615fef37e1087f5fcc7060d0594c2fae3e910ea9</tree>
  <committer>
    <name>Dan Kubb</name>
    <email>dan.kubb@autopilotmarketing.com</email>
  </committer>
</commit>
