hanami-mailer 0.3.0 → 0.4.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 +7 -3
- data/README.md +1 -1
- data/hanami-mailer.gemspec +2 -2
- data/lib/hanami/mailer.rb +9 -1
- data/lib/hanami/mailer/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7de7bc6e521cc69e30edd93e2bf59720dc0b4ce9
|
4
|
+
data.tar.gz: 09125b9fa926ab639c6ec17e996d9f600fe804eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0ff54c6939f2fb89cf7acf62bb35fe6a00722de16ac5d62e84bf64c41608e728a6a8acac21fab892af729f583c4e7807c3b89341629937fc07e8e827714eb59
|
7
|
+
data.tar.gz: 66bc00f9b30c1e767b0781bd471d5700350b20598844ceeb693b0c738c677201e092d51e7636421c3cdfc56cd49f58b352e0376810011206877a2427185f82a5
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,14 @@
|
|
1
|
-
# Hanami::
|
1
|
+
# Hanami::Mailer
|
2
2
|
Mail for Ruby applications
|
3
3
|
|
4
|
+
## v0.4.0 - 2016-11-15
|
5
|
+
### Changed
|
6
|
+
- [Luca Guidi] Official support for Ruby: MRI 2.3+ and JRuby 9.1.5.0+
|
7
|
+
|
4
8
|
## v0.3.0 - 2016-07-22
|
5
9
|
### Added
|
6
|
-
– [Anton
|
7
|
-
– [Anton
|
10
|
+
– [Anton Davydov] Blind carbon copy (bcc) option
|
11
|
+
– [Anton Davydov] Carbon copy (cc) option
|
8
12
|
|
9
13
|
### Changed
|
10
14
|
– [Luca Guidi] Drop support for Ruby 2.0 and 2.1
|
data/README.md
CHANGED
data/hanami-mailer.gemspec
CHANGED
@@ -17,9 +17,9 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.bindir = 'exe'
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ['lib']
|
20
|
-
spec.required_ruby_version = '>= 2.
|
20
|
+
spec.required_ruby_version = '>= 2.3.0'
|
21
21
|
|
22
|
-
spec.add_dependency 'hanami-utils', '~> 0.
|
22
|
+
spec.add_dependency 'hanami-utils', '~> 0.9'
|
23
23
|
spec.add_dependency 'tilt', '~> 2.0', '>= 2.0.1'
|
24
24
|
spec.add_dependency 'mail', '~> 2.5'
|
25
25
|
|
data/lib/hanami/mailer.rb
CHANGED
@@ -309,10 +309,12 @@ module Hanami
|
|
309
309
|
# @private
|
310
310
|
# @since 0.1.0
|
311
311
|
def __part(format)
|
312
|
+
return unless __part?(format)
|
313
|
+
|
312
314
|
Mail::Part.new.tap do |part|
|
313
315
|
part.content_type = "#{CONTENT_TYPES.fetch(format)}; charset=#{charset}"
|
314
316
|
part.body = render(format)
|
315
|
-
end
|
317
|
+
end
|
316
318
|
end
|
317
319
|
|
318
320
|
# @private
|
@@ -321,5 +323,11 @@ module Hanami
|
|
321
323
|
@format == format ||
|
322
324
|
(!@format && !self.class.templates(format).nil?)
|
323
325
|
end
|
326
|
+
|
327
|
+
# @private
|
328
|
+
# @since 0.4.0
|
329
|
+
def respond_to_missing?(m, _include_all)
|
330
|
+
@locals.key?(m)
|
331
|
+
end
|
324
332
|
end
|
325
333
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-11-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hanami-utils
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0.
|
21
|
+
version: '0.9'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '0.
|
28
|
+
version: '0.9'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: tilt
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 2.
|
138
|
+
version: 2.3.0
|
139
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
141
|
- - ">="
|