mail 2.6.6.rc1 → 2.6.6

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: ff722f1c50918ad8e99f86995d08b803d32f745e
4
- data.tar.gz: f552360cabc519f3fc959e6c193ef1d37d55670e
3
+ metadata.gz: fffa789ce57e01eb58d470854eef55242eae6f9c
4
+ data.tar.gz: fa95a3e43e7c7b80972dd81989688ed00ef5e22c
5
5
  SHA512:
6
- metadata.gz: 73ff2add4d33b0e7ee9b8fc7b4473fcaf8cb7b581d6dbda1a3e6e6a46ed19d1f25c1a614e6ad142eb05982d47078eee4828f27aa76e48101822fba7ebbc78175
7
- data.tar.gz: 48904e5d7a407ed85c7ef7be12dd1bd2e70042db1d99d9b1ff66a9af693862f3697498bbb2784a29900926d68e1a22d8bfad8e7b538a3bc26733a72660e35387
6
+ metadata.gz: '06621968e5681c087041b046f1f52cb7316116bedf04e38ab4255118249142488f768fba638c6fc2b99eb69d15a6d84823383f073f33bc8b05a6b3be635417d7'
7
+ data.tar.gz: f890a870876c79ca6014c8cccc84af35834cfc79576a2032aeef5a6f34ff183661e5fd73796b4693de53c1a288059e7733e359e7f0252548fe8c49e657f5bc7f
@@ -1,8 +1,11 @@
1
- == Version 2.6.6 - unreleased
1
+ == Version 2.6.6 - 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
+ Bugs:
7
+ * #689 - Fix Exim delivery method broken by #477 in 2.5.4. (jethrogb)
8
+
6
9
  == Version 2.6.5 - 2017-04-26 Jeremy Daer <jeremydaer@gmail.com>
7
10
 
8
11
  Features:
data/README.md CHANGED
@@ -42,25 +42,14 @@ 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.10 [ x86_64 ]
52
- * ruby-2.2.6 [ x86_64 ]
53
- * ruby-2.3.3 [ x86_64 ]
54
- * ruby-head [ x86_64 ]
55
- * jruby [ x86_64 ]
56
- * jruby-9.1.6.0 [ x86_64 ]
57
- * jruby-head [ x86_64 ]
58
- * rbx-2 [ x86_64 ]
59
-
60
- Testing a specific mime type (needed for 1.8.7 for example) can be done manually with:
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:
61
50
 
62
51
  ```sh
63
- BUNDLE_GEMFILE=gemfiles/mime_types_1.16.gemfile (bundle check || bundle) && rake
52
+ BUNDLE_GEMFILE=gemfiles/mime_types_1.16.gemfile bundle && rake
64
53
  ```
65
54
 
66
55
  Discussion
@@ -37,17 +37,13 @@ module Mail
37
37
  #
38
38
  # mail.deliver!
39
39
  class Exim < Sendmail
40
- def initialize(values)
41
- self.settings = { :location => '/usr/sbin/exim',
42
- :arguments => '-i -t' }.merge(values)
43
- end
40
+ DEFAULTS = {
41
+ :location => '/usr/sbin/exim',
42
+ :arguments => '-i -t'
43
+ }
44
44
 
45
- def self.call(path, arguments, destinations, mail)
46
- popen "#{path} #{arguments}" do |io|
47
- io.puts ::Mail::Utilities.to_lf(mail.encoded)
48
- io.flush
49
- end
45
+ def self.call(path, arguments, destinations, encoded_message)
46
+ super path, arguments, nil, encoded_message
50
47
  end
51
-
52
48
  end
53
49
  end
@@ -38,11 +38,15 @@ module Mail
38
38
  #
39
39
  # mail.deliver!
40
40
  class Sendmail
41
+ DEFAULTS = {
42
+ :location => '/usr/sbin/sendmail',
43
+ :arguments => '-i'
44
+ }
45
+
41
46
  attr_accessor :settings
42
47
 
43
48
  def initialize(values)
44
- self.settings = { :location => '/usr/sbin/sendmail',
45
- :arguments => '-i' }.merge(values)
49
+ self.settings = self.class::DEFAULTS.merge(values)
46
50
  end
47
51
 
48
52
  def deliver!(mail)
@@ -5,7 +5,7 @@ module Mail
5
5
  MAJOR = 2
6
6
  MINOR = 6
7
7
  PATCH = 6
8
- BUILD = 'rc1'
8
+ BUILD = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
11
11
 
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.6.6.rc1
4
+ version: 2.6.6
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
@@ -264,12 +264,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
264
264
  version: '0'
265
265
  required_rubygems_version: !ruby/object:Gem::Requirement
266
266
  requirements:
267
- - - ">"
267
+ - - ">="
268
268
  - !ruby/object:Gem::Version
269
- version: 1.3.1
269
+ version: '0'
270
270
  requirements: []
271
271
  rubyforge_project:
272
- rubygems_version: 2.6.12
272
+ rubygems_version: 2.6.11
273
273
  signing_key:
274
274
  specification_version: 4
275
275
  summary: Mail provides a nice Ruby DSL for making, sending and reading emails.