actionmailer 3.1.0.beta1 → 3.1.0.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.

data/CHANGELOG CHANGED
@@ -2,14 +2,42 @@
2
2
 
3
3
  * No changes
4
4
 
5
- *Rails 3.0.2 (unreleased)*
5
+
6
+ *Rails 3.0.7 (April 18, 2011)*
7
+
8
+ * remove AM delegating register_observer and register_interceptor to Mail [Josh Kalderimis]
9
+
10
+
11
+ *Rails 3.0.6 (April 5, 2011)
12
+
13
+ * Don't allow i18n to change the minor version, version now set to ~> 0.5.0 [Santiago Pastorino]
14
+
15
+
16
+ *Rails 3.0.5 (February 26, 2011)*
17
+
18
+ * No changes.
19
+
20
+
21
+ *Rails 3.0.4 (February 8, 2011)*
22
+
23
+ * No changes.
24
+
25
+
26
+ *Rails 3.0.3 (November 16, 2010)*
27
+
28
+ * No changes.
29
+
30
+
31
+ *Rails 3.0.2 (November 15, 2010)*
6
32
 
7
33
  * No changes
8
34
 
35
+
9
36
  *Rails 3.0.1 (October 15, 2010)*
10
37
 
11
38
  * No Changes, just a version bump.
12
39
 
40
+
13
41
  *Rails 3.0.0 (August 29, 2010)*
14
42
 
15
43
  * subject is automatically looked up on I18n using mailer_name and action_name as scope as in t(".subject") [JK]
@@ -102,7 +102,7 @@ Example:
102
102
  )
103
103
 
104
104
  if email.has_attachments?
105
- for attachment in email.attachments
105
+ email.attachments.each do |attachment|
106
106
  page.attachments.create({
107
107
  :file => attachment, :description => email.subject
108
108
  })
@@ -157,5 +157,5 @@ API documentation is at
157
157
 
158
158
  Bug reports and feature requests can be filed with the rest for the Ruby on Rails project here:
159
159
 
160
- * https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets
160
+ * https://github.com/rails/rails/issues
161
161
 
@@ -349,8 +349,7 @@ module ActionMailer #:nodoc:
349
349
  include AbstractController::Translation
350
350
  include AbstractController::AssetPaths
351
351
 
352
- cattr_reader :protected_instance_variables
353
- @@protected_instance_variables = []
352
+ self.protected_instance_variables = %w(@_action_has_layout)
354
353
 
355
354
  helper ActionMailer::MailHelper
356
355
  include ActionMailer::OldApi
@@ -8,7 +8,7 @@ module ActionMailer
8
8
 
9
9
  included do
10
10
  extend ActionMailer::AdvAttrAccessor
11
- self.protected_instance_variables.concat %w(@parts @mail_was_called)
11
+ self.protected_instance_variables.concat %w(@parts @mail_was_called @headers)
12
12
 
13
13
  # Specify the BCC addresses for the message
14
14
  adv_attr_accessor :bcc
@@ -3,7 +3,7 @@ module ActionMailer
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
5
  TINY = 0
6
- PRE = "beta1"
6
+ PRE = "rc1"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
@@ -1,7 +1,7 @@
1
1
  <% module_namespacing do -%>
2
2
  class <%= class_name %> < ActionMailer::Base
3
- default :from => "from@example.com"
4
- <% for action in actions -%>
3
+ default <%= key_value :from, '"from@example.com"' %>
4
+ <% actions.each do |action| -%>
5
5
 
6
6
  # Subject can be set in your I18n file at config/locales/en.yml
7
7
  # with the following lookup:
@@ -11,7 +11,7 @@ class <%= class_name %> < ActionMailer::Base
11
11
  def <%= action %>
12
12
  @greeting = "Hi"
13
13
 
14
- mail :to => "to@example.org"
14
+ mail <%= key_value :to, '"to@example.org"' %>
15
15
  end
16
16
  <% end -%>
17
17
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: actionmailer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 3.1.0.beta1
5
+ version: 3.1.0.rc1
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Heinemeier Hansson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-04 00:00:00 -05:00
13
+ date: 2011-05-21 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -21,7 +21,7 @@ dependencies:
21
21
  requirements:
22
22
  - - "="
23
23
  - !ruby/object:Gem::Version
24
- version: 3.1.0.beta1
24
+ version: 3.1.0.rc1
25
25
  type: :runtime
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: 1.3.1
87
87
  requirements:
88
88
  - none
89
- rubyforge_project: actionmailer
89
+ rubyforge_project:
90
90
  rubygems_version: 1.6.2
91
91
  signing_key:
92
92
  specification_version: 3