active_mailer 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog.md CHANGED
@@ -1,3 +1,6 @@
1
+ = 0.0.9
2
+ * okay, this time we are totally setting the headers correctly
3
+
1
4
  = 0.0.8
2
5
  * do not coerce headers
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_mailer (0.0.8)
4
+ active_mailer (0.0.9)
5
5
  activesupport (~> 3.2)
6
6
  rails (~> 3.2)
7
7
 
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.authors = ["Matt Gordon"]
8
8
  s.email = 'support@expectedbehavior.com'
9
9
  s.files = Dir["{app,lib,config}/**/*"] + ["MIT-LICENSE", "Rakefile", "Gemfile", "README.rdoc"]
10
- s.version = "0.0.8"
10
+ s.version = "0.0.9"
11
11
  s.homepage =
12
12
  'https://github.com/expectedbehavior/active_mailer'
13
13
 
@@ -182,7 +182,7 @@ module ActiveMailer #:nodoc:
182
182
  :to => options[:recipients],
183
183
  :subject => options[:subject],
184
184
  :from => options[:sender].email_address }
185
- mail_options[:headers] = options[:headers] if options[:headers].present?
185
+ headers(options[:headers]) if options[:headers].present?
186
186
  mail(mail_options)
187
187
  end
188
188
  end
@@ -35,8 +35,8 @@ class ActiveMailerTest < ActiveSupport::TestCase
35
35
  email = InvitationEmail.new(:sender => "spammy@example.com",
36
36
  :recipients => ["takesit@upemail.com", nil],
37
37
  :subject => "YOU GUYS!")
38
- email.headers = "SOMETHING: else"
38
+ email.headers = {"SOMETHING" => "else"}
39
39
  assert { email.send! }
40
- assert { email.mailer["headers"].to_s == "SOMETHING: else" }
40
+ assert { email.mailer.header["SOMETHING"].to_s == "else" }
41
41
  end
42
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: