mailcvt 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,6 @@ class LineConverter
13
13
  def initialize
14
14
  @hvals = Array.new(5, "")
15
15
  @attach = ""
16
- @stage = 0
17
16
  end
18
17
 
19
18
  def log
@@ -22,19 +21,9 @@ class LineConverter
22
21
  line << @attach
23
22
  end
24
23
 
25
- def delimiter?(line)
26
- if line == nil or line.empty? or line == "\n"
27
- @stage += 1
28
- return true
29
- end
30
- false
31
- end
32
-
33
24
  def convert(line)
34
- return if delimiter?(line)
35
-
36
25
  cap = line[0]
37
- if @stage == 0
26
+ if not @hfinished
38
27
  convertheader(cap, line)
39
28
  else
40
29
  convertbody(cap, line)
@@ -42,6 +31,11 @@ class LineConverter
42
31
  end
43
32
 
44
33
  def convertheader(cap, line)
34
+ if cap == "\n"
35
+ @hfinished = true
36
+ return
37
+ end
38
+
45
39
  if cap == "\t" or cap == ' '
46
40
  @hvals[@hk[:id]] += "\a#{line.strip}" if @hk
47
41
  else
@@ -1,3 +1,3 @@
1
1
  module Mailcvt
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
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.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 2517497545800885469
115
+ hash: -365539335131801819
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  segments:
123
123
  - 0
124
- hash: 2517497545800885469
124
+ hash: -365539335131801819
125
125
  requirements: []
126
126
  rubyforge_project:
127
127
  rubygems_version: 1.8.25