fx_awesome_mails 0.5.5 → 0.5.6

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: bd2b4740a0862d162ca275c62ebaa8796a72570f6f7efa4c990ffdc0c70eb4d2
4
- data.tar.gz: 3cbd818cad4ef2c7f46467e50e6eec5578cf333d001215c9caa78f9cbf09ab97
3
+ metadata.gz: 150486384ec88d98e3e3db07762c6aa9dd5c66ddef2115e762aeed824f80a529
4
+ data.tar.gz: f7dfb71da172e702144ba4f6e9bc30ef48199ab8f1206b2846f15a0a6b4160ff
5
5
  SHA512:
6
- metadata.gz: b164d6adbd4f1a04bc8ce92f1f35a400cf8063d4fb324b2c354c46a1ee93593200611e2bdc4107f1af6ba34daeef973e9820b5aa54109203a83b3f1668837fc5
7
- data.tar.gz: 65885c7bccebce3a048bb05a311ed929f03082bbb5c9ffec1ca14e459a702dfc992969e11c568be86fc38cf4c20d06005230ee4b5a51daebce8ebb4e59ccc5ff
6
+ metadata.gz: e52480877c2739a99d262f384f5ce2c96c3cd114220752d474f522d94318746cfa2fa65cf2aa4b28831da3588d346c959da38e00ef979d7c8c330ebac83a54c2
7
+ data.tar.gz: 78f2d6a1f91f4901c6c2bb62e2088afa357480e8a98dd66be692fa7caedb8c80588b6eff511fcc472a99eacfd6d9486712e1eeb25b4c9fb0d7cb3207bb70f68e
@@ -1,3 +1,3 @@
1
1
  module FXAwesomeMails
2
- VERSION = '0.5.5'
2
+ VERSION = '0.5.6'
3
3
  end
@@ -183,7 +183,7 @@ module FXAwesomeMails
183
183
 
184
184
  def self.vertical_grid(_capture_helper, **options, &block)
185
185
  options = { valign: 'top', style: "text-align: left" }.merge_email_options(options)
186
- _capture_helper.content_tag('th', valign: "#{options[:valign]}", style: "#{options[:style]}", class: "text-container #{options[:class]}") do
186
+ _capture_helper.content_tag('th', valign: "#{options[:valign]}", style: "#{options[:style]}", class: "vertical-grid #{options[:class]}") do
187
187
  "<table cellpadding='0' cellspacing='0' border='0' width='100%' style='min-width:100%' role='presentation'>
188
188
  <tbody>
189
189
  #{_capture_helper.capture(VerticalGrid.new(_capture_helper), &block)}
@@ -243,11 +243,8 @@ module FXAwesomeMails
243
243
  "#{Gutter.new(parent).vertical(...)}".html_safe
244
244
  end
245
245
 
246
- def text(text = nil, **options, &block)
247
- options = { valign: 'top', style: "mso-line-height-rule: exactly; text-align: left; font-family: Arial, sans-serif; font-size: 15px; line-height: 18px; font-weight: normal; color: #999999" }.merge_email_options(options)
248
- content_tag('th', valign: "#{options[:valign]}", style: "#{options[:style]}", class: "text-container #{options[:class]}") do
249
- block_given? ? capture(&block) : text
250
- end
246
+ def text(...)
247
+ "#{Text.new(parent).text(...)}".html_safe
251
248
  end
252
249
 
253
250
  def image(...)
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.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Gebhard