mail 2.5.5.rc1 → 2.5.5

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: 80272f9450b9b4e8fda722e90b035af0571714a7
4
- data.tar.gz: 4ccdee5a66dcb916988af7e26fa5aa40ca0486ca
3
+ metadata.gz: 483ee321c6ec26a7fb20deb57c50254f916c5055
4
+ data.tar.gz: 49bbe456db7b901b8f9a17cc404ed6cdd4ac84f2
5
5
  SHA512:
6
- metadata.gz: 306abdee9ff345ecdf15fc1bbcf3b894d3becfc3aaf4c254931ad088dda67a5043762d263de6dec3f432146d44d1a595aa23d534cb345736dc435738bff3e682
7
- data.tar.gz: bb33d18fdbdc381e4c6b0d7aef3c2495dc4d1205bea210f5118bb18c0e6d4bfe5a87df5330a103fa0b8d4fdac62511b264b21f22d50c59599585c0a631731243
6
+ metadata.gz: bc79fcc391b2358f8aecd403453c934399a561bd2cf0c3cb32bf850815a6c99086c47104e0680a7d77a62585453bef8ca27d885f0345d102e0191a1f5354973d
7
+ data.tar.gz: cd1ea707e1b61aa29bb452d3b2eaa7a245721b28d17448061cef63beff93c794f3a05d0c104afa79a9cb7026f0b20376f422b76747170d35fe72a59ed64e40e6
@@ -1,10 +1,11 @@
1
- == Version 2.5.5 - unreleased
1
+ == Version 2.5.5 - 2017-06-09 Jeremy Daer <jeremydaer@gmail.com>
2
2
 
3
3
  Security:
4
4
  * #1097 – SMTP security: prevent command injection via To/From addresses. (jeremy)
5
5
 
6
6
  Bugs:
7
7
  * #633 – Cope with message parts that have an empty Content-Type (ThomasKoppensteiner, zeepeeare)
8
+ * #689 - Fix Exim delivery method broken by #477 in 2.5.4. (jethrogb)
8
9
 
9
10
  == Version 2.5.4 - Tue May 14 14:45:00 +1100 2013 Mikel Lindsaar <mikel@lindsaar.net>
10
11
 
data/Gemfile CHANGED
@@ -2,14 +2,31 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem "rake", "< 11.0" if RUBY_VERSION < '1.9.3'
6
-
7
- gem "treetop", "~> 1.4.10"
8
- gem "mime-types", "~> 1.16"
5
+ if RUBY_VERSION < '1.9.3'
6
+ gem 'activesupport', '< 4'
7
+ elsif RUBY_VERSION < '2.2.2'
8
+ gem 'activesupport', '< 5'
9
+ end
10
+ gem 'i18n', '< 0.7.0' if RUBY_VERSION < '1.9.3'
9
11
  gem "tlsmail" if RUBY_VERSION <= '1.8.6'
12
+ gem "mime-types", "~> 1.16"
13
+ gem "treetop", "~> 1.4.10"
10
14
 
11
15
  gem 'jruby-openssl', :platform => :jruby
12
16
 
13
17
  # For gems not required to run tests
14
18
  group :local_development, :test do
19
+ gem 'rake', '> 0.8.7', '< 11.0.1'
20
+ gem 'rdoc', '< 4.3' if RUBY_VERSION < '1.9.3'
21
+ gem "rspec", "~> 2.8.0"
22
+ case
23
+ when defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
24
+ # Skip it
25
+ when RUBY_PLATFORM == 'java'
26
+ # Skip it
27
+ when RUBY_VERSION < '1.9'
28
+ gem "ruby-debug"
29
+ else
30
+ # Skip it
31
+ end
15
32
  end
data/README.md CHANGED
@@ -42,17 +42,15 @@ me a nice email :)
42
42
  Compatibility
43
43
  -------------
44
44
 
45
- Every Mail commit is tested by Travis on the [following platforms](https://github.com/mikel/mail/blob/master/.travis.yml)
46
-
47
- * ruby-1.8.7 [ i686 ]
48
- * ruby-1.9.2 [ x86_64 ]
49
- * ruby-1.9.3 [ x86_64 ]
50
- * ruby-2.0.0 [ x86_64 ]
51
- * ruby-2.1.2 [ x86_64 ]
52
- * ruby-head [ x86_64 ]
53
- * jruby [ x86_64 ]
54
- * jruby-head [ x86_64 ]
55
- * rbx-2 [ x86_64 ]
45
+ Mail supports Ruby 1.8.7+, including JRuby and Rubinius.
46
+
47
+ Every Mail commit is tested by Travis on [all supported Ruby versions](https://github.com/mikel/mail/blob/master/.travis.yml).
48
+
49
+ Testing a specific version of mime-types (needed for Ruby 1.8.7, for example) can be done manually with:
50
+
51
+ ```sh
52
+ BUNDLE_GEMFILE=gemfiles/mime_types_1.16.gemfile bundle && rake
53
+ ```
56
54
 
57
55
  Discussion
58
56
  ----------
@@ -1,4 +1,4 @@
1
1
  major:2
2
2
  minor:5
3
3
  patch:5
4
- build:rc1
4
+ build:
@@ -36,17 +36,13 @@ module Mail
36
36
  #
37
37
  # mail.deliver!
38
38
  class Exim < Sendmail
39
- def initialize(values)
40
- self.settings = { :location => '/usr/sbin/exim',
41
- :arguments => '-i -t' }.merge(values)
42
- end
39
+ DEFAULTS = {
40
+ :location => '/usr/sbin/exim',
41
+ :arguments => '-i -t'
42
+ }
43
43
 
44
- def self.call(path, arguments, destinations, mail)
45
- popen "#{path} #{arguments}" do |io|
46
- io.puts mail.encoded.to_lf
47
- io.flush
48
- end
44
+ def self.call(path, arguments, destinations, encoded_message)
45
+ super path, arguments, nil, encoded_message
49
46
  end
50
-
51
47
  end
52
48
  end
@@ -37,11 +37,15 @@ module Mail
37
37
  #
38
38
  # mail.deliver!
39
39
  class Sendmail
40
+ DEFAULTS = {
41
+ :location => '/usr/sbin/sendmail',
42
+ :arguments => '-i'
43
+ }
44
+
40
45
  attr_accessor :settings
41
46
 
42
47
  def initialize(values)
43
- self.settings = { :location => '/usr/sbin/sendmail',
44
- :arguments => '-i' }.merge(values)
48
+ self.settings = self.class::DEFAULTS.merge(values)
45
49
  end
46
50
 
47
51
  def deliver!(mail)
@@ -129,15 +129,11 @@ module Mail
129
129
  openssl_verify_mode = "OpenSSL::SSL::VERIFY_#{openssl_verify_mode.upcase}".constantize
130
130
  end
131
131
 
132
- if RUBY_VERSION < '1.9.0'
133
- openssl_verify_mode
134
- else
135
- context = Net::SMTP.default_ssl_context
136
- context.verify_mode = openssl_verify_mode
137
- context.ca_path = settings[:ca_path] if settings[:ca_path]
138
- context.ca_file = settings[:ca_file] if settings[:ca_file]
139
- context
140
- end
132
+ context = Net::SMTP.default_ssl_context
133
+ context.verify_mode = openssl_verify_mode
134
+ context.ca_path = settings[:ca_path] if settings[:ca_path]
135
+ context.ca_file = settings[:ca_file] if settings[:ca_file]
136
+ context
141
137
  end
142
138
  end
143
139
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.5.rc1
4
+ version: 2.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikel Lindsaar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-09 00:00:00.000000000 Z
11
+ date: 2017-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types
@@ -261,12 +261,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
261
261
  version: '0'
262
262
  required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  requirements:
264
- - - ">"
264
+ - - ">="
265
265
  - !ruby/object:Gem::Version
266
- version: 1.3.1
266
+ version: '0'
267
267
  requirements: []
268
268
  rubyforge_project:
269
- rubygems_version: 2.6.12
269
+ rubygems_version: 2.6.11
270
270
  signing_key:
271
271
  specification_version: 4
272
272
  summary: Mail provides a nice Ruby DSL for making, sending and reading emails.