mailgun_rails 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,7 @@ module Mailgun
47
47
  if rails_message.html_part
48
48
  rails_message.html_part.body.decoded
49
49
  else
50
- rails_message.content_type == 'text/html' ? rails_message.body.decoded : nil
50
+ rails_message.content_type =~ /text\/html/ ? rails_message.body.decoded : nil
51
51
  end
52
52
  end
53
53
 
@@ -55,7 +55,7 @@ module Mailgun
55
55
  if rails_message.multipart?
56
56
  rails_message.text_part ? rails_message.text_part.body.decoded : nil
57
57
  else
58
- rails_message.content_type == 'text/plain' ? rails_message.body.decoded : nil
58
+ rails_message.content_type =~ /text\/plain/ ? rails_message.body.decoded : nil
59
59
  end
60
60
  end
61
61
 
@@ -1,3 +1,3 @@
1
1
  module Mailgun
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailgun_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  segments:
106
106
  - 0
107
- hash: 2237586014440986052
107
+ hash: 2196270500897695838
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  none: false
110
110
  requirements:
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  segments:
115
115
  - 0
116
- hash: 2237586014440986052
116
+ hash: 2196270500897695838
117
117
  requirements: []
118
118
  rubyforge_project:
119
119
  rubygems_version: 1.8.23