sanitize_email 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2QwZTRiZDVlYTI2ZWFkOTJkN2ExYzI5YjRlYmVmYjBjZGU5MGY4Mw==
4
+ NWFiN2NjNmYwNjk0YjNkNjkxZjg5ZDI1NDI0ZmMwY2M4MWI3MWZjZg==
5
5
  data.tar.gz: !binary |-
6
- MTIxMjlmMjI5OGIxMmMyZjNlZDBkOTc4OTc5YWFhZDA5ODcxMjE3Yg==
6
+ MjljOGVmM2UxZTE3MjY4OTM5ODQ4ZTk5OGEzN2JkNTYyNTNkYmRkMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmFjZTNmMDkyYzEyMGRiYmJkMzRiNmM1OThjYWM2Y2IwNmJlMzVhNDdmNTRj
10
- NGIyMjNmNGE4NTE1ODQyOGQxMjE2MGIwYTk5OTVmZmRjZDU2NjQ5YjNiZWQz
11
- YTZkMDM0YzNkYzZmODMzNGJlNzYxMjRkMzI3NDg0ZjUyYzA3ZWQ=
9
+ MGIxNjYyNzY4NGFkMDg3NTc0OGNlNjIxNDFhNjcyY2Q2YzM1YTM1MmFhYjM1
10
+ OGU2M2EyNzU3Njc3ZDdiZTczZDFkZmYxNjE1YTIwYjg1OWM5ZTI3MWQ2YzY3
11
+ YWIwZTk2MGU5ZmRiMTliNGUwMWZjM2NkOTc3OTEzYmI0OGIzNDU=
12
12
  data.tar.gz: !binary |-
13
- M2MzZmY5ZDlmMDMwNWMxNWZlNDZjNTkxMGYyNjFjMWRhN2YwZjZkMGRhOTVm
14
- MDczZDg5YmFmMDg1Nzk2MDVlNDQ4MTU1Yzg0NmZhZGJmNzNmZjFiNTlmZGY1
15
- OGU3YjViMzc3Nzk3ZGExNGYwODFjNTVhYzJlMjNkZjQwMDRkNTM=
13
+ ODA0YTM4YzczMDY2ZjBkYTVkODY1N2U2ZDIwNjIyY2FlNGE1MzNmZTgyYjA3
14
+ NzdmODIzNTBmMTRmOWZlMmQ3ODkwMzVkYWZkMWFlYTQzNjgwMDE2MTU0NzA1
15
+ MjEzYjAxYzliMjgzMjcxNmQ3NDFhNTYxOGQ4ZWUyNjM4NzQzNGI=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ Version 1.1.4 - JAN.06.2014
2
+ * Another attempt at not breaking when subject is nil by Peter Boling
3
+
1
4
  Version 1.1.3 - JAN.06.2014
2
5
  * Allow specification of environment when outside Rails by Peter Boling
3
6
 
@@ -31,8 +31,11 @@ module SanitizeEmail
31
31
  end
32
32
 
33
33
  def self.prepend_custom_subject(message)
34
- message.subject ||= ''
35
- message.subject.insert(0, SanitizeEmail::MailHeaderTools.prepend_subject_array(message).join(' ') + ' ')
34
+ if message.subject
35
+ message.subject.insert(0, SanitizeEmail::MailHeaderTools.prepend_subject_array(message).join(' ') + ' ')
36
+ else
37
+ message.subject = SanitizeEmail::MailHeaderTools.prepend_subject_array(message).join(' ')
38
+ end
36
39
  end
37
40
 
38
41
  # According to https://github.com/mikel/mail this is the correct way to update headers.
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2008-13 Peter H. Boling of RailsBling.com
2
2
  # Released under the MIT license
3
3
  module SanitizeEmail
4
- VERSION = '1.1.3'
4
+ VERSION = '1.1.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sanitize_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling