fx_awesome_mails 0.5.9 → 0.6.3

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: c4748abdec586703e35da282d7c702b29e5e48158356ac2d5aef4f0215ba164d
4
+ data.tar.gz: cb3654c97538a02ea124d38990cb7b2d032ad43a05a9d3a1dc3854bfe594797b
5
5
  SHA512:
6
- metadata.gz: e425a9c1461f6b1d540937060c64d6b72b9469a3e543f8dcbdcc47592e1d8016635e1a2843669d880d267a0f5c35386029ae56fcfa924ad6acdfd62e1a0d5558
7
- data.tar.gz: a3a96629ca469db7499402b98c7a8e0d2f16019900c7be142428537418d202b3d446952479d6276ebf9e4872ea66aa1cf6162ca6e7f10b0dc1acf465d47adb6d
6
+ metadata.gz: 4a6c7c1aa263ad12cfacf7809b51e24723c2fe986c7e7c28aea56ae405fc59e8b3fa9abdd7cd56e6d6fe2abafea0d5c19d346aa6e1a1df05d949322ee8ead084
7
+ data.tar.gz: ac6b95af83300094c21921a1e766389d45f6c38c1b1956817b92769ed399fc826043d215782b036cc3faf213e35475cde584c384d66a2e75163e3a0cdfa2add9
@@ -1,3 +1,3 @@
1
1
  module FXAwesomeMails
2
- VERSION = '0.5.9'
3
- end
2
+ VERSION = '0.6.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"].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"]}")
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
 
@@ -147,8 +147,8 @@ 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)
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
150
+ options = {valign: "top", style: "mso-line-height-rule:exactly;text-align:left;font-weight:400"}.merge_email_options(options)
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"].presence.try(&:to_s)) do
152
152
  "#{block_given? ? capture(&block) : text}".html_safe
153
153
  end
154
154
  end
metadata CHANGED
@@ -1,35 +1,29 @@
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.3
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-11-17 00:00:00.000000000 Z
11
+ date: 2021-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 6.1.4
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 6.1.4.1
19
+ version: 6.1.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: 6.1.4
30
24
  - - ">="
31
25
  - !ruby/object:Gem::Version
32
- version: 6.1.4.1
26
+ version: 6.1.0
33
27
  description: Provides various view helpers for cross client mail creation
34
28
  email:
35
29
  - fukurokujoe@googlemail.com