mailcvt 0.2.23 → 0.2.24

Sign up to get free protection for your applications and to get access to all the features.
data/lib/encoded_word.rb CHANGED
@@ -15,10 +15,7 @@ class EncodedWord
15
15
  Dir.glob(File.join(@inputdir, File.join('**', '*.mlog'))).select do |f|
16
16
  puts f
17
17
  File.open(f + '.plain', 'w') do |out|
18
- File.open(f) do |file|
19
- f.each_line do |line|
20
- line = line.encode('utf-8', file.external_encoding.name,
21
- :undef=>:replace, :invalid=>:replace)
18
+ File.open(f, 'r:us-ascii:utf-8').each_line do |line|
22
19
  parts = mysplit(line)
23
20
  newparts = []
24
21
  newparts << format_date(parts[0]) #date
@@ -31,7 +28,6 @@ class EncodedWord
31
28
  out.puts newparts.join("\t")
32
29
  end
33
30
  end
34
- end
35
31
  end
36
32
  end
37
33
 
@@ -1,3 +1,3 @@
1
1
  module Mailcvt
2
- VERSION = '0.2.23'
2
+ VERSION = '0.2.24'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailcvt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.23
4
+ version: 0.2.24
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: