challengepost-postmark 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.7.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{challengepost-postmark}
8
- s.version = "0.7.2"
8
+ s.version = "0.7.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Petyo Ivanov"]
data/lib/postmark.rb CHANGED
@@ -112,7 +112,7 @@ module Postmark
112
112
  if message.multipart?
113
113
  options["HtmlBody"] = message.html_part.body.to_s
114
114
  options["TextBody"] = message.text_part.body.to_s
115
- elsif message.content_type == "text/html"
115
+ elsif message.content_type && message.content_type.match(/^text\/html/)
116
116
  options["HtmlBody"] = message.body.to_s
117
117
  else
118
118
  options["TextBody"] = message.body.to_s
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 2
9
- version: 0.7.2
8
+ - 3
9
+ version: 0.7.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Petyo Ivanov