actionmailer 4.0.3 → 4.0.4.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionmailer might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a014d8d798583f2ecebf84e9d53f77b9b6c1c7a
4
- data.tar.gz: 1a769ffe31cc3ce7f1576bc5c43fec1b616236df
3
+ metadata.gz: 94e455d8417bed63234639d208c6158b7067d16a
4
+ data.tar.gz: 048f8439dbc2b765c62fa3075a352a16d765743a
5
5
  SHA512:
6
- metadata.gz: a2f84f358e6b9a20f3b9834175c285e243b842fbda6825c114b69fbb6bb2baabc40e3fd5bff54641a75826e1f4ab80ca8c835096d61d7bd3751d0ad8485c1f14
7
- data.tar.gz: 068d56970b4f1c0caa84137731af104b3b705d9655a636d7eec8c5a519ba39de7fe3846becc4de7b651d35c1b38e9b3f76c6035216b1247814326b2fd30cbf68
6
+ metadata.gz: 077c943cda358bbec8e98e5bd5404df985a0f10c9f41b9e4ec2fbd57bd491ddefcb4d015f81181ed8d47de9e2094c1ccd27c1a6a90beb1b5a83bb558c7326ec3
7
+ data.tar.gz: b079c8c615f0304b01c7290dcc7584b0970030108692392e6aa814cb780685068d4f069b70b821bb16b49d5cc29c82643da40cbb59451ecb9627192d2b408a54
@@ -1,5 +1,40 @@
1
+ ## Rails 4.0.4 ##
2
+
3
+ * Calling `mail()` without arguments serves as getter for the current mail
4
+ message and keeps previously set headers.
5
+
6
+ Example:
7
+
8
+ class MailerWithCallback < ActionMailer::Base
9
+ after_action :a_callback
10
+
11
+ def welcome
12
+ mail subject: "subject", to: ["joe@example.com"]
13
+ end
14
+
15
+ def a_callback
16
+ mail # => returns the current mail message
17
+ end
18
+ end
19
+
20
+ *Yves Senn*
21
+
22
+
23
+ ## Rails 4.0.3 (February 18, 2014) ##
24
+
25
+ *No changes*
26
+
27
+
28
+ ## Rails 4.0.2 (December 02, 2013) ##
29
+
30
+ *No changes*
31
+
32
+
1
33
  ## Rails 4.0.1 (November 01, 2013) ##
2
34
 
35
+ * Instrument the generation of Action Mailer messages. The time it takes to
36
+ generate a message is written to the log.
37
+
3
38
  * Invoke mailer defaults as procs only if they are procs, do not convert
4
39
  with `to_proc`. That an object is convertible to a proc does not mean it's
5
40
  meant to be always used as a proc.
@@ -661,6 +661,8 @@ module ActionMailer
661
661
  # end
662
662
  #
663
663
  def mail(headers = {}, &block)
664
+ return @_message if @_mail_was_called && headers.blank? && !block
665
+
664
666
  @_mail_was_called = true
665
667
  m = @_message
666
668
 
@@ -1,7 +1,7 @@
1
1
  module ActionMailer
2
2
  # Returns the version of the currently loaded ActionMailer as a Gem::Version
3
3
  def self.version
4
- Gem::Version.new "4.0.3"
4
+ Gem::Version.new "4.0.4.rc1"
5
5
  end
6
6
 
7
7
  module VERSION #:nodoc:
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: 4.0.3
4
+ version: 4.0.4.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: 2014-02-18 00:00:00.000000000 Z
11
+ date: 2014-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.3
19
+ version: 4.0.4.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: 4.0.3
26
+ version: 4.0.4.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mail
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -76,13 +76,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
76
  version: 1.9.3
77
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ">="
79
+ - - ">"
80
80
  - !ruby/object:Gem::Version
81
- version: '0'
81
+ version: 1.3.1
82
82
  requirements:
83
83
  - none
84
84
  rubyforge_project:
85
- rubygems_version: 2.2.0
85
+ rubygems_version: 2.2.2
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Email composition, delivery, and receiving framework (part of Rails).