Hello community,

here is the log from the commit of package perl-Mojolicious-Plugin-RenderFile 
for openSUSE:Factory checked in at 2015-03-01 14:47:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-RenderFile (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-RenderFile.new 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Mojolicious-Plugin-RenderFile"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-RenderFile/perl-Mojolicious-Plugin-RenderFile.changes
    2014-03-21 13:34:07.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-RenderFile.new/perl-Mojolicious-Plugin-RenderFile.changes
       2015-03-01 14:47:14.000000000 +0100
@@ -1,0 +2,10 @@
+Tue Feb 24 09:11:44 UTC 2015 - [email protected]
+
+- updated to 0.08
+     File cleanup support
+- re-generated spec file
+- re-checked license
+- Add wide-character-in-print.patch: to address "Wide character in
+  print" error in t/multibyte_filename.t.
+
+-------------------------------------------------------------------

Old:
----
  Mojolicious-Plugin-RenderFile-0.07.tar.gz

New:
----
  Mojolicious-Plugin-RenderFile-0.08.tar.gz
  wide-character-in-print.patch

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

Other differences:
------------------
++++++ perl-Mojolicious-Plugin-RenderFile.spec ++++++
--- /var/tmp/diff_new_pack.DoUhAP/_old  2015-03-01 14:47:15.000000000 +0100
+++ /var/tmp/diff_new_pack.DoUhAP/_new  2015-03-01 14:47:15.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Mojolicious-Plugin-RenderFile
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -17,14 +17,15 @@
 
 
 Name:           perl-Mojolicious-Plugin-RenderFile
-Version:        0.07
+Version:        0.08
 Release:        0
 %define cpan_name Mojolicious-Plugin-RenderFile
 Summary:        "render_file" helper for Mojolicious
 License:        GPL-1.0+ or Artistic-1.0
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Mojolicious-Plugin-RenderFile/
-Source:         
http://www.cpan.org/authors/id/K/KO/KOORCHIK/%{cpan_name}-%{version}.tar.gz
+Source:         Mojolicious-Plugin-RenderFile-0.08.tar.gz
+Patch0:         wide-character-in-print.patch
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
@@ -40,6 +41,8 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
+# MANUAL
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor

++++++ Mojolicious-Plugin-RenderFile-0.07.tar.gz -> 
Mojolicious-Plugin-RenderFile-0.08.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-RenderFile-0.07/Changes 
new/Mojolicious-Plugin-RenderFile-0.08/Changes
--- old/Mojolicious-Plugin-RenderFile-0.07/Changes      2014-03-18 
22:19:19.000000000 +0100
+++ new/Mojolicious-Plugin-RenderFile-0.08/Changes      2014-05-16 
15:41:22.000000000 +0200
@@ -20,6 +20,8 @@
         Updated Mojolicious version dependency to 3.90
 
 0.07
-
         Added license
-        Fixed utf8 filename issue
\ No newline at end of file
+        Fixed utf8 filename issue
+
+0.08
+        File cleanup support
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-RenderFile-0.07/META.json 
new/Mojolicious-Plugin-RenderFile-0.08/META.json
--- old/Mojolicious-Plugin-RenderFile-0.07/META.json    2014-03-18 
22:22:19.000000000 +0100
+++ new/Mojolicious-Plugin-RenderFile-0.08/META.json    2014-05-16 
15:42:55.000000000 +0200
@@ -4,7 +4,7 @@
       "Viktor Turskyi <[email protected]>"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter 
version 2.131560",
+   "generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter 
version 2.120921",
    "license" : [
       "unknown"
    ],
@@ -43,5 +43,5 @@
          "url" : "https://github.com/koorchik/Mojolicious-Plugin-RenderFile";
       }
    },
-   "version" : "0.07"
+   "version" : "0.08"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-RenderFile-0.07/META.yml 
new/Mojolicious-Plugin-RenderFile-0.08/META.yml
--- old/Mojolicious-Plugin-RenderFile-0.07/META.yml     2014-03-18 
22:22:19.000000000 +0100
+++ new/Mojolicious-Plugin-RenderFile-0.08/META.yml     2014-05-16 
15:42:55.000000000 +0200
@@ -7,7 +7,7 @@
 configure_requires:
   ExtUtils::MakeMaker: 0
 dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 
2.131560'
+generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 
2.120921'
 license: unknown
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -22,4 +22,4 @@
   perl: 5.01
 resources:
   repository: https://github.com/koorchik/Mojolicious-Plugin-RenderFile
