actionmailer 2.3.3 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,4 +1,8 @@
1
- *2.3.3 (July 20, 2009)*
1
+ *2.3.4 (September 4, 2009)*
2
+
3
+ * Minor bug fixes.
4
+
5
+ *2.3.3 (July 12, 2009)*
2
6
 
3
7
  * No changes, just a version bump.
4
8
 
data/Rakefile CHANGED
@@ -54,7 +54,7 @@ spec = Gem::Specification.new do |s|
54
54
  s.rubyforge_project = "actionmailer"
55
55
  s.homepage = "http://www.rubyonrails.org"
56
56
 
57
- s.add_dependency('actionpack', '= 2.3.3' + PKG_BUILD)
57
+ s.add_dependency('actionpack', '= 2.3.4' + PKG_BUILD)
58
58
 
59
59
  s.has_rdoc = true
60
60
  s.requirements << 'none'
@@ -88,11 +88,12 @@ end
88
88
 
89
89
  desc "Publish the release files to RubyForge."
90
90
  task :release => [ :package ] do
91
- `rubyforge login`
91
+ require 'rubyforge'
92
+ require 'rake/contrib/rubyforgepublisher'
92
93
 
93
- for ext in %w( gem tgz zip )
94
- release_command = "rubyforge add_release #{PKG_NAME} #{PKG_NAME} 'REL #{PKG_VERSION}' pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}"
95
- puts release_command
96
- system(release_command)
97
- end
94
+ packages = %w( gem tgz zip ).collect{ |ext| "pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}" }
95
+
96
+ rubyforge = RubyForge.new
97
+ rubyforge.login
98
+ rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
98
99
  end
@@ -543,6 +543,7 @@ module ActionMailer #:nodoc:
543
543
  @headers ||= {}
544
544
  @body ||= {}
545
545
  @mime_version = @@default_mime_version.dup if @@default_mime_version
546
+ @sent_on ||= Time.now
546
547
  end
547
548
 
548
549
  def render_message(method_name, body)
@@ -2,7 +2,7 @@ module ActionMailer
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -18,7 +18,6 @@ class TestMailer < ActionMailer::Base
18
18
  @recipients = recipient
19
19
  @subject = "[Signed up] Welcome #{recipient}"
20
20
  @from = "system@loudthinking.com"
21
- @sent_on = Time.local(2004, 12, 12)
22
21
  @body["recipient"] = recipient
23
22
  end
24
23
 
@@ -356,12 +355,14 @@ class ActionMailerTest < Test::Unit::TestCase
356
355
  end
357
356
 
358
357
  def test_signed_up
358
+ Time.stubs(:now => Time.now)
359
+
359
360
  expected = new_mail
360
361
  expected.to = @recipient
361
362
  expected.subject = "[Signed up] Welcome #{@recipient}"
362
363
  expected.body = "Hello there, \n\nMr. #{@recipient}"
363
364
  expected.from = "system@loudthinking.com"
364
- expected.date = Time.local(2004, 12, 12)
365
+ expected.date = Time.now
365
366
 
366
367
  created = nil
367
368
  assert_nothing_raised { created = TestMailer.create_signed_up(@recipient) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -9,7 +9,7 @@ autorequire: action_mailer
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-20 00:00:00 -05:00
12
+ date: 2009-09-04 00:00:00 +12:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.3.3
23
+ version: 2.3.4
24
24
  version:
25
25
  description: Makes it trivial to test and deliver emails sent from a single service layer.
26
26
  email: david@loudthinking.com
@@ -36,7 +36,6 @@ files:
36
36
  - README
37
37
  - CHANGELOG
38
38
  - MIT-LICENSE
39
- - lib/action_mailer
40
39
  - lib/action_mailer/adv_attr_accessor.rb
41
40
  - lib/action_mailer/base.rb
42
41
  - lib/action_mailer/helpers.rb
@@ -47,13 +46,8 @@ files:
47
46
  - lib/action_mailer/test_case.rb
48
47
  - lib/action_mailer/test_helper.rb
49
48
  - lib/action_mailer/utils.rb
50
- - lib/action_mailer/vendor
51
- - lib/action_mailer/vendor/text-format-0.6.3
52
- - lib/action_mailer/vendor/text-format-0.6.3/text
53
49
  - lib/action_mailer/vendor/text-format-0.6.3/text/format.rb
54
50
  - lib/action_mailer/vendor/text_format.rb
55
- - lib/action_mailer/vendor/tmail-1.2.3
56
- - lib/action_mailer/vendor/tmail-1.2.3/tmail
57
51
  - lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb
58
52
  - lib/action_mailer/vendor/tmail-1.2.3/tmail/attachments.rb
59
53
  - lib/action_mailer/vendor/tmail-1.2.3/tmail/base64.rb
@@ -88,31 +82,21 @@ files:
88
82
  - test/abstract_unit.rb
89
83
  - test/asset_host_test.rb
90
84
  - test/delivery_method_test.rb
91
- - test/fixtures
92
- - test/fixtures/asset_host_mailer
93
85
  - test/fixtures/asset_host_mailer/email_with_asset.html.erb
94
- - test/fixtures/auto_layout_mailer
95
86
  - test/fixtures/auto_layout_mailer/hello.html.erb
96
87
  - test/fixtures/auto_layout_mailer/multipart.text.html.erb
97
88
  - test/fixtures/auto_layout_mailer/multipart.text.plain.erb
98
- - test/fixtures/explicit_layout_mailer
99
89
  - test/fixtures/explicit_layout_mailer/logout.html.erb
100
90
  - test/fixtures/explicit_layout_mailer/signup.html.erb
101
- - test/fixtures/first_mailer
102
91
  - test/fixtures/first_mailer/share.erb
103
- - test/fixtures/helper_mailer
104
92
  - test/fixtures/helper_mailer/use_example_helper.erb
105
93
  - test/fixtures/helper_mailer/use_helper.erb
106
94
  - test/fixtures/helper_mailer/use_helper_method.erb
107
95
  - test/fixtures/helper_mailer/use_mail_helper.erb
108
- - test/fixtures/helpers
109
96
  - test/fixtures/helpers/example_helper.rb
110
- - test/fixtures/layouts
111
97
  - test/fixtures/layouts/auto_layout_mailer.html.erb
112
98
  - test/fixtures/layouts/auto_layout_mailer.text.erb
113
99
  - test/fixtures/layouts/spam.html.erb
114
- - test/fixtures/path.with.dots
115
- - test/fixtures/path.with.dots/funky_path_mailer
116
100
  - test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb
117
101
  - test/fixtures/raw_email
118
102
  - test/fixtures/raw_email10
@@ -130,11 +114,8 @@ files:
130
114
  - test/fixtures/raw_email_with_invalid_characters_in_content_type
131
115
  - test/fixtures/raw_email_with_nested_attachment
132
116
  - test/fixtures/raw_email_with_partially_quoted_subject
133
- - test/fixtures/second_mailer
134
117
  - test/fixtures/second_mailer/share.erb
135
- - test/fixtures/templates
136
118
  - test/fixtures/templates/signed_up.erb
137
- - test/fixtures/test_mailer
138
119
  - test/fixtures/test_mailer/_subtemplate.text.plain.erb
139
120
  - test/fixtures/test_mailer/body_ivar.erb
140
121
  - test/fixtures/test_mailer/custom_templating_extension.text.html.haml
@@ -160,6 +141,8 @@ files:
160
141
  - test/url_test.rb
161
142
  has_rdoc: true
162
143
  homepage: http://www.rubyonrails.org
144
+ licenses: []
145
+
163
146
  post_install_message:
164
147
  rdoc_options: []
165
148
 
@@ -180,9 +163,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
163
  requirements:
181
164
  - none
182
165
  rubyforge_project: actionmailer
183
- rubygems_version: 1.3.1
166
+ rubygems_version: 1.3.2
184
167
  signing_key:
185
- specification_version: 2
168
+ specification_version: 3
186
169
  summary: Service layer for easy email delivery and testing.
187
170
  test_files: []
188
171