mail 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of mail might be problematic. Click here for more details.
- data/CHANGELOG.rdoc +5 -0
- data/Rakefile +1 -1
- data/lib/mail/attachment.rb +8 -1
- data/lib/mail/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== Wed Dec 16 23:48:46 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
|
2
|
+
|
3
|
+
* Version 1.3.2
|
4
|
+
* Resolved Ruby 1.9.1-head not working because File.basename only accepts US-ASCII or 8Bit
|
5
|
+
|
1
6
|
== Sun Dec 13 01:06:17 UTC 2009 Mikel Lindsaar <raasdnil@gmail.com>
|
2
7
|
|
3
8
|
* Version 1.3.1
|
data/Rakefile
CHANGED
data/lib/mail/attachment.rb
CHANGED
@@ -36,7 +36,14 @@ module Mail
|
|
36
36
|
def initialize(options_hash)
|
37
37
|
case
|
38
38
|
when options_hash[:data]
|
39
|
-
|
39
|
+
if options_hash[:filename].respond_to?(:force_encoding)
|
40
|
+
encoding = options_hash[:filename].encoding
|
41
|
+
filename = File.basename(options_hash[:filename].force_encoding(Encoding::BINARY))
|
42
|
+
@filename = filename.force_encoding(encoding)
|
43
|
+
else
|
44
|
+
@filename = File.basename(options_hash[:filename])
|
45
|
+
end
|
46
|
+
|
40
47
|
add_file(options_hash[:data], options_hash[:encoding])
|
41
48
|
when options_hash[:filename]
|
42
49
|
@filename = File.basename(options_hash[:filename])
|
data/lib/mail/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Lindsaar
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-17 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|