<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,18 +5,13 @@ class String
     return self.to_lines.map { |s| s[basis..-1] }.join
   end
 
-  # Provides backward compatible way to get a collection of lines.  To avoid
-  # overriding of the original each_line of ruby-1.8.6, we define new method
-  # for that purpose.  Since defining to_a for ruby-1.9.1 is also bad idea,
-  # even if it were necessary, it should not be to_a but such like to_lines
-  # which is as follows.
-  if RUBY_VERSION &lt;= &quot;1.8.6&quot;
+  if &quot;&quot;.respond_to?(:lines)
     def to_lines
-      to_a
+      lines.to_a
     end
   else
     def to_lines
-      each_line.to_a
+      to_a
     end
   end
 end</diff>
      <filename>lib/templater/core_ext/string.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a8ba230b5ef3780b12dbcf910d355cff76380ec9</id>
    </parent>
  </parents>
  <author>
    <name>Theo Hultberg and Jonas Nicklas</name>
    <email>dev+iconara+jnicklas@elabs.se</email>
  </author>
  <url>http://github.com/jnicklas/templater/commit/4e6de487b590c5cfb5e67b8c8d59b4360b38fefd</url>
  <id>4e6de487b590c5cfb5e67b8c8d59b4360b38fefd</id>
  <committed-date>2009-08-27T14:40:50-07:00</committed-date>
  <authored-date>2009-08-27T14:40:50-07:00</authored-date>
  <message>Finally a solid to_lines implementation?</message>
  <tree>69014deef537a1d8717352e8e857c0e1c33a0514</tree>
  <committer>
    <name>Theo Hultberg and Jonas Nicklas</name>
    <email>dev+iconara+jnicklas@elabs.se</email>
  </committer>
</commit>
