maily 0.10.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/maily/email.rb +1 -3
- data/lib/maily/generator.rb +8 -2
- data/lib/maily/mailer.rb +2 -2
- data/lib/maily/version.rb +1 -1
- metadata +4 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f06e028da95662c194a3714e8d361b2f363129b19c6dae7b82536dba1e6ac091
|
4
|
+
data.tar.gz: 533183c7173c565719c192b988233658b0017c72c0ef833e4023566a4e3fc005
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 468adf0b8e2b693ab70c3d4e80c1397c10acc5da903c62506f95013ec39e6eb7695eb87026b97b94b752fc4d68f65fcfde754adcde808f2869b0a50dc91463bc
|
7
|
+
data.tar.gz: 159e31df9bac091205373c86fe0cafebf7f7c0fb50b7243ce6941b580c3e63a7c92dc62c59f65ed8206fe9acdc3d9b75c12289ee5f1fd474b9da251d6a914500
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.11.0]
|
6
|
+
|
7
|
+
- Support arrays in hooks (#42)
|
8
|
+
- Drop Ruby 2.3 (EOL) from CI
|
9
|
+
|
5
10
|
## [0.10.1]
|
6
11
|
|
7
12
|
- UI: fix iframe (onload) resize
|
@@ -118,6 +123,7 @@ All notable changes to this project will be documented in this file.
|
|
118
123
|
|
119
124
|
- First real usable release :tada:
|
120
125
|
|
126
|
+
[0.11.0]: https://github.com/markets/maily/compare/v0.10.1...v0.11.0
|
121
127
|
[0.10.1]: https://github.com/markets/maily/compare/v0.10.0...v0.10.1
|
122
128
|
[0.10.0]: https://github.com/markets/maily/compare/v0.9.1...v0.10.0
|
123
129
|
[0.9.1]: https://github.com/markets/maily/compare/v0.9.0...v0.9.1
|
data/lib/maily/email.rb
CHANGED
data/lib/maily/generator.rb
CHANGED
@@ -23,10 +23,16 @@ module Maily
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
fixtures = fixtures.flatten.uniq.map
|
26
|
+
fixtures = fixtures.flatten.uniq.map do |fixture|
|
27
|
+
argument = fixture.to_s
|
28
|
+
value = argument.pluralize == argument ? '[]' : "''"
|
29
|
+
|
30
|
+
[argument, value].join(' = ')
|
31
|
+
end.join("\n")
|
32
|
+
|
27
33
|
hooks = hooks.join("\n")
|
28
34
|
|
29
35
|
fixtures + "\n" + hooks + "\n"
|
30
36
|
end
|
31
37
|
end
|
32
|
-
end
|
38
|
+
end
|
data/lib/maily/mailer.rb
CHANGED
@@ -41,7 +41,7 @@ module Maily
|
|
41
41
|
|
42
42
|
def register_hook(email_name, *args)
|
43
43
|
email = find_email(email_name) || add_email(email_name)
|
44
|
-
email && email.register_hook(args)
|
44
|
+
email && email.register_hook(*args)
|
45
45
|
end
|
46
46
|
|
47
47
|
def hide_email(*email_names)
|
@@ -65,4 +65,4 @@ module Maily
|
|
65
65
|
self.emails[email.name] = email
|
66
66
|
end
|
67
67
|
end
|
68
|
-
end
|
68
|
+
end
|
data/lib/maily/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maily
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: sassc-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: byebug
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
description: Maily is a Rails Engine to manage, test and navigate through all your
|
84
70
|
email templates of your app, being able to preview them directly in your browser.
|
85
71
|
email:
|
@@ -137,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: '0'
|
139
125
|
requirements: []
|
140
|
-
|
141
|
-
rubygems_version: 2.7.6
|
126
|
+
rubygems_version: 3.0.3
|
142
127
|
signing_key:
|
143
128
|
specification_version: 4
|
144
129
|
summary: Rails Engine to preview emails in the browser.
|