mailcvt 0.2.17 → 0.2.18

Sign up to get free protection for your applications and to get access to all the features.
data/bin/mailcvt CHANGED
@@ -123,8 +123,8 @@ command :decode do |c|
123
123
  c.action do |global_options,options,args|
124
124
  err = "decode usage: mailcvt decode [mailcvt-output]"
125
125
  raise err unless args.length == 1
126
- mi = Decoder.new(args[0])
127
- mi.decode
126
+ ew = EncodedWord.new(args[0])
127
+ ew.decode
128
128
  end
129
129
  end
130
130
 
data/lib/encoded_word.rb CHANGED
@@ -8,7 +8,14 @@ class EncodedWord
8
8
  end
9
9
 
10
10
  def decode
11
- Dir.glob(File.join(@inputdir, '**/*.mlog')).select do |f|
11
+ =begin
12
+ Dir.foreach(@inputdir) do |dir|
13
+ next if dir == '.' or dir == '..'
14
+ path = File.join(@inputdir, dir)
15
+ next unless File.directory?(path)
16
+ =end
17
+
18
+ Dir.glob(File.join(@inputdir, File.join('**', '*.mlog')).select do |f|
12
19
  puts f
13
20
  File.open(f + '.plain', 'w') do |out|
14
21
  File.readlines(f).each do |line|
@@ -1,3 +1,3 @@
1
1
  module Mailcvt
2
- VERSION = '0.2.17'
2
+ VERSION = '0.2.18'
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.17
4
+ version: 0.2.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-01 00:00:00.000000000 Z
12
+ date: 2013-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -121,18 +121,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  - - ! '>='
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
- segments:
125
- - 0
126
- hash: -1188711788048111200
127
124
  required_rubygems_version: !ruby/object:Gem::Requirement
128
125
  none: false
129
126
  requirements:
130
127
  - - ! '>='
131
128
  - !ruby/object:Gem::Version
132
129
  version: '0'
133
- segments:
134
- - 0
135
- hash: -1188711788048111200
136
130
  requirements: []
137
131
  rubyforge_project:
138
132
  rubygems_version: 1.8.25