fx_awesome_mails 0.5.9 → 0.6.0

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: 62c9e7f474154e8f3831761d42af409f9cd0a1ffb59ade192caf9700e531e506
4
- data.tar.gz: bc631a143ad84eaee839518a67e7e81dffe27fef1b5e7c7e1eeb05e8649a26f6
3
+ metadata.gz: 6c820ff443d34c89b3369e74c68c19ed8e732fc26b3633590651fd217329025f
4
+ data.tar.gz: 9f9cfe1e8252dea4bd388860f7abd47b745884d1c7c5e5d1b1eb1d973355542a
5
5
  SHA512:
6
- metadata.gz: e425a9c1461f6b1d540937060c64d6b72b9469a3e543f8dcbdcc47592e1d8016635e1a2843669d880d267a0f5c35386029ae56fcfa924ad6acdfd62e1a0d5558
7
- data.tar.gz: a3a96629ca469db7499402b98c7a8e0d2f16019900c7be142428537418d202b3d446952479d6276ebf9e4872ea66aa1cf6162ca6e7f10b0dc1acf465d47adb6d
6
+ metadata.gz: 9975c437d63246b009b75b0289c0d353521d9220391682d8a61f0321a5b478eba990033edc110cb4c83fdad81ada53fc3b51da13b90f39507d22949775a88eef
7
+ data.tar.gz: 61438caf4d14de35905b21646672ac37caef2a1eec5643e1cb089f7bb7a99e261fd16327a5788ce48114f729958e0882b92e57b79e725ed77b507d1b4c118f0b
@@ -1,3 +1,3 @@
1
1
  module FXAwesomeMails
2
- VERSION = '0.5.9'
2
+ VERSION = '0.6.0'
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"]}")
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)
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"]}")
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 )
139
139
  end
140
140
  end
141
141
 
@@ -147,7 +147,7 @@ module FXAwesomeMails
147
147
  delegate :capture, :content_tag, :link_to, :link_to_if, :link_to_if_true, :image_tag, :to => :parent
148
148
 
149
149
  def text(text = nil, **options, &block)
150
- options = {style: "mso-line-height-rule:exactly;text-align:left;font-weight:400"}.merge_email_options(options)
150
+ options = {valign: "top", style: "mso-line-height-rule:exactly;text-align:left;font-weight:400"}.merge_email_options(options)
151
151
  content_tag('th', valign: "#{options[:valign]}", style: options[:style], class: "#{options[:class]} text-container", bgcolor: "#{options[:style].to_s.to_css_hash["background-color"]}") do
152
152
  "#{block_given? ? capture(&block) : text}".html_safe
153
153
  end
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.5.9
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Gebhard