<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,6 @@
 EXIF Reader 0.10.5
 * bug fix; &quot;[#15421] duplicate orientation field behavior&quot;, first field (of any type) is leading now
+* Ruby 1.9 compatible
 
 EXIF Reader 0.10.4
 * Thumbnail extraction; [#15317] Please add thumbnail extraction</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -41,8 +41,8 @@ if ARGV.size == 0
 else
   ARGV.each do |fname|
     case fname
-    when /\.(jpg|jpeg)$/i: pp_jpeg fname
-    when /\.(tif|tiff)$/i: pp_tiff fname
+    when /\.(jpg|jpeg)$/i; pp_jpeg fname
+    when /\.(tif|tiff)$/i; pp_tiff fname
     end
     puts
   end</diff>
      <filename>bin/exifr</filename>
    </modified>
    <modified>
      <diff>@@ -50,28 +50,29 @@ module EXIFR
     
   private
     def examine(io)
-      raise 'malformed JPEG' unless io.getc == 0xFF &amp;&amp; io.getc == 0xD8 # SOI
-
       class &lt;&lt; io
-        def readint; (readchar &lt;&lt; 8) + readchar; end
+        def readbyte; readchar; end unless method_defined?(:readbyte)
+        def readint; (readbyte &lt;&lt; 8) + readbyte; end
         def readframe; read(readint - 2); end
-        def readsof; [readint, readchar, readint, readint, readchar]; end
+        def readsof; [readint, readbyte, readint, readint, readbyte]; end
         def next
-          c = readchar while c != 0xFF
-          c = readchar while c == 0xFF
+          c = readbyte while c != 0xFF
+          c = readbyte while c == 0xFF
           c
         end
       end unless io.respond_to? :readsof
 
+      raise 'malformed JPEG' unless io.readbyte == 0xFF &amp;&amp; io.readbyte == 0xD8 # SOI
+
       app1s = []
       while marker = io.next
         case marker
           when 0xC0..0xC3, 0xC5..0xC7, 0xC9..0xCB, 0xCD..0xCF # SOF markers
             length, @bits, @height, @width, components = io.readsof
             raise 'malformed JPEG' unless length == 8 + components * 3
-          when 0xD9, 0xDA:  break # EOI, SOS
-          when 0xFE:        (@comment ||= []) &lt;&lt; io.readframe # COM
-          when 0xE1:        app1s &lt;&lt; io.readframe # APP1, may contain EXIF tag
+          when 0xD9, 0xDA;  break # EOI, SOS
+          when 0xFE;        (@comment ||= []) &lt;&lt; io.readframe # COM
+          when 0xE1;        app1s &lt;&lt; io.readframe # APP1, may contain EXIF tag
           else              io.readframe # ignore frame
         end
       end</diff>
      <filename>lib/jpeg.rb</filename>
    </modified>
    <modified>
      <diff>@@ -238,7 +238,7 @@ module EXIFR
     
     time_proc = proc do |value|
       if value =~ /^(\d{4}):(\d\d):(\d\d) (\d\d):(\d\d):(\d\d)$/
-        Time.mktime($1, $2, $3, $4, $5, $6) rescue nil
+        Time.mktime($1.to_i, $2.to_i, $3.to_i, $4.to_i, $5.to_i, $6.to_i) rescue nil
       else
         value
       end
@@ -258,13 +258,13 @@ module EXIFR
       # Rotate and/or flip for proper viewing.
       def transform_rmagick(img)
         case @type
-        when :TopRight    : img.flop
-        when :BottomRight : img.rotate(180)
-        when :BottomLeft  : img.flip
-        when :LeftTop     : img.rotate(90).flop
-        when :RightTop    : img.rotate(90)
-        when :RightBottom : img.rotate(270).flop
-        when :LeftBottom  : img.rotate(270)     
+        when :TopRight    ; img.flop
+        when :BottomRight ; img.rotate(180)
+        when :BottomLeft  ; img.flip
+        when :LeftTop     ; img.rotate(90).flop
+        when :RightTop    ; img.rotate(90)
+        when :RightBottom ; img.rotate(270).flop
+        when :LeftBottom  ; img.rotate(270)
         else
           img
         end
@@ -418,7 +418,7 @@ module EXIFR
       end
     
       def to_yaml_properties
-        '@fields'
+        ['@fields']
       end
       
     private
@@ -471,7 +471,7 @@ module EXIFR
 
         if len &amp;&amp; pack
           start = len &gt; 4 ? @offset : (pos + 8)
-          @value = pack[data[start..(start + len - 1)]]
+          @value = [pack[data[start..(start + len - 1)]]].flatten
         end
       end
     end</diff>
      <filename>lib/tiff.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8da576219d5d7f5b63c205c0384d8e7c8168c530</id>
    </parent>
  </parents>
  <author>
    <name>Remco van 't Veer</name>
    <email>rwvtveer@xs4all.nl</email>
  </author>
  <url>http://github.com/remvee/exifr/commit/0623780ac70ec778f53a9227ded874b69d9e6d79</url>
  <id>0623780ac70ec778f53a9227ded874b69d9e6d79</id>
  <committed-date>2007-12-28T03:02:32-08:00</committed-date>
  <authored-date>2007-12-28T03:02:32-08:00</authored-date>
  <message> r3716@RemBook2:  remco | 2007-12-28 12:02:21 +0100
 Ruby 1.9 compatibility


git-svn-id: http://exifr.rubyforge.org/svn/trunk@109 7dc9e74c-6311-0410-82d3-e275c7e2d18c</message>
  <tree>1aaf18f0117d26605a6e2ab4de40d4a5030370df</tree>
  <committer>
    <name>Remco van 't Veer</name>
    <email>rwvtveer@xs4all.nl</email>
  </committer>
</commit>
