attachments 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -20,6 +20,10 @@ times faster at decoding large attachments if you us ruby 1.9 instead of 1.8.
20
20
 
21
21
  Version 0.0.11
22
22
 
23
+ * Convert the subject to utf-8
24
+
25
+ Version 0.0.11
26
+
23
27
  * A message object from the mail gem library may now be passed to parse
24
28
 
25
29
  Version 0.0.10
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
1
+ 0.0.12
@@ -86,7 +86,13 @@ module Attachments
86
86
  end
87
87
 
88
88
  def subject
89
- (@mail && @mail.subject) || nil
89
+ s = (@mail && @mail.subject) || nil
90
+ if s
91
+ charset = @mail.charset
92
+ charset ? Iconv.conv("utf-8", charset, s) : s
93
+ else
94
+ s
95
+ end
90
96
  end
91
97
 
92
98
  def text_body
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attachments
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
9
+ - 12
10
+ version: 0.0.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rune Myrland
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-23 00:00:00 +02:00
18
+ date: 2010-09-14 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency