Hello community, here is the log from the commit of package rubygem-actionmailer-4_2 for openSUSE:Factory checked in at 2015-07-08 06:59:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-actionmailer-4_2 (Old) and /work/SRC/openSUSE:Factory/.rubygem-actionmailer-4_2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-actionmailer-4_2" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-actionmailer-4_2/rubygem-actionmailer-4_2.changes 2015-03-28 18:38:34.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-actionmailer-4_2.new/rubygem-actionmailer-4_2.changes 2015-07-08 06:59:10.000000000 +0200 @@ -1,0 +2,39 @@ +Fri Jun 26 04:29:03 UTC 2015 - co...@suse.com + +- updated to version 4.2.3 + see installed CHANGELOG.md + + ## Rails 4.2.3 (June 25, 2015) ## + + * `assert_emails` in block form use the given number as expected value. + This makes the error message much easier to understand. + + *Yuji Yaginuma* + + * Mailer preview now uses `url_for` to fix links to emails for apps running on + a subdirectory. + + *Remo Mueller* + + * Mailer previews no longer crash when the `mail` method wasn't called + (`NullMail`). + + Fixes #19849. + + *Yves Senn* + + * Make sure labels and values line up in mailer previews. + + *Yves Senn* + +------------------------------------------------------------------- +Wed Jun 17 04:29:13 UTC 2015 - co...@suse.com + +- updated to version 4.2.2 + see installed CHANGELOG.md + + ## Rails 4.2.2 (June 16, 2015) ## + + * No Changes * + +------------------------------------------------------------------- Old: ---- actionmailer-4.2.1.gem New: ---- actionmailer-4.2.3.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-actionmailer-4_2.spec ++++++ --- /var/tmp/diff_new_pack.s7Q7jQ/_old 2015-07-08 06:59:11.000000000 +0200 +++ /var/tmp/diff_new_pack.s7Q7jQ/_new 2015-07-08 06:59:11.000000000 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-actionmailer-4_2 -Version: 4.2.1 +Version: 4.2.3 Release: 0 %define mod_name actionmailer %define mod_full_name %{mod_name}-%{version} ++++++ actionmailer-4.2.1.gem -> actionmailer-4.2.3.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2015-03-19 17:41:32.000000000 +0100 +++ new/CHANGELOG.md 2015-06-25 23:30:01.000000000 +0200 @@ -1,6 +1,35 @@ -## Rails 4.2.1 (March 19, 2014) ## +## Rails 4.2.3 (June 25, 2015) ## -* No changes * +* `assert_emails` in block form use the given number as expected value. + This makes the error message much easier to understand. + + *Yuji Yaginuma* + +* Mailer preview now uses `url_for` to fix links to emails for apps running on + a subdirectory. + + *Remo Mueller* + +* Mailer previews no longer crash when the `mail` method wasn't called + (`NullMail`). + + Fixes #19849. + + *Yves Senn* + +* Make sure labels and values line up in mailer previews. + + *Yves Senn* + + +## Rails 4.2.2 (June 16, 2015) ## + +* No Changes * + + +## Rails 4.2.1 (March 19, 2015) ## + +* No Changes * ## Rails 4.2.0 (December 20, 2014) ## Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/action_mailer/base.rb new/lib/action_mailer/base.rb --- old/lib/action_mailer/base.rb 2015-03-19 17:41:32.000000000 +0100 +++ new/lib/action_mailer/base.rb 2015-06-25 23:30:01.000000000 +0200 @@ -381,8 +381,8 @@ # * <tt>:password</tt> - If your mail server requires authentication, set the password in this setting. # * <tt>:authentication</tt> - If your mail server requires authentication, you need to specify the # authentication type here. - # This is a symbol and one of <tt>:plain</tt> (will send the password in the clear), <tt>:login</tt> (will - # send password Base64 encoded) or <tt>:cram_md5</tt> (combines a Challenge/Response mechanism to exchange + # This is a symbol and one of <tt>:plain</tt> (will send the password Base64 encoded), <tt>:login</tt> (will + # send the password Base64 encoded) or <tt>:cram_md5</tt> (combines a Challenge/Response mechanism to exchange # information and a cryptographic Message Digest 5 algorithm to hash important information) # * <tt>:enable_starttls_auto</tt> - Detects if STARTTLS is enabled in your SMTP server and starts # to use it. Defaults to <tt>true</tt>. @@ -600,6 +600,7 @@ class NullMail #:nodoc: def body; '' end + def header; {} end def respond_to?(string, include_all=false) true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/action_mailer/gem_version.rb new/lib/action_mailer/gem_version.rb --- old/lib/action_mailer/gem_version.rb 2015-03-19 17:41:32.000000000 +0100 +++ new/lib/action_mailer/gem_version.rb 2015-06-25 23:30:01.000000000 +0200 @@ -7,7 +7,7 @@ module VERSION MAJOR = 4 MINOR = 2 - TINY = 1 + TINY = 3 PRE = nil STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/action_mailer/inline_preview_interceptor.rb new/lib/action_mailer/inline_preview_interceptor.rb --- old/lib/action_mailer/inline_preview_interceptor.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/action_mailer/inline_preview_interceptor.rb 2015-06-25 23:30:01.000000000 +0200 @@ -0,0 +1,61 @@ +require 'base64' + +module ActionMailer + # Implements a mailer preview interceptor that converts image tag src attributes + # that use inline cid: style urls to data: style urls so that they are visible + # when previewing a HTML email in a web browser. + # + # This interceptor is not enabled by default, to use it just register it like any + # other mailer preview interceptor: + # + # ActionMailer::Base.register_preview_interceptor(ActionMailer::InlinePreviewInterceptor) + # + class InlinePreviewInterceptor + PATTERN = /src=(?:"cid:[^"]+"|'cid:[^']+')/i + + include Base64 + + def self.previewing_email(message) #:nodoc: + new(message).transform! + end + + def initialize(message) #:nodoc: + @message = message + end + + def transform! #:nodoc: + return message if html_part.blank? + + html_source.gsub!(PATTERN) do |match| + if part = find_part(match[9..-2]) + %[src="#{data_url(part)}"] + else + match + end + end + + message + end + + private + def message + @message + end + + def html_part + @html_part ||= message.html_part + end + + def html_source + html_part.body.raw_source + end + + def data_url(part) + "data:#{part.mime_type};base64,#{strict_encode64(part.body.raw_source)}" + end + + def find_part(cid) + message.all_parts.find{ |p| p.attachment? && p.cid == cid } + end + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/action_mailer/test_helper.rb new/lib/action_mailer/test_helper.rb --- old/lib/action_mailer/test_helper.rb 2015-03-19 17:41:32.000000000 +0100 +++ new/lib/action_mailer/test_helper.rb 2015-06-25 23:30:01.000000000 +0200 @@ -30,7 +30,7 @@ original_count = ActionMailer::Base.deliveries.size yield new_count = ActionMailer::Base.deliveries.size - assert_equal original_count + number, new_count, "#{number} emails expected, but #{new_count - original_count} were sent" + assert_equal number, new_count - original_count, "#{number} emails expected, but #{new_count - original_count} were sent" else assert_equal number, ActionMailer::Base.deliveries.size end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/action_mailer.rb new/lib/action_mailer.rb --- old/lib/action_mailer.rb 2015-03-19 17:41:32.000000000 +0100 +++ new/lib/action_mailer.rb 2015-06-25 23:30:01.000000000 +0200 @@ -40,6 +40,7 @@ autoload :Base autoload :DeliveryMethods + autoload :InlinePreviewInterceptor autoload :MailHelper autoload :Preview autoload :Previews, 'action_mailer/preview' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-03-19 17:41:32.000000000 +0100 +++ new/metadata 2015-06-25 23:30:01.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: actionmailer version: !ruby/object:Gem::Version - version: 4.2.1 + version: 4.2.3 platform: ruby authors: - David Heinemeier Hansson autorequire: bindir: bin cert_chain: [] -date: 2015-03-19 00:00:00.000000000 Z +date: 2015-06-25 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: actionpack @@ -16,42 +16,42 @@ requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.1 + version: 4.2.3 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.1 + version: 4.2.3 - !ruby/object:Gem::Dependency name: actionview requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.1 + version: 4.2.3 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.1 + version: 4.2.3 - !ruby/object:Gem::Dependency name: activejob requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.1 + version: 4.2.3 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.1 + version: 4.2.3 - !ruby/object:Gem::Dependency name: mail requirement: !ruby/object:Gem::Requirement @@ -108,6 +108,7 @@ - lib/action_mailer/delivery_job.rb - lib/action_mailer/delivery_methods.rb - lib/action_mailer/gem_version.rb +- lib/action_mailer/inline_preview_interceptor.rb - lib/action_mailer/log_subscriber.rb - lib/action_mailer/mail_helper.rb - lib/action_mailer/message_delivery.rb