mailcvt 0.1.30 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
data/lib/log_helper.rb CHANGED
@@ -33,18 +33,24 @@ class LogHelper
33
33
 
34
34
  if cap == 'C' and g[:key][1] == 'o'
35
35
  cols << concatattach(g)
36
- @valends[-1] &= false unless g[:valend]
36
+ @valends[-1] &= isvalend?(g)
37
37
  else
38
38
  id = @@ids[cap]
39
39
  next if cols[id]
40
40
  cols[id] = concatval(g)
41
- @valends[id] = false unless g[:valend]
41
+ @valends[id] = isvalend?(g)
42
42
  end
43
43
  end
44
44
 
45
45
  cols.join("\t")
46
46
  end
47
47
 
48
+ def isvalend?(group)
49
+ return true unless group[:afterlines]
50
+ return false unless g[:valend]
51
+ true
52
+ end
53
+
48
54
  def concatattach(group)
49
55
  v = concatval(group)
50
56
 
@@ -1,3 +1,3 @@
1
1
  module Mailcvt
2
- VERSION = '0.1.30'
2
+ VERSION = '0.1.31'
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.30
4
+ version: 0.1.31
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: -3865778219648588496
123
+ hash: -1974224014349753452
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: -3865778219648588496
132
+ hash: -1974224014349753452
133
133
  requirements: []
134
134
  rubyforge_project:
135
135
  rubygems_version: 1.8.25