actionmailer 5.2.0.beta2 → 5.2.0.rc1

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
- SHA1:
3
- metadata.gz: caf5a14cad136bf17b3373faf34bafbc0d35d680
4
- data.tar.gz: bf335d47ef4d4b0ec4a31bb0b6c5de40f6245422
2
+ SHA256:
3
+ metadata.gz: 0a88ea0f6b0b362379169ff271781d8ebeddd2b2320ccd650456cf9b039d723f
4
+ data.tar.gz: 06de6dd777fb1a5b5290f286b94144cbee52bdd638a186948ef894eccef9ef69
5
5
  SHA512:
6
- metadata.gz: 3356f409b6ca28145d42f96ad08b50a98352698521eeda53cb500d5b49b275b993a27a2f92772dc229cc5d608f6c067062055e60808b29398d483af0a802a1a5
7
- data.tar.gz: 6efcb181f6cec2b07b3bf5ba390f16386e43159dc8ad8a89d7405aede6fd5a49dec9925c841f3ccc7be7d03330e8a1529109ddfc916cb5cb11bc471d6ff8e7ac
6
+ metadata.gz: 77b7d2b0524ebd1c6ba755795222dd71255b558b8b9a26c151bdfea1a1b12c7bb3d7e50c765d22b1979256d22c8eaea71c9d85feee9165102b40b2a15b3aaa04
7
+ data.tar.gz: e04ba76ab9e6d30c334537cb76772b4f8458973b47bf0c87fb9d77d362c5819c557124bf6ed15d44e2c6ade528929ac63af4704851ce9964cd6a16010c6800cf
@@ -1,3 +1,11 @@
1
+ ## Rails 5.2.0.rc1 (January 30, 2018) ##
2
+
3
+ * Bring back proc with arity of 1 in `ActionMailer::Base.default` proc
4
+ since it was supported in Rails 5.0 but not deprecated.
5
+
6
+ *Jimmy Bourassa*
7
+
8
+
1
9
  ## Rails 5.2.0.beta2 (November 28, 2017) ##
2
10
 
3
11
  * No changes.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2004-2017 David Heinemeier Hansson
1
+ Copyright (c) 2004-2018 David Heinemeier Hansson
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -148,7 +148,7 @@ The latest version of Action Mailer can be installed with RubyGems:
148
148
 
149
149
  $ gem install actionmailer
150
150
 
151
- Source code can be downloaded as part of the Rails project on GitHub
151
+ Source code can be downloaded as part of the Rails project on GitHub:
152
152
 
153
153
  * https://github.com/rails/rails/tree/master/actionmailer
154
154
 
@@ -166,7 +166,7 @@ API documentation is at
166
166
 
167
167
  * http://api.rubyonrails.org
168
168
 
169
- Bug reports can be filed for the Ruby on Rails project here:
169
+ Bug reports for the Ruby on Rails project can be filed here:
170
170
 
171
171
  * https://github.com/rails/rails/issues
172
172
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  #--
4
- # Copyright (c) 2004-2017 David Heinemeier Hansson
4
+ # Copyright (c) 2004-2018 David Heinemeier Hansson
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining
7
7
  # a copy of this software and associated documentation files (the
@@ -889,7 +889,7 @@ module ActionMailer
889
889
  default_values = self.class.default.map do |key, value|
890
890
  [
891
891
  key,
892
- value.is_a?(Proc) ? instance_exec(&value) : value
892
+ compute_default(value)
893
893
  ]
894
894
  end.to_h
895
895
 
@@ -898,6 +898,16 @@ module ActionMailer
898
898
  headers_with_defaults
899
899
  end
900
900
 
901
+ def compute_default(value)
902
+ return value unless value.is_a?(Proc)
903
+
904
+ if value.arity == 1
905
+ instance_exec(self, &value)
906
+ else
907
+ instance_exec(&value)
908
+ end
909
+ end
910
+
901
911
  def assign_headers_to_message(message, headers)
902
912
  assignable = headers.except(:parts_order, :content_type, :body, :template_name,
903
913
  :template_path, :delivery_method, :delivery_method_options)
@@ -10,7 +10,7 @@ module ActionMailer
10
10
  MAJOR = 5
11
11
  MINOR = 2
12
12
  TINY = 0
13
- PRE = "beta2"
13
+ PRE = "rc1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -4,7 +4,7 @@ require "base64"
4
4
 
5
5
  module ActionMailer
6
6
  # Implements a mailer preview interceptor that converts image tag src attributes
7
- # that use inline cid: style urls to data: style urls so that they are visible
7
+ # that use inline cid: style URLs to data: style URLs so that they are visible
8
8
  # when previewing an HTML email in a web browser.
9
9
  #
10
10
  # This interceptor is enabled by default. To disable it, delete it from the
@@ -53,6 +53,12 @@ module ActionMailer
53
53
  # Notifier.welcome(User.first).deliver_later!(wait: 1.hour)
54
54
  # Notifier.welcome(User.first).deliver_later!(wait_until: 10.hours.from_now)
55
55
  #
56
+ # Options:
57
+ #
58
+ # * <tt>:wait</tt> - Enqueue the email to be delivered with a delay
59
+ # * <tt>:wait_until</tt> - Enqueue the email to be delivered at (after) a specific date / time
60
+ # * <tt>:queue</tt> - Enqueue the email on the specified queue
61
+ #
56
62
  # By default, the email will be enqueued using <tt>ActionMailer::DeliveryJob</tt>. Each
57
63
  # <tt>ActionMailer::Base</tt> class can specify the job to use by setting the class variable
58
64
  # +delivery_job+.
@@ -60,12 +66,6 @@ module ActionMailer
60
66
  # class AccountRegistrationMailer < ApplicationMailer
61
67
  # self.delivery_job = RegistrationDeliveryJob
62
68
  # end
63
- #
64
- # Options:
65
- #
66
- # * <tt>:wait</tt> - Enqueue the email to be delivered with a delay
67
- # * <tt>:wait_until</tt> - Enqueue the email to be delivered at (after) a specific date / time
68
- # * <tt>:queue</tt> - Enqueue the email on the specified queue
69
69
  def deliver_later!(options = {})
70
70
  enqueue_delivery :deliver_now!, options
71
71
  end
@@ -77,6 +77,12 @@ module ActionMailer
77
77
  # Notifier.welcome(User.first).deliver_later(wait: 1.hour)
78
78
  # Notifier.welcome(User.first).deliver_later(wait_until: 10.hours.from_now)
79
79
  #
80
+ # Options:
81
+ #
82
+ # * <tt>:wait</tt> - Enqueue the email to be delivered with a delay.
83
+ # * <tt>:wait_until</tt> - Enqueue the email to be delivered at (after) a specific date / time.
84
+ # * <tt>:queue</tt> - Enqueue the email on the specified queue.
85
+ #
80
86
  # By default, the email will be enqueued using <tt>ActionMailer::DeliveryJob</tt>. Each
81
87
  # <tt>ActionMailer::Base</tt> class can specify the job to use by setting the class variable
82
88
  # +delivery_job+.
@@ -84,12 +90,6 @@ module ActionMailer
84
90
  # class AccountRegistrationMailer < ApplicationMailer
85
91
  # self.delivery_job = RegistrationDeliveryJob
86
92
  # end
87
- #
88
- # Options:
89
- #
90
- # * <tt>:wait</tt> - Enqueue the email to be delivered with a delay.
91
- # * <tt>:wait_until</tt> - Enqueue the email to be delivered at (after) a specific date / time.
92
- # * <tt>:queue</tt> - Enqueue the email on the specified queue.
93
93
  def deliver_later(options = {})
94
94
  enqueue_delivery :deliver_now, options
95
95
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0.beta2
4
+ version: 5.2.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-28 00:00:00.000000000 Z
11
+ date: 2018-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.0.beta2
19
+ version: 5.2.0.rc1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 5.2.0.beta2
26
+ version: 5.2.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: actionview
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 5.2.0.beta2
33
+ version: 5.2.0.rc1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 5.2.0.beta2
40
+ version: 5.2.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activejob
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 5.2.0.beta2
47
+ version: 5.2.0.rc1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 5.2.0.beta2
54
+ version: 5.2.0.rc1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mail
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -121,8 +121,8 @@ homepage: http://rubyonrails.org
121
121
  licenses:
122
122
  - MIT
123
123
  metadata:
124
- source_code_uri: https://github.com/rails/rails/tree/v5.2.0.beta2/actionmailer
125
- changelog_uri: https://github.com/rails/rails/blob/v5.2.0.beta2/actionmailer/CHANGELOG.md
124
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.0.rc1/actionmailer
125
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.0.rc1/actionmailer/CHANGELOG.md
126
126
  post_install_message:
127
127
  rdoc_options: []
128
128
  require_paths:
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - none
142
142
  rubyforge_project:
143
- rubygems_version: 2.6.12
143
+ rubygems_version: 2.7.3
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Email composition, delivery, and receiving framework (part of Rails).