vmail 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,11 @@ module Vmail
34
34
  # helper method
35
35
  def find_text_part2(part, content_type)
36
36
  if part.multipart?
37
- part.parts.map {|p| find_text_part2(p, p.content_type)}.compact.first
37
+ part.parts.
38
+ map {|p| find_text_part2(p, p.content_type)}.
39
+ compact.
40
+ select {|p| !p.attachment?}.
41
+ first
38
42
  elsif content_type =~ %r[^text/plain] ||
39
43
  content_type =~ %r[text/plain] ||
40
44
  content_type =~ %r[message/rfc]
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.1.0
5
+ version: 2.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Choi
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-01 00:00:00 -04:00
13
+ date: 2011-07-04 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency