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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6bc33d0ec8a8e972be6d7de97473a6508616459
4
- data.tar.gz: 5b79dacf8ff839f77fc066210673087f250ec52c
3
+ metadata.gz: 7de7bc6e521cc69e30edd93e2bf59720dc0b4ce9
4
+ data.tar.gz: 09125b9fa926ab639c6ec17e996d9f600fe804eb
5
5
  SHA512:
6
- metadata.gz: 13d2f8eafab2fc9a87bae04276f30d1e1e1bf24c05c630aa80d2538699f4690ab8ec9eeb4ee68845a4068fdd865abe47ece7df925efc909dc412c6749ef98771
7
- data.tar.gz: b8805778f4496eec6961429d3493478076c49142d757faa5a9905b71baada249d4c9ef32cf7a5711035f10bf9edf1c18c0417499d54b15c4a7740017aa92f030
6
+ metadata.gz: d0ff54c6939f2fb89cf7acf62bb35fe6a00722de16ac5d62e84bf64c41608e728a6a8acac21fab892af729f583c4e7807c3b89341629937fc07e8e827714eb59
7
+ data.tar.gz: 66bc00f9b30c1e767b0781bd471d5700350b20598844ceeb693b0c738c677201e092d51e7636421c3cdfc56cd49f58b352e0376810011206877a2427185f82a5
@@ -1,10 +1,14 @@
1
- # Hanami::Router
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 Dabydov] Blind carbon copy (bcc) option
7
- – [Anton Dabydov] Carbon copy (cc) option
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
@@ -22,7 +22,7 @@ Mail for Ruby applications.
22
22
 
23
23
  ## Rubies
24
24
 
25
- __Hanami::Mailer__ supports Ruby (MRI) 2.2+.
25
+ __Hanami::Mailer__ supports Ruby (MRI) 2.3+ and JRuby 9.1.5.0+.
26
26
 
27
27
  ## Installation
28
28
 
@@ -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.2.0'
20
+ spec.required_ruby_version = '>= 2.3.0'
21
21
 
22
- spec.add_dependency 'hanami-utils', '~> 0.8'
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
 
@@ -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 if __part?(format)
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
@@ -1,6 +1,6 @@
1
1
  module Hanami
2
2
  module Mailer
3
3
  # @since 0.1.0
4
- VERSION = '0.3.0'.freeze
4
+ VERSION = '0.4.0'.freeze
5
5
  end
6
6
  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.3.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-07-22 00:00:00.000000000 Z
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.8'
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.8'
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.2.0
138
+ version: 2.3.0
139
139
  required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - ">="