Hello community,

here is the log from the commit of package rubygem-mail for openSUSE:Factory 
checked in at 2017-06-08 15:01:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-mail (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-mail.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-mail"

Thu Jun  8 15:01:25 2017 rev:11 rq:497700 version:2.6.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-mail/rubygem-mail.changes        
2016-04-12 19:35:50.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mail.new/rubygem-mail.changes   
2017-06-08 15:01:26.828199119 +0200
@@ -1,0 +2,6 @@
+Tue May 23 10:02:59 UTC 2017 - [email protected]
+
+- updated to version 2.6.5
+ see installed CHANGELOG.rdoc
+
+-------------------------------------------------------------------

Old:
----
  mail-2.6.4.gem

New:
----
  mail-2.6.5.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-mail.spec ++++++
--- /var/tmp/diff_new_pack.KRJHmy/_old  2017-06-08 15:01:27.384120661 +0200
+++ /var/tmp/diff_new_pack.KRJHmy/_new  2017-06-08 15:01:27.392119533 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mail
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-mail
-Version:        2.6.4
+Version:        2.6.5
 Release:        0
 %define mod_name mail
 %define mod_full_name %{mod_name}-%{version}

++++++ mail-2.6.4.gem -> mail-2.6.5.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.rdoc new/CHANGELOG.rdoc
--- old/CHANGELOG.rdoc  2016-03-23 16:23:58.000000000 +0100
+++ new/CHANGELOG.rdoc  2017-04-27 03:03:00.000000000 +0200
@@ -1,4 +1,12 @@
-== HEAD
+== Version 2.6.5 - 2017-04-26 Jeremy Daer <[email protected]>
+
+Features:
+* #1053 - Ruby 2.4.0 compatibility. Fixnum+Bignum unified as Integer. 
(peterkovacs)
+
+Bugs:
+* #605 - Fix Mail::Address#name for nil addresses (peterkovacs)
+* #1003 - Fix decoding some b encoded headers on specific rubies that don't 
account for lack of base64 padding (kjg)
+* #1023 - Fix double-quoting in display names. (garethrees)
 
 == Version 2.6.4 - Wed Mar 23 08:16 -0700 2016 Jeremy Daer 
<[email protected]>
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2016-03-23 16:23:58.000000000 +0100
+++ new/Gemfile 2017-04-27 03:03:00.000000000 +0200
@@ -1,11 +1,14 @@
-source "https://rubygems.org";
+source 'https://rubygems.org'
 
 gemspec
 
-gem "tlsmail", "~> 0.0.1" if RUBY_VERSION <= "1.8.6"
-gem "jruby-openssl", :platforms => :jruby
+gem 'tlsmail', '~> 0.0.1' if RUBY_VERSION <= '1.8.6'
+gem 'jruby-openssl', :platforms => :jruby
+gem 'rake', '< 11.0', :platforms => :ruby_18
+gem 'rdoc', '< 4.3', :platforms => [ :ruby_18, :ruby_19 ]
+gem 'mime-types', '< 2.0', :platforms => [ :ruby_18, :ruby_19 ]
 
 # For gems not required to run tests
 group :local_development, :test do
-  gem "appraisal", "~> 1.0" unless RUBY_VERSION <= "1.8.7"
+  gem 'appraisal', '~> 1.0' unless RUBY_VERSION < '1.9'
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIT-LICENSE new/MIT-LICENSE
--- old/MIT-LICENSE     2016-03-23 16:23:58.000000000 +0100
+++ new/MIT-LICENSE     2017-04-27 03:03:00.000000000 +0200
@@ -1,4 +1,4 @@
-Copyright (c) 2009-2016 Mikel Lindsaar
+Copyright (c) 2009-2017 Mikel Lindsaar
 
 Permission is hereby granted, free of charge, to any person obtaining
 a copy of this software and associated documentation files (the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2016-03-23 16:23:58.000000000 +0100
+++ new/README.md       2017-04-27 03:03:00.000000000 +0200
@@ -48,9 +48,12 @@
 * ruby-1.9.2 [ x86_64 ]
 * ruby-1.9.3 [ x86_64 ]
 * ruby-2.0.0 [ x86_64 ]
-* ruby-2.1.2 [ x86_64 ]
+* ruby-2.1.10 [ x86_64 ]
+* ruby-2.2.6 [ x86_64 ]
+* ruby-2.3.3 [ x86_64 ]
 * ruby-head [ x86_64 ]
 * jruby [ x86_64 ]
+* jruby-9.1.6.0 [ x86_64 ]
 * jruby-head [ x86_64 ]
 * rbx-2 [ x86_64 ]
 
@@ -697,7 +700,7 @@
 
 (The MIT License)
 
-Copyright (c) 2009-2016 Mikel Lindsaar
+Copyright (c) 2009-2017 Mikel Lindsaar
 
 Permission is hereby granted, free of charge, to any person obtaining
 a copy of this software and associated documentation files (the
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mail/attachments_list.rb 
new/lib/mail/attachments_list.rb
--- old/lib/mail/attachments_list.rb    2016-03-23 16:23:58.000000000 +0100
+++ new/lib/mail/attachments_list.rb    2017-04-27 03:03:00.000000000 +0200
@@ -30,7 +30,7 @@
     # mail.attachments['test.png'].filename #=> 'test.png'
     # mail.attachments[1].filename          #=> 'test.jpg'
     def [](index_value)
-      if index_value.is_a?(Fixnum)
+      if index_value.is_a?(Integer)
         self.fetch(index_value)
       else
         self.select { |a| a.filename == index_value }.first
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mail/elements/address.rb 
new/lib/mail/elements/address.rb
--- old/lib/mail/elements/address.rb    2016-03-23 16:23:58.000000000 +0100
+++ new/lib/mail/elements/address.rb    2017-04-27 03:03:00.000000000 +0200
@@ -93,7 +93,7 @@
     #  a.display_name = 'Mikel Lindsaar'
     #  a.format #=> 'Mikel Lindsaar <[email protected]>'
     def display_name=( str )
-      @display_name = str.dup # in case frozen
+      @display_name = str.nil? ? nil : str.dup # in case frozen
     end
 
     # Returns the local part (the left hand side of the @ sign in the email 
address) of
@@ -123,7 +123,12 @@
     #  a.comments #=> ['My email address']
     def comments
       parse unless @parsed
-      get_comments.map { |c| c.squeeze(SPACE) } unless get_comments.empty?
+      comments = get_comments
+      if comments.nil? || comments.none?
+        nil
+      else
+        comments.map { |c| c.squeeze(SPACE) }
+      end
     end
 
     # Sometimes an address will not have a display name, but might have the 
name
@@ -205,9 +210,9 @@
     end
 
     def get_display_name
-      if @data.display_name
+      if @data && @data.display_name
         str = strip_all_comments(@data.display_name.to_s)
-      elsif @data.comments && @data.domain
+      elsif @data && @data.comments && @data.domain
         str = strip_domain_comments(format_comments)
       end
       str unless Utilities.blank?(str)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mail/elements/address_list.rb 
new/lib/mail/elements/address_list.rb
--- old/lib/mail/elements/address_list.rb       2016-03-23 16:23:58.000000000 
+0100
+++ new/lib/mail/elements/address_list.rb       2017-04-27 03:03:00.000000000 
+0200
@@ -20,7 +20,7 @@
     #  a.group_names  #=> ["My Group"]
     def initialize(string)
       @addresses_grouped_by_group = nil
-      @address_list = Parsers::AddressListsParser.new.parse(string)
+      @address_list = Mail::Parsers::AddressListsParser.new.parse(string)
     end
     
     # Returns a list of address objects from the parsed line
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mail/fields/common/address_container.rb 
new/lib/mail/fields/common/address_container.rb
--- old/lib/mail/fields/common/address_container.rb     2016-03-23 
16:23:58.000000000 +0100
+++ new/lib/mail/fields/common/address_container.rb     2017-04-27 
03:03:00.000000000 +0200
@@ -8,10 +8,10 @@
       super(list)
     end
 
-    def << (address)
+    def <<(address)
       @field << address
     end
 
   end
   
-end
\ No newline at end of file
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mail/multibyte/chars.rb 
new/lib/mail/multibyte/chars.rb
--- old/lib/mail/multibyte/chars.rb     2016-03-23 16:23:58.000000000 +0100
+++ new/lib/mail/multibyte/chars.rb     2017-04-27 03:03:00.000000000 +0200
@@ -269,12 +269,12 @@
           @wrapped_string[*args] = replace_by
         else
           result = Unicode.u_unpack(@wrapped_string)
-          if args[0].is_a?(Fixnum)
+          if args[0].is_a?(Integer)
             raise IndexError, "index #{args[0]} out of string" if args[0] >= 
result.length
             min = args[0]
             max = args[1].nil? ? min : (min + args[1] - 1)
             range = Range.new(min, max)
-            replace_by = [replace_by].pack('U') if replace_by.is_a?(Fixnum)
+            replace_by = [replace_by].pack('U') if replace_by.is_a?(Integer)
           elsif args.first.is_a?(Range)
             raise RangeError, "#{args[0]} out of range" if args[0].min >= 
result.length
             range = args[0]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mail/network/retriever_methods/test_retriever.rb 
new/lib/mail/network/retriever_methods/test_retriever.rb
--- old/lib/mail/network/retriever_methods/test_retriever.rb    2016-03-23 
16:23:58.000000000 +0100
+++ new/lib/mail/network/retriever_methods/test_retriever.rb    2017-04-27 
03:03:00.000000000 +0200
@@ -25,7 +25,7 @@
       emails_index.reverse! if options[:what] == :last
       emails_index = case count = options[:count]
         when :all then emails_index
-        when Fixnum then emails_index[0, count]
+        when Integer then emails_index[0, count]
         else
           raise 'Invalid count option value: ' + count.inspect
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mail/parsers/address_lists_parser.rb 
new/lib/mail/parsers/address_lists_parser.rb
--- old/lib/mail/parsers/address_lists_parser.rb        2016-03-23 
16:23:58.000000000 +0100
+++ new/lib/mail/parsers/address_lists_parser.rb        2017-04-27 
03:03:00.000000000 +0200
@@ -92,7 +92,7 @@
         # version.
         when :angle_addr_s
           if qstr
-            address.display_name = qstr
+            address.display_name = Mail::Utilities.unescape(qstr)
             qstr = nil
           elsif phrase_e
             address.display_name = s[phrase_s..phrase_e].strip
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mail/utilities.rb new/lib/mail/utilities.rb
--- old/lib/mail/utilities.rb   2016-03-23 16:23:58.000000000 +0100
+++ new/lib/mail/utilities.rb   2017-04-27 03:03:00.000000000 +0200
@@ -72,12 +72,26 @@
     #  unqoute(string) #=> 'This is "a string"'
     def unquote( str )
       if str =~ /^"(.*?)"$/
-        $1.gsub(/\\(.)/, '\1')
+        unescape($1)
       else
         str
       end
     end
 
+    # Removes any \-escaping.
+    #
+    # Example:
+    #
+    #  string = 'This is \"a string\"'
+    #  unescape(string) #=> 'This is "a string"'
+    #
+    #  string = '"This is \"a string\""'
+    #  unescape(string) #=> '"This is "a string""'
+    def unescape( str )
+      str.gsub(/\\(.)/, '\1')
+    end
+    module_function :unescape
+
     # Wraps a string in parenthesis and escapes any that are in the string 
itself.
     #
     # Example:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mail/version.rb new/lib/mail/version.rb
--- old/lib/mail/version.rb     2016-03-23 16:23:58.000000000 +0100
+++ new/lib/mail/version.rb     2017-04-27 03:03:01.000000000 +0200
@@ -4,7 +4,7 @@
 
     MAJOR = 2
     MINOR = 6
-    PATCH = 4
+    PATCH = 5
     BUILD = nil
 
     STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mail/version_specific/ruby_1_9.rb 
new/lib/mail/version_specific/ruby_1_9.rb
--- old/lib/mail/version_specific/ruby_1_9.rb   2016-03-23 16:23:58.000000000 
+0100
+++ new/lib/mail/version_specific/ruby_1_9.rb   2017-04-27 03:03:01.000000000 
+0200
@@ -59,6 +59,9 @@
     end
 
     def Ruby19.decode_base64(str)
+      if !str.end_with?("=") && str.length % 4 != 0
+        str = str.ljust((str.length + 3) & ~3, "=")
+      end
       str.unpack( 'm' ).first
     end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2016-03-23 16:23:58.000000000 +0100
+++ new/metadata        2017-04-27 03:03:00.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: mail
 version: !ruby/object:Gem::Version
-  version: 2.6.4
+  version: 2.6.5
 platform: ruby
 authors:
 - Mikel Lindsaar
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2016-03-23 00:00:00.000000000 Z
+date: 2017-04-27 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: mime-types
@@ -269,7 +269,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.5.1
+rubygems_version: 2.6.10
 signing_key: 
 specification_version: 4
 summary: Mail provides a nice Ruby DSL for making, sending and reading emails.


Reply via email to