active_mailer 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -36,3 +36,4 @@ coverage
36
36
  bin
37
37
  repos
38
38
  test/fixtures/repos
39
+ *.gem
data/ChangeLog.md CHANGED
@@ -1,3 +1,6 @@
1
+ = 0.0.8
2
+ * do not coerce headers
3
+
1
4
  = 0.0.7
2
5
  * support for setting custom email headers. Give us the hassssh.
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_mailer (0.0.7)
4
+ active_mailer (0.0.8)
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.7"
10
+ s.version = "0.0.8"
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].to_json if options[:headers].present?
185
+ mail_options[: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["headers"].to_s == "SOMETHING: 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.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: