pretty_mailer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,9 +50,11 @@ module PrettyMailer
50
50
  end
51
51
 
52
52
  def merge_in_styles tag, specificity
53
- tag[specificity].split(';').each do |rule|
54
- tag['style'] = tag['style'].sub /#{rule.split(':').first.strip}:\s*[a-z0-9]+\s*;/i, "#{rule};"
55
- tag['style'] += "#{rule};" unless $~
53
+ if tag[specificity]
54
+ tag[specificity].split(';').each do |rule|
55
+ tag['style'] = tag['style'].sub /#{rule.split(':').first.strip}:\s*[a-z0-9]+\s*;/i, "#{rule};"
56
+ tag['style'] += "#{rule};" unless $~
57
+ end
56
58
  end
57
59
  end
58
60
 
@@ -1,3 +1,3 @@
1
1
  module PrettyMailer
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: