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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3ad00a632fb2803af1e9b55bf22f34fab9b02e6
4
- data.tar.gz: 40fa215f7675d53a544c512e4fe42260baa3b8e2
3
+ metadata.gz: bb5e6c87ae4f3329b4813b87dc42e5687a88fb44
4
+ data.tar.gz: 18efe6688704116738aa6c645b65363f5db66dcf
5
5
  SHA512:
6
- metadata.gz: 67ede683e1eaffb4f743ebcaef48a18f0052ef62f0ffc78491a574ab8e531ce8cf7de85e3936bf8bc7cc8df7bbb06fc8b2d6d624e94b1d23a52b36af0fcea5e9
7
- data.tar.gz: 8e70ecb268ceca9482d9660f0eb47249a25d7ed282431e976774a711e026248b5239f0fac057c32f40c00384c1053d1b277c9838a0bc60513cd89e93b275a0b2
6
+ metadata.gz: 621f17ad9804c8b14f8fe8691b48d8b12321ff30a8f5ac976ebcbceaca6595e6a0a993a4f1fd69ff803a5ac12bb4479d52c9ab0a471ac768f4ce346607996741
7
+ data.tar.gz: 25bea9238d5a91b5a3367dbe6abd835d3dbf8cf7963678b4cd3358dc770063436031ff00afa8606aa8763071960861967f76fedd85bb6bd193f694d0b9f395d7
@@ -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"}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleMailBuilder
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
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.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-04-07 00:00:00.000000000 Z
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.8
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.