<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -166,15 +166,8 @@ module Externals
         return if empty
         raise &quot;I was given no file_string&quot; unless file_string
 
-        #        if !externals_file &amp;&amp; File.exists?('.externals')
-        #          open('.externals', 'r') do |f|
-        #            externals_file = f.read
-        #          end
-        #        end
-
-        #externals_file ||= &quot;&quot;
-
-        titles = file_string.grep SECTION_TITLE_REGEX
+        titles = []
+        file_string.each_line {|line| titles &lt;&lt; line if line =~ SECTION_TITLE_REGEX}
         bodies = file_string.split SECTION_TITLE_REGEX_NO_GROUPS
 
         if titles.size &gt; 0 &amp;&amp; bodies.size &gt; 0
@@ -190,24 +183,6 @@ module Externals
         end
       end
 
-      #      def projects
-      #        retval = []
-      #        sections.each do |section|
-      #          retval += section.projects
-      #        end
-      #
-      #        retval
-      #      end
-
-      #      def subprojects
-      #        retval = []
-      #        sections.each do |section|
-      #          retval += section.projects unless section.main?
-      #        end
-      #
-      #        retval
-      #      end
-
       def write path  # = &quot;.externals&quot;
         raise &quot;no path given&quot; unless path
         open(path, 'w') do |f|</diff>
      <filename>lib/externals/configuration/configuration.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,7 +17,7 @@ module Externals
         self.scm = scm
 
         self.title = SECTION_TITLE_REGEX.match(title_string)[1]
-        
+
         self.scm ||= self.title
 
         raise &quot;Invalid section title: #{title_string}&quot; unless title
@@ -87,12 +87,12 @@ module Externals
         title = title.to_s
         sections.detect {|section| section.title == title}
       end
-      
+
       def add_empty_section  title
         raise &quot;Section already exists&quot; if self[title]
         sections &lt;&lt; Section.new(&quot;\n\n[#{title.to_s}]\n&quot;, &quot;&quot;)
       end
-      
+
       def self.new_empty
         new nil, true
       end
@@ -102,7 +102,7 @@ module Externals
           self.file_string = ''
           return
         end
-        
+
         if !externals_file &amp;&amp; File.exists?('.externals')
           open('.externals', 'r') do |f|
             externals_file = f.read
@@ -113,7 +113,8 @@ module Externals
 
         self.file_string = externals_file
 
-        titles = externals_file.grep SECTION_TITLE_REGEX
+        titles = []
+        externals_file.each_line {|line| titles &lt;&lt; line if line =~ SECTION_TITLE_REGEX}
         bodies = externals_file.split SECTION_TITLE_REGEX_NO_GROUPS
 
         if titles.size &gt; 0 &amp;&amp; bodies.size &gt; 0
@@ -146,7 +147,7 @@ module Externals
 
         retval
       end
-      
+
       def main_project
         sections.each do |section|
           return section.projects.first if section.main?</diff>
      <filename>lib/externals/configuration/old_configuration.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fdc4533550cc278570fe01b818eeb71b053c4154</id>
    </parent>
  </parents>
  <author>
    <name>Miles Georgi</name>
    <email>azimux@gmail.com</email>
  </author>
  <url>http://github.com/azimux/externals/commit/c85933ec8bba7d5f76fe83c0ac352462fa4217c6</url>
  <id>c85933ec8bba7d5f76fe83c0ac352462fa4217c6</id>
  <committed-date>2009-10-29T15:19:15-07:00</committed-date>
  <authored-date>2009-10-29T15:19:15-07:00</authored-date>
  <message>Fixed a compatibility issue with ruby 1.9

String no longer includes Enumerable in 1.9</message>
  <tree>addbda0dbcbd018dcf56219819647e352fdd10ad</tree>
  <committer>
    <name>Miles Georgi</name>
    <email>azimux@gmail.com</email>
  </committer>
</commit>
