<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,6 @@
+v0.7.5 (27th August 2008)
+- Fix a 1.8.7ism
+
 v0.7.4 (7th August 2008)
 - Raise a MalformedPDFError if a content stream contains an unterminated string
 - Fix an bug that was causing an endless loop on some OSX systems</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@ require 'rake/testtask'
 require &quot;rake/gempackagetask&quot;
 require 'spec/rake/spectask'
 
-PKG_VERSION = &quot;0.7.4&quot;
+PKG_VERSION = &quot;0.7.5&quot;
 PKG_NAME = &quot;pdf-reader&quot;
 PKG_FILE_NAME = &quot;#{PKG_NAME}-#{PKG_VERSION}&quot;
 </diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -121,10 +121,16 @@ class PDF::Reader
 
         # find the first occurance of ( ) [ \ or ]
         #
-        # we used to use the following line, but it fails sometimes
-        # under OSX.
-        #   i = @buffer.raw.index(/[\\\(\)]/)
-        i = @buffer.raw.unpack(&quot;C*&quot;).index { |n| [40, 41, 91, 92, 93].include?(n) }
+        # I originally just used the regexp form of index(), but it seems to be
+        # buggy on some OSX systems (returns nil when there is a match). The
+        # block form of index() is more reliable, but only works on 1.8.7 or
+        # greater.
+        #
+        if RUBY_VERSION &gt;= &quot;1.8.7&quot;
+          i = @buffer.raw.unpack(&quot;C*&quot;).index { |n| [40, 41, 91, 92, 93].include?(n) }
+        else
+          i = @buffer.raw.index(/[\\\(\)]/)
+        end
 
         if i.nil?
           str &lt;&lt; @buffer.raw + &quot;\n&quot;</diff>
      <filename>lib/pdf/reader/parser.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d3cde1799ee27dcd7f44d6bb0be7fd9bc5b387cc</id>
    </parent>
  </parents>
  <author>
    <name>James Healy</name>
    <email>jimmy@deefa.com</email>
  </author>
  <url>http://github.com/yob/pdf-reader/commit/0ae55e7d3eebd42ae82ab3fd17c7332bb75e67ac</url>
  <id>0ae55e7d3eebd42ae82ab3fd17c7332bb75e67ac</id>
  <committed-date>2008-08-26T17:12:08-07:00</committed-date>
  <authored-date>2008-08-26T17:09:43-07:00</authored-date>
  <message>Remove a 1.8.7ism</message>
  <tree>bd3a1f8f9814021395d94991fc7c790fe4ae607c</tree>
  <committer>
    <name>James Healy</name>
    <email>jimmy@deefa.com</email>
  </committer>
</commit>
