fx_awesome_mails 0.5.6 → 0.5.7

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: 150486384ec88d98e3e3db07762c6aa9dd5c66ddef2115e762aeed824f80a529
4
- data.tar.gz: f7dfb71da172e702144ba4f6e9bc30ef48199ab8f1206b2846f15a0a6b4160ff
3
+ metadata.gz: 38b73f49cbb4af085b8e48ef8438bbb0dc6ac580065b9c2f27989543e64a77fc
4
+ data.tar.gz: c23cfa9c8c2eac1e074ac98e7fa8fa93d83e17d5503a7b9d545b19980dee3ee7
5
5
  SHA512:
6
- metadata.gz: e52480877c2739a99d262f384f5ce2c96c3cd114220752d474f522d94318746cfa2fa65cf2aa4b28831da3588d346c959da38e00ef979d7c8c330ebac83a54c2
7
- data.tar.gz: 78f2d6a1f91f4901c6c2bb62e2088afa357480e8a98dd66be692fa7caedb8c80588b6eff511fcc472a99eacfd6d9486712e1eeb25b4c9fb0d7cb3207bb70f68e
6
+ metadata.gz: '09a783fe29f1ebb8be92b0dbafa229d6c01dc362b6272176c718c5654f26d32541efc6764673202e8d8cf144210d872533309c8256e6940c5ee53c9f982c288f'
7
+ data.tar.gz: 493159cc62924b36db04d6b4ae9a04ef7afb2c0b3d75bebc10b0a994164500b230d76556164996fc55ff736a89dea5ae540dc02d18a2920baed00ce18aed8814
@@ -1,3 +1,3 @@
1
1
  module FXAwesomeMails
2
- VERSION = '0.5.6'
2
+ VERSION = '0.5.7'
3
3
  end
@@ -163,7 +163,7 @@ module FXAwesomeMails
163
163
 
164
164
  def email_image_tag(source: nil, **options, &block)
165
165
  options = {alt: '', link_url: nil, width: 130, height: 50, valign: 'top', align: 'left', class: '', style: "background-color: #FFFFFF;outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; display: block; border: none" }.merge_email_options(options)
166
- html = "<th valign='#{options[:avlign]}' style='text-align:left' class='#{options[:class]} mobile-display-table-footer-group image-container' bgcolor='#{options[:style].to_s.to_css_hash["background-color"]}' align='#{options[:align]}'>"
166
+ html = "<th valign='#{options[:valign]}' style='text-align:left' class='#{options[:class]} mobile-display-table-footer-group image-container' bgcolor='#{options[:style].to_s.to_css_hash["background-color"]}' align='#{options[:align]}'>"
167
167
  html << link_to_if_true(options[:link_url].present?, options[:link_url], target: '_blank') do
168
168
  image_tag(source, style: options[:style], width: "#{options[:width]}", height: "#{options[:height]}", alt: "#{options[:alt]}")
169
169
  end
@@ -228,7 +228,8 @@ module FXAwesomeMails
228
228
  delegate :capture, :content_tag, :link_to, :link_to_if, :link_to_if_true, :image_tag, :to => :parent
229
229
 
230
230
  def self.horizontal_grid(_capture_helper, **options, &block)
231
- "<th valign='top' style='text-align:left' class='horizontal-grid'>
231
+ options = { valign: 'top', style: "text-align: left" }.merge_email_options(options)
232
+ "<th valign='#{options[:valign]}' style='#{options[:style]}' class='#{options[:class]} horizontal-grid'>
232
233
  <table cellpadding='0' cellspacing='0' border='0' width='100%' style='min-width:100%' role='presentation'>
233
234
  <tbody>
234
235
  <tr>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fx_awesome_mails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Gebhard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-25 00:00:00.000000000 Z
11
+ date: 2021-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails