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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9082fa9721504abbc0670f970a7758c91abdb448313a1217518ff69f78a73d0
4
- data.tar.gz: cec5451e7cd8199abdd5c2b211c2e065c2daa01ccf35840b65ab383f8cc42af2
3
+ metadata.gz: f06e028da95662c194a3714e8d361b2f363129b19c6dae7b82536dba1e6ac091
4
+ data.tar.gz: 533183c7173c565719c192b988233658b0017c72c0ef833e4023566a4e3fc005
5
5
  SHA512:
6
- metadata.gz: c54d8bcef6389af1894e4da3013d7331e61e99b1be8d1a0fe058f4a6eed37a3101a48244e92b67aecd398ba21056ef33fa23ebf7f140db133529fe88dd2aea78
7
- data.tar.gz: 466b96cda518e409cd63946ebdc5d348f816536d2e46d9377d72dc2c023eef4ba6a3ff795bb5179b9ee72f9e58ce253a0911eacb5a721fce5363ea38a284061d
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
@@ -56,8 +56,6 @@ module Maily
56
56
  end
57
57
 
58
58
  def register_hook(*args)
59
- args = args.flatten
60
-
61
59
  if args.last.is_a?(Hash)
62
60
  self.description = args.last.delete(:description)
63
61
 
@@ -112,4 +110,4 @@ module Maily
112
110
  end
113
111
  end
114
112
  end
115
- end
113
+ end
@@ -23,10 +23,16 @@ module Maily
23
23
  end
24
24
  end
25
25
 
26
- fixtures = fixtures.flatten.uniq.map { |f| "#{f.to_s} = ''" }.join("\n")
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
@@ -1,3 +1,3 @@
1
1
  module Maily
2
- VERSION = "0.10.1"
2
+ VERSION = "0.11.0"
3
3
  end
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.10.1
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-05-28 00:00:00.000000000 Z
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: sass-rails
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
- rubyforge_project:
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.