attachments 0.0.12 → 0.0.13

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/attachments/extract.rb +2 -3
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.12
1
+ 0.0.13
@@ -87,9 +87,8 @@ module Attachments
87
87
 
88
88
  def subject
89
89
  s = (@mail && @mail.subject) || nil
90
- if s
91
- charset = @mail.charset
92
- charset ? Iconv.conv("utf-8", charset, s) : s
90
+ if s && s.respond_to?(:encode)
91
+ s.encode("utf-8")
93
92
  else
94
93
  s
95
94
  end
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: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 12
10
- version: 0.0.12
9
+ - 13
10
+ version: 0.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rune Myrland