mailcvt 0.1.33 → 0.1.34

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/grep_mail.rb +2 -10
  2. data/lib/mailcvt/version.rb +1 -1
  3. metadata +3 -3
data/lib/grep_mail.rb CHANGED
@@ -14,8 +14,6 @@ class GrepMail
14
14
  lines.each do |line|
15
15
  dlm = line[@pcontent-1]
16
16
  if dlm == ':'
17
- finish_multiline_value
18
-
19
17
  valend = false
20
18
  k,v = keyvalue(line)
21
19
  @groups << {key: k, value: v}
@@ -23,24 +21,18 @@ class GrepMail
23
21
  next if valend
24
22
 
25
23
  v = valueonly(line)
24
+ curgrp = @groups[-1]
26
25
  if v
27
- curgrp = @groups[-1]
28
26
  curgrp[:afterlines] = [] unless curgrp[:afterlines]
29
27
  curgrp[:afterlines] << v
30
28
  else
31
29
  valend = true
32
- finish_multiline_value
30
+ curgrp[:valend] = true if curgrp[:afterlines]
33
31
  end
34
32
  end
35
33
  end
36
34
  end
37
35
 
38
- def finish_multiline_value
39
- return if @groups.length == 0
40
- curgrp = @groups[-1]
41
- curgrp[:valend] = true if curgrp[:afterlines]
42
- end
43
-
44
36
  def keyvalue(line)
45
37
  if line[@pcontent] == 'C' and line[@pcontent] == 'o'
46
38
  dlm = ';'
@@ -1,3 +1,3 @@
1
1
  module Mailcvt
2
- VERSION = '0.1.33'
2
+ VERSION = '0.1.34'
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.1.33
4
+ version: 0.1.34
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  segments:
122
122
  - 0
123
- hash: 3688644604964186558
123
+ hash: -3607739446620840704
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  none: false
126
126
  requirements:
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  segments:
131
131
  - 0
132
- hash: 3688644604964186558
132
+ hash: -3607739446620840704
133
133
  requirements: []
134
134
  rubyforge_project:
135
135
  rubygems_version: 1.8.25