decoration_mail 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{decoration_mail}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dai Akatsuka"]
@@ -40,7 +40,7 @@ module DecorationMail
40
40
  end
41
41
 
42
42
  def parse_html(html)
43
- html = html.body.to_s.encode("UTF-8")
43
+ html = html.body.to_s.force_encoding(html.charset).encode("UTF-8")
44
44
  html = Hpricot.parse(html)
45
45
 
46
46
  if html.search("body").empty?
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: decoration_mail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dai Akatsuka