fx_awesome_mails 0.6.0 → 0.6.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c820ff443d34c89b3369e74c68c19ed8e732fc26b3633590651fd217329025f
4
- data.tar.gz: 9f9cfe1e8252dea4bd388860f7abd47b745884d1c7c5e5d1b1eb1d973355542a
3
+ metadata.gz: 1215bc8f65b87bc6c439002b250979996d90abe07535a6e64914fc80dbbb0b4b
4
+ data.tar.gz: d15670f6784e95fd96e39efa3eb643f4be677c416ea8e8b9c958fbf13e2609a1
5
5
  SHA512:
6
- metadata.gz: 9975c437d63246b009b75b0289c0d353521d9220391682d8a61f0321a5b478eba990033edc110cb4c83fdad81ada53fc3b51da13b90f39507d22949775a88eef
7
- data.tar.gz: 61438caf4d14de35905b21646672ac37caef2a1eec5643e1cb089f7bb7a99e261fd16327a5788ce48114f729958e0882b92e57b79e725ed77b507d1b4c118f0b
6
+ metadata.gz: f0c509c9cc93834450d0dc0751844500d1ac9052886c3ccc6c637ea1f0bf2594b9a69c5b284b2b64f32850a538c6365fa8945fd6698a64b146174e9951eb5dc7
7
+ data.tar.gz: 64075d9ad4ed4fb9efd904b465409c7f0bec176171693057a3a02e784e2456a8ebc5f2ad289c69a832905e91cd79868523507edd57512f48776685799e33347a
@@ -1,3 +1,3 @@
1
1
  module FXAwesomeMails
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
@@ -130,12 +130,12 @@ module FXAwesomeMails
130
130
 
131
131
  def horizontal(height = '20', **options)
132
132
  options = {valign: 'top', class: '',style: "text-align:left;font-size:1px;line-height:1px"}.merge_email_options(options)
133
- content_tag('th', ' '.html_safe, height: height, valign: "#{options[:valign]}", style: "#{options[:style]}", class: "#{options[:class]} horizontal-gutter", bgcolor: options[:style].to_s.to_css_hash["background-color"].presence.to_s)
133
+ content_tag('th', ' '.html_safe, height: height, valign: "#{options[:valign]}", style: "#{options[:style]}", class: "#{options[:class]} horizontal-gutter", bgcolor: options[:style].to_s.to_css_hash["background-color"].try(&:to_s))
134
134
  end
135
135
 
136
136
  def vertical(width = '20', **options)
137
137
  options = {valign: 'top', class: '',style: "text-align:left;font-size:1px;line-height:1px"}.merge_email_options(options)
138
- content_tag('th', ' '.html_safe, width: width, valign: "#{options[:valign]}", style: "#{options[:style]}", class: "#{options[:class]} vertical-gutter", bgcolor: options[:style].to_s.to_css_hash["background-color"].presence.to_s )
138
+ content_tag('th', ' '.html_safe, width: width, valign: "#{options[:valign]}", style: "#{options[:style]}", class: "#{options[:class]} vertical-gutter", bgcolor: options[:style].to_s.to_css_hash["background-color"].try(&:to_s))
139
139
  end
140
140
  end
141
141
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fx_awesome_mails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Gebhard