ruby-msg 1.2.17 → 1.2.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/msg.rb +1 -1
  2. data/lib/msg/properties.rb +1 -1
  3. metadata +2 -2
data/lib/msg.rb CHANGED
@@ -20,7 +20,7 @@ require 'mime'
20
20
  #
21
21
 
22
22
  class Msg
23
- VERSION = '1.2.17'
23
+ VERSION = '1.2.17.1'
24
24
  # we look here for the yaml files in data/, and the exe files for support
25
25
  # decoding at the moment.
26
26
  SUPPORT_DIR = File.dirname(__FILE__) + '/..'
@@ -98,7 +98,7 @@ class Msg
98
98
  0x001f => proc { |obj| Ole::Types::FROM_UTF16.iconv obj.read }, # unicode
99
99
  # ascii
100
100
  # FIXME hack did a[0..-2] before, seems right sometimes, but for some others it chopped the text. chomp
101
- 0x001e => proc { |obj| a = obj.read; a[-1] == 0 ? a[0...-2] : a },
101
+ 0x001e => proc { |obj| obj.read.chomp 0.chr },
102
102
  0x0102 => proc { |obj| obj.open }, # binary?
103
103
  :default => proc { |obj| obj.open }
104
104
  }
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: ruby-msg
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.2.17
7
- date: 2007-05-13 00:00:00 +10:00
6
+ version: 1.2.17.1
7
+ date: 2007-06-16 00:00:00 +10:00
8
8
  summary: Ruby Msg library.
9
9
  require_paths:
10
10
  - lib