mail 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mail might be problematic. Click here for more details.

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
@@ -12,7 +12,7 @@ require 'bundler'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = "mail"
15
- s.version = "1.3.1"
15
+ s.version = "1.3.2"
16
16
  s.author = "Mike Lindsaar"
17
17
  s.email = "raasdnil@gmail.com"
18
18
  s.homepage = "http://github.com/mikel/mail"
@@ -36,7 +36,14 @@ module Mail
36
36
  def initialize(options_hash)
37
37
  case
38
38
  when options_hash[:data]
39
- @filename = File.basename(options_hash[:filename])
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
@@ -3,7 +3,7 @@ module Mail
3
3
  module VERSION
4
4
  MAJOR = 1
5
5
  MINOR = 3
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  end
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.1
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-13 00:00:00 +11:00
12
+ date: 2009-12-17 00:00:00 +11:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency