simple_mail_builder 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple_mail_builder.rb +2 -0
- data/lib/simple_mail_builder/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb5e6c87ae4f3329b4813b87dc42e5687a88fb44
|
4
|
+
data.tar.gz: 18efe6688704116738aa6c645b65363f5db66dcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 621f17ad9804c8b14f8fe8691b48d8b12321ff30a8f5ac976ebcbceaca6595e6a0a993a4f1fd69ff803a5ac12bb4479d52c9ab0a471ac768f4ce346607996741
|
7
|
+
data.tar.gz: 25bea9238d5a91b5a3367dbe6abd835d3dbf8cf7963678b4cd3358dc770063436031ff00afa8606aa8763071960861967f76fedd85bb6bd193f694d0b9f395d7
|
data/lib/simple_mail_builder.rb
CHANGED
@@ -14,6 +14,8 @@ module SimpleMailBuilder
|
|
14
14
|
next address if address.nil? || String === address # otherwise we assume it's a Hash
|
15
15
|
address.map do |name, email|
|
16
16
|
name == email ? email : "#{Encoder::Base64.encode_or_quote(name)} <#{email}>"
|
17
|
+
end.map do |addr|
|
18
|
+
addr.gsub "\r\n", '' # basic protection against SMTP commands injection
|
17
19
|
end.join ", \r\n "
|
18
20
|
end
|
19
21
|
text, html = [text, html].map{|s| [s].pack('M').chomp("=\n").gsub "\n", "\r\n"}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_mail_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Rosenfeld Rosas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.6.
|
97
|
+
rubygems_version: 2.6.11
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Build mail messages for simple plain text + HTML multipart messages.
|