Hello community,

here is the log from the commit of package perl-Mojolicious-Plugin-AssetPack 
for openSUSE:Factory checked in at 2016-11-28 15:07:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-AssetPack (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-AssetPack.new 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Mojolicious-Plugin-AssetPack"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-AssetPack/perl-Mojolicious-Plugin-AssetPack.changes
      2016-11-20 18:19:33.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-AssetPack.new/perl-Mojolicious-Plugin-AssetPack.changes
 2016-11-28 15:07:41.000000000 +0100
@@ -1,0 +2,9 @@
+Fri Nov 25 06:49:45 UTC 2016 - [email protected]
+
+- updated to 1.28
+   see /usr/share/doc/packages/perl-Mojolicious-Plugin-AssetPack/Changes
+
+  1.28 2016-11-24T10:51:55+0100
+   - Fix resetting end_range and start_range after a "Range: bytes=..." 
request #109
+
+-------------------------------------------------------------------

Old:
----
  Mojolicious-Plugin-AssetPack-1.27.tar.gz

New:
----
  Mojolicious-Plugin-AssetPack-1.28.tar.gz

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

Other differences:
------------------
++++++ perl-Mojolicious-Plugin-AssetPack.spec ++++++
--- /var/tmp/diff_new_pack.bPxpvG/_old  2016-11-28 15:07:42.000000000 +0100
+++ /var/tmp/diff_new_pack.bPxpvG/_new  2016-11-28 15:07:42.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Mojolicious-Plugin-AssetPack
-Version:        1.27
+Version:        1.28
 Release:        0
 %define cpan_name Mojolicious-Plugin-AssetPack
 Summary:        Compress and convert css, less, sass, javascript and 
coffeescript files

++++++ Mojolicious-Plugin-AssetPack-1.27.tar.gz -> 
Mojolicious-Plugin-AssetPack-1.28.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-1.27/Changes 
new/Mojolicious-Plugin-AssetPack-1.28/Changes
--- old/Mojolicious-Plugin-AssetPack-1.27/Changes       2016-11-18 
15:13:55.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.28/Changes       2016-11-24 
10:51:55.000000000 +0100
@@ -1,5 +1,8 @@
 Revision history for perl distribution Mojolicious-Plugin-AssetPack
 
+1.28 2016-11-24T10:51:55+0100
+ - Fix resetting end_range and start_range after a "Range: bytes=..." request 
#109
+
 1.27 2016-11-18T15:13:55+0100
  - Add custom 404 page when an asset could not be found
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-1.27/META.json 
new/Mojolicious-Plugin-AssetPack-1.28/META.json
--- old/Mojolicious-Plugin-AssetPack-1.27/META.json     2016-11-18 
15:13:57.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.28/META.json     2016-11-24 
10:51:59.000000000 +0100
@@ -48,6 +48,6 @@
          "url" : 
"https://github.com/jhthorsen/mojolicious-plugin-assetpack.git";
       }
    },
-   "version" : "1.27",
+   "version" : "1.28",
    "x_serialization_backend" : "JSON::PP version 2.27300"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-1.27/META.yml 
new/Mojolicious-Plugin-AssetPack-1.28/META.yml
--- old/Mojolicious-Plugin-AssetPack-1.27/META.yml      2016-11-18 
15:13:57.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.28/META.yml      2016-11-24 
10:51:59.000000000 +0100
@@ -25,5 +25,5 @@
   bugtracker: https://github.com/jhthorsen/mojolicious-plugin-assetpack/issues
   homepage: https://github.com/jhthorsen/mojolicious-plugin-assetpack
   repository: https://github.com/jhthorsen/mojolicious-plugin-assetpack.git
-version: '1.27'
+version: '1.28'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-1.27/README 
new/Mojolicious-Plugin-AssetPack-1.28/README
--- old/Mojolicious-Plugin-AssetPack-1.27/README        2016-11-18 
15:13:55.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.28/README        2016-11-24 
10:51:55.000000000 +0100
@@ -3,7 +3,7 @@
     javascript and coffeescript files
 
 VERSION
-    1.27
+    1.28
 
 SYNOPSIS
   Application
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-AssetPack-1.27/lib/Mojolicious/Plugin/AssetPack/Asset.pm 
new/Mojolicious-Plugin-AssetPack-1.28/lib/Mojolicious/Plugin/AssetPack/Asset.pm
--- 
old/Mojolicious-Plugin-AssetPack-1.27/lib/Mojolicious/Plugin/AssetPack/Asset.pm 
    2016-10-30 21:23:10.000000000 +0100
+++ 
new/Mojolicious-Plugin-AssetPack-1.28/lib/Mojolicious/Plugin/AssetPack/Asset.pm 
    2016-11-24 10:51:02.000000000 +0100
@@ -1,7 +1,9 @@
 package Mojolicious::Plugin::AssetPack::Asset;
 use Mojo::Base -base;
+
 use Mojo::Asset::Memory;
 use Mojo::URL;
+use Mojo::Util 'deprecated';
 use Mojolicious::Plugin::AssetPack::Util qw(diag has_ro DEBUG);
 
 has checksum => sub { 
Mojolicious::Plugin::AssetPack::Util::checksum(shift->content) };
@@ -49,6 +51,21 @@
 
 has_ro 'url';
 
+sub asset {
+  my $self  = shift;
+  my $orig  = $self->_asset;
+  my $clone = $orig->new;
+
+  if ($orig->can('path')) {
+    $clone->cleanup(0)->path($orig->path);
+  }
+  else {
+    $clone->auto_upgrade(0)->mtime($orig->mtime)->add_chunk($orig->slurp);
+  }
+
+  return $clone;
+}
+
 sub clone {
   my $self  = shift;
   my $clone = (ref $self)->new(%{$self});
@@ -64,12 +81,16 @@
   return $self->_asset(Mojo::Asset::Memory->new->add_chunk($_[0]));
 }
 
-sub end_range   { shift->_asset->end_range(@_) }
-sub get_chunk   { shift->_asset->get_chunk(@_) }
-sub is_range    { shift->_asset->is_range }
-sub path        { $_[0]->_asset->isa('Mojo::Asset::File') ? 
$_[0]->_asset->path : '' }
-sub size        { $_[0]->_asset->size }
-sub start_range { shift->_asset->start_range(@_) }
+sub end_range { deprecated 'end_range() is deprecated'; 
shift->_asset->end_range(@_) }
+sub get_chunk { deprecated 'get_chunk() is deprecated'; 
shift->_asset->get_chunk(@_) }
+sub is_range  { deprecated 'is_range() is deprecated';  
shift->_asset->is_range }
+sub path { $_[0]->_asset->isa('Mojo::Asset::File') ? $_[0]->_asset->path : '' }
+sub size { $_[0]->_asset->size }
+
+sub start_range {
+  deprecated 'start_range() is deprecated';
+  shift->_asset->start_range(@_);
+}
 sub url_for { $_[1]->url_for(assetpack => $_[0]->TO_JSON); }
 
 sub _reset {
@@ -155,6 +176,15 @@
 
 =head1 METHODS
 
+=head2 asset
+
+  $asset = $self->asset;
+
+Returns a new L<Mojo::Asset::File> or L<Mojo::Asset::Memory> object, with the
+content or path from this object.
+
+This method is EXPERIMENTAL.
+
 =head2 clone
 
   $clone = $self->clone;
@@ -174,15 +204,15 @@
 
 =head2 end_range
 
-See L<Mojo::Asset/end_range>.
+DEPRECATED.
 
 =head2 get_chunk
 
-See L<Mojo::Asset/get_chunk>.
+DEPRECATED.
 
 =head2 is_range
 
-See L<Mojo::Asset/is_range>.
+DEPRECATED.
 
 =head2 path
 
@@ -192,11 +222,13 @@
 
 =head2 size
 
-See L<Mojo::Asset/size>.
+  $int = $self->size;
+
+Returns the size of the asset in bytes.
 
 =head2 start_range
 
-See L<Mojo::Asset/start_range>.
+DEPRECATED.
 
 =head2 url_for
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-AssetPack-1.27/lib/Mojolicious/Plugin/AssetPack/Store.pm 
new/Mojolicious-Plugin-AssetPack-1.28/lib/Mojolicious/Plugin/AssetPack/Store.pm
--- 
old/Mojolicious-Plugin-AssetPack-1.27/lib/Mojolicious/Plugin/AssetPack/Store.pm 
    2016-11-13 17:08:46.000000000 +0100
+++ 
new/Mojolicious-Plugin-AssetPack-1.28/lib/Mojolicious/Plugin/AssetPack/Store.pm 
    2016-11-24 10:49:52.000000000 +0100
@@ -95,17 +95,19 @@
   my $h  = $c->res->headers;
   my $ct = $self->_types->type($asset->format);
 
-  unless ($ct) {
+  if ($ct) {
+    $h->header($_ => $d->{$_}) for keys %$d;
+    $h->content_type($ct);
+    $self->SUPER::serve_asset($c, $asset->can('asset') ? $asset->asset : 
$asset);
+  }
+  else {
     $h->content_type('text/css');
     $c->render(text =>
         qq(body:before{content:'"@{[$asset->url]}" is not 
processed.';font-size:32px;position:absolute;top:0;left:0;background:red;color:white;}\n)
     );
-    return $self;
   }
 
-  $h->header($_ => $d->{$_}) for keys %$d;
-  $h->content_type($ct);
-  $self->SUPER::serve_asset($c, $asset);
+  return $self;
 }
 
 sub _cache_path {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-AssetPack-1.27/lib/Mojolicious/Plugin/AssetPack.pm 
new/Mojolicious-Plugin-AssetPack-1.28/lib/Mojolicious/Plugin/AssetPack.pm
--- old/Mojolicious-Plugin-AssetPack-1.27/lib/Mojolicious/Plugin/AssetPack.pm   
2016-11-18 15:13:55.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.28/lib/Mojolicious/Plugin/AssetPack.pm   
2016-11-24 10:51:55.000000000 +0100
@@ -6,7 +6,7 @@
 use Mojolicious::Plugin::AssetPack::Store;
 use Mojolicious::Plugin::AssetPack::Util qw(diag has_ro load_module DEBUG);
 
-our $VERSION = '1.27';
+our $VERSION = '1.28';
 
 my %TAG_TEMPLATE;
 $TAG_TEMPLATE{css} = [qw(link rel stylesheet href)];
@@ -259,7 +259,7 @@
 
 =head1 VERSION
 
-1.27
+1.28
 
 =head1 SYNOPSIS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-1.27/t/range.t 
new/Mojolicious-Plugin-AssetPack-1.28/t/range.t
--- old/Mojolicious-Plugin-AssetPack-1.27/t/range.t     2016-11-14 
19:55:18.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.28/t/range.t     2016-11-24 
10:49:53.000000000 +0100
@@ -11,6 +11,9 @@
 $t->get_ok($href => {Range => 'bytes=0-2'})->status_is(206)
   ->header_is('Accept-Ranges' => 'bytes')->content_is('.on');
 
+$t->get_ok($href)->status_is(200)->header_is('Accept-Ranges' => 'bytes')
+  ->content_like(qr{color:});
+
 done_testing;
 
 __DATA__


Reply via email to