mjml-rails 4.8.0 → 4.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -2
- data/README.md +3 -0
- data/lib/mjml/version.rb +1 -1
- data/lib/mjml.rb +14 -14
- data.tar.gz.sig +0 -0
- metadata +28 -27
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63fb17f29c1ab7539b3b53470787d35246e9536ee960a1493c02806c8119de75
|
4
|
+
data.tar.gz: 50fd2491ce1bdef74e0eaf080687ef7e5ce5c23a423f8748eba62e27dcc3dfae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cb24065a5430452f98fffbcc54c81da74dfb97c91ba85f64d4f16ceb8fbd302bb0483bc2705ce03027a22ce026f8f852d0a3274b0905c53f1ce94d485c6fab7
|
7
|
+
data.tar.gz: 91ffeea703562d051c68dbabaad228efd2f6b07daa4cb750625727332363f95a184b42b500501c23e90a6714ca48eb6e3d63fbd7c90f58cf93ec8eaf4c2fb479
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
��+k��EI��U]�ݬ�Z*���t��^h�*���?."Y<��2f�W���Q���r�_'Β����F,�}�V���_��V�=�(j��(���|���KK��S+?��4�%�9�E����Ē���#�kn���=�\��v�%-E\�����h����y����P�2=28���7V�9�?�xcB���+��f"�<z�5�Ȇ�Y��sla��1��\]�}�+��qp�+g��t��n{�(�����Ye�i�?����P��X��<r�?���;)UuTo������f���J6�[��p/R *�c*
|
2
|
+
�CΎ�q�����a{�kKz������fM��#0�j�8G��
|
data/README.md
CHANGED
data/lib/mjml/version.rb
CHANGED
data/lib/mjml.rb
CHANGED
@@ -71,18 +71,28 @@ module Mjml
|
|
71
71
|
|
72
72
|
def self.check_for_yarn_mjml_binary
|
73
73
|
yarn_bin = `which yarn`.chomp
|
74
|
-
return
|
74
|
+
return if yarn_bin.blank?
|
75
75
|
|
76
|
-
|
76
|
+
stdout, _, status = Open3.capture3("#{yarn_bin} bin mjml")
|
77
|
+
return unless status.success?
|
78
|
+
|
79
|
+
mjml_bin = stdout.chomp
|
77
80
|
return mjml_bin if check_version(mjml_bin)
|
81
|
+
rescue Errno::ENOENT # package manager is not installed
|
82
|
+
nil
|
78
83
|
end
|
79
84
|
|
80
85
|
def self.check_for_npm_mjml_binary
|
81
86
|
npm_bin = `which npm`.chomp
|
82
|
-
return
|
87
|
+
return if npm_bin.blank?
|
83
88
|
|
84
|
-
|
89
|
+
stdout, _, status = Open3.capture3("#{npm_bin} root")
|
90
|
+
return unless status.success?
|
91
|
+
|
92
|
+
mjml_bin = File.join(stdout.chomp, '.bin', 'mjml')
|
85
93
|
return mjml_bin if check_version(mjml_bin)
|
94
|
+
rescue Errno::ENOENT # package manager is not installed
|
95
|
+
nil
|
86
96
|
end
|
87
97
|
|
88
98
|
def self.check_for_global_mjml_binary
|
@@ -90,16 +100,6 @@ module Mjml
|
|
90
100
|
return mjml_bin if mjml_bin.present? && check_version(mjml_bin)
|
91
101
|
end
|
92
102
|
|
93
|
-
def self.bin_path_from(package_manager)
|
94
|
-
stdout, _, status = Open3.capture3("#{package_manager} bin")
|
95
|
-
|
96
|
-
return unless status.success?
|
97
|
-
|
98
|
-
stdout.chomp
|
99
|
-
rescue Errno::ENOENT # package manager is not installed
|
100
|
-
nil
|
101
|
-
end
|
102
|
-
|
103
103
|
def self.discover_mjml_bin
|
104
104
|
logger.warn('`Mjml.discover_mjml_bin` is deprecated and has no effect anymore! ' \
|
105
105
|
'Please use `Mjml.mjml_binary=` to set a custom MJML binary.')
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mjml-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Loffler
|
@@ -11,31 +11,32 @@ bindir: bin
|
|
11
11
|
cert_chain:
|
12
12
|
- |
|
13
13
|
-----BEGIN CERTIFICATE-----
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
14
|
+
MIIEdDCCAtygAwIBAgIBATANBgkqhkiG9w0BAQsFADBAMRAwDgYDVQQDDAdzaWdo
|
15
|
+
bW9uMRcwFQYKCZImiZPyLGQBGRYHc2lnaG1vbjETMBEGCgmSJomT8ixkARkWA2Nv
|
16
|
+
bTAeFw0yMzA1MTIwNzA2MTJaFw0yNDA1MTEwNzA2MTJaMEAxEDAOBgNVBAMMB3Np
|
17
|
+
Z2htb24xFzAVBgoJkiaJk/IsZAEZFgdzaWdobW9uMRMwEQYKCZImiZPyLGQBGRYD
|
18
|
+
Y29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAxHOFY9hovaIfd7wX
|
19
|
+
qSZuDoM5hmYVr6NlNl3/BaaAOXY48vSMIFDbLw0XbG7u9yT6LZhK6g8jnFpgXNMP
|
20
|
+
GfJn0wVC3vZn3kQtcpCG5udPUVJnMsRXD/uJV/XSDwJ9FWb6VBvFSW3iQ3B0LfdL
|
21
|
+
RT0kKBfik0bppwCgPGUuIPDsrMlNt0p8Bs1gIWkZm/C1bZDSa91OrJQPcSmBGVda
|
22
|
+
xdxbUzNrn7k9oWEa0g4iGimtargl+OW7mxWm28QrIYCv/DyqgvwB+jce3Yzk/qK/
|
23
|
+
tBFFCHiU3cJ10dOy4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|
-----END CERTIFICATE-----
|
38
|
-
date:
|
39
|
+
date: 2023-05-12 00:00:00.000000000 Z
|
39
40
|
dependencies:
|
40
41
|
- !ruby/object:Gem::Dependency
|
41
42
|
name: byebug
|
@@ -175,12 +176,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
176
|
- !ruby/object:Gem::Version
|
176
177
|
version: '0'
|
177
178
|
requirements: []
|
178
|
-
rubygems_version: 3.
|
179
|
+
rubygems_version: 3.4.10
|
179
180
|
signing_key:
|
180
181
|
specification_version: 4
|
181
182
|
summary: MJML + ERb templates
|
182
183
|
test_files:
|
183
184
|
- test/generator_test.rb
|
184
|
-
- test/parser_test.rb
|
185
185
|
- test/mjml_test.rb
|
186
|
+
- test/parser_test.rb
|
186
187
|
- test/test_helper.rb
|
metadata.gz.sig
CHANGED
Binary file
|