-version: 0.07
+version: 0.08
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-RenderFile-0.07/README.pod 
new/Mojolicious-Plugin-RenderFile-0.08/README.pod
--- old/Mojolicious-Plugin-RenderFile-0.07/README.pod   2014-03-18 
22:13:10.000000000 +0100
+++ new/Mojolicious-Plugin-RenderFile-0.08/README.pod   2014-05-16 
15:40:54.000000000 +0200
@@ -24,6 +24,7 @@
         'filepath' => '/tmp/files/file.pdf',
         'format'   => 'pdf',                 # will change Content-Type 
"application/x-download" to "application/pdf"
         'content_disposition' => 'inline',   # will change Content-Disposition 
from "attachment" to "inline"
+        'cleanup'  => 1,                     # delete file after completed
     );
 
 =head1 DESCRIPTION
@@ -70,6 +71,10 @@
 
 "inline" - is for showing file inline
 
+=item C<cleanup> (optional)
+
+Indicates if the file should be deleted when rendering is complete
+
 =back
 
 This plugin respects HTTP Range headers.
@@ -90,8 +95,6 @@
 
 L<Mojolicious>, L<Mojolicious::Guides>, L<http://mojolicio.us>.
 
-=head1 LICENSE AND COPYRIGHT
-
 Copyright 2011 Viktor Turskyi
 
 This program is free software; you can redistribute it and/or modify it
@@ -100,4 +103,4 @@
 
 See http://dev.perl.org/licenses/ for more information.
 
-=cut
+=cut
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-RenderFile-0.07/lib/Mojolicious/Plugin/RenderFile.pm 
new/Mojolicious-Plugin-RenderFile-0.08/lib/Mojolicious/Plugin/RenderFile.pm
--- old/Mojolicious-Plugin-RenderFile-0.07/lib/Mojolicious/Plugin/RenderFile.pm 
2014-03-18 22:18:49.000000000 +0100
+++ new/Mojolicious-Plugin-RenderFile-0.08/lib/Mojolicious/Plugin/RenderFile.pm 
2014-05-16 15:40:58.000000000 +0200
@@ -7,7 +7,7 @@
 use Encode qw( encode decode_utf8 );
 use Mojo::Util 'quote';
 
-our $VERSION = '0.07';
+our $VERSION = '0.08';
 
 sub register {
     my ( $self, $app ) = @_;
@@ -22,6 +22,7 @@
         my $filename            = $args{filename};
         my $status              = $args{status}               || 200;
         my $content_disposition = $args{content_disposition}  || 'attachment';
+        my $cleanup             = $args{cleanup} // 0;
 
         # Content type based on format
         my $content_type;
@@ -38,6 +39,7 @@
 
             $filename ||= fileparse($filepath);
             $asset = Mojo::Asset::File->new( path => $filepath );
+            $asset->cleanup($cleanup);
         } elsif ( $args{data} ) {
             $filename ||= $c->req->url->path->parts->[-1] || 'download';
             $asset = Mojo::Asset::Memory->new();
@@ -118,6 +120,7 @@
         'filepath' => '/tmp/files/file.pdf',
         'format'   => 'pdf',                 # will change Content-Type 
"application/x-download" to "application/pdf"
         'content_disposition' => 'inline',   # will change Content-Disposition 
from "attachment" to "inline"
+        'cleanup'  => 1,                     # delete file after completed
     );
 
 =head1 DESCRIPTION
@@ -164,6 +167,10 @@
 
 "inline" - is for showing file inline
 
+=item C<cleanup> (optional)
+
+Indicates if the file should be deleted when rendering is complete
+
 =back
 
 This plugin respects HTTP Range headers.

++++++ wide-character-in-print.patch ++++++
Index: Mojolicious-Plugin-RenderFile-0.08/t/multibyte_filename.t
===================================================================
--- Mojolicious-Plugin-RenderFile-0.08.orig/t/multibyte_filename.t
+++ Mojolicious-Plugin-RenderFile-0.08/t/multibyte_filename.t
@@ -51,7 +51,7 @@ my $t = Test::Mojo->new;
 
 $t->get_ok("/default")
     ->status_is(200)
-    ->content_is( encode_utf8 '漢字(かんじ)は、古代中国に発祥を持つ文字。' )
+    ->content_is( '漢字(かんじ)は、古代中国に発祥を持つ文字。' )
     ->header_is( 'Content-Disposition' => encode_utf8 
'attachment;filename="漢字.txt"' );
 
 $t->get_ok("/filename")
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to