Hello community,

here is the log from the commit of package perl-Mojolicious-Plugin-AssetPack 
for openSUSE:Factory checked in at 2015-12-16 17:42:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
      2015-09-30 05:53:09.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-AssetPack.new/perl-Mojolicious-Plugin-AssetPack.changes
 2015-12-16 17:42:11.000000000 +0100
@@ -1,0 +2,10 @@
+Sat Dec  5 10:19:14 UTC 2015 - [email protected]
+
+- updated to 0.69
+   see /usr/share/doc/packages/perl-Mojolicious-Plugin-AssetPack/Changes
+
+  0.69 2015-12-02T16:37:36+0100
+   - Fix "uninitialized value" warning in Scss.pm line 203 #65
+   - Fix fetch() from $app
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ perl-Mojolicious-Plugin-AssetPack.spec ++++++
--- /var/tmp/diff_new_pack.qoekyH/_old  2015-12-16 17:42:12.000000000 +0100
+++ /var/tmp/diff_new_pack.qoekyH/_new  2015-12-16 17:42:12.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Mojolicious-Plugin-AssetPack
-Version:        0.68
+Version:        0.69
 Release:        0
 %define cpan_name Mojolicious-Plugin-AssetPack
 Summary:        Compress and convert css, less, sass, javascript and 
coffeescript files
@@ -44,13 +44,12 @@
 %{perl_requires}
 
 %description
-the Mojolicious::Plugin::AssetPack manpage is a the Mojolicious manpage
-plugin which can be used to cram multiple assets of the same type into one
-file. This means that if you have a lot of CSS files (.css, .less, .sass,
-...) as input, the AssetPack can make one big CSS file as output. This is
-good, since it will often speed up the rendering of your page. The output
-file can even be minified, meaning you can save bandwidth and browser
-parsing time.
+Mojolicious::Plugin::AssetPack is a Mojolicious plugin which can be used to
+cram multiple assets of the same type into one file. This means that if you
+have a lot of CSS files (.css, .less, .sass, ...) as input, the AssetPack
+can make one big CSS file as output. This is good, since it will often
+speed up the rendering of your page. The output file can even be minified,
+meaning you can save bandwidth and browser parsing time.
 
 The core preprocessors that are bundled with this module can handle CSS and
 JavaScript files, written in many languages.

++++++ Mojolicious-Plugin-AssetPack-0.68.tar.gz -> 
Mojolicious-Plugin-AssetPack-0.69.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-0.68/Changes 
new/Mojolicious-Plugin-AssetPack-0.69/Changes
--- old/Mojolicious-Plugin-AssetPack-0.68/Changes       2015-09-28 
08:28:29.000000000 +0200
+++ new/Mojolicious-Plugin-AssetPack-0.69/Changes       2015-12-02 
16:37:36.000000000 +0100
@@ -1,5 +1,9 @@
 Revision history for perl distribution Mojolicious-Plugin-AssetPack
 
+0.69 2015-12-02T16:37:36+0100
+ - Fix "uninitialized value" warning in Scss.pm line 203 #65
+ - Fix fetch() from $app
+
 0.68 2015-09-28T08:28:29+0200
  - Will skip tests unless possible to write to out_dir
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-0.68/MANIFEST 
new/Mojolicious-Plugin-AssetPack-0.69/MANIFEST
--- old/Mojolicious-Plugin-AssetPack-0.68/MANIFEST      2015-09-28 
08:28:30.000000000 +0200
+++ new/Mojolicious-Plugin-AssetPack-0.69/MANIFEST      2015-12-02 
16:37:37.000000000 +0100
@@ -45,6 +45,7 @@
 t/embedded-app.t
 t/example-expand-src-url.t
 t/example-fetch.t
+t/fetch.t
 t/fixed-mapping.t
 t/from-data-section.t
 t/get-wildcard.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-0.68/META.json 
new/Mojolicious-Plugin-AssetPack-0.69/META.json
--- old/Mojolicious-Plugin-AssetPack-0.68/META.json     2015-09-28 
08:28:30.000000000 +0200
+++ new/Mojolicious-Plugin-AssetPack-0.69/META.json     2015-12-02 
16:37:37.000000000 +0100
@@ -50,5 +50,5 @@
          "url" : 
"https://github.com/jhthorsen/mojolicious-plugin-assetpack.git";
       }
    },
-   "version" : "0.68"
+   "version" : "0.69"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-0.68/META.yml 
new/Mojolicious-Plugin-AssetPack-0.69/META.yml
--- old/Mojolicious-Plugin-AssetPack-0.68/META.yml      2015-09-28 
08:28:30.000000000 +0200
+++ new/Mojolicious-Plugin-AssetPack-0.69/META.yml      2015-12-02 
16:37:37.000000000 +0100
@@ -27,4 +27,4 @@
   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: '0.68'
+version: '0.69'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-0.68/README 
new/Mojolicious-Plugin-AssetPack-0.69/README
--- old/Mojolicious-Plugin-AssetPack-0.68/README        2015-09-28 
08:28:29.000000000 +0200
+++ new/Mojolicious-Plugin-AssetPack-0.69/README        2015-12-02 
16:37:36.000000000 +0100
@@ -3,7 +3,7 @@
     javascript and coffeescript files
 
 VERSION
-    0.68
+    0.69
 
 SYNOPSIS
   Application
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-AssetPack-0.68/lib/Mojolicious/Plugin/AssetPack/Handler/Sprites.pm
 
new/Mojolicious-Plugin-AssetPack-0.69/lib/Mojolicious/Plugin/AssetPack/Handler/Sprites.pm
--- 
old/Mojolicious-Plugin-AssetPack-0.68/lib/Mojolicious/Plugin/AssetPack/Handler/Sprites.pm
   2015-09-25 10:41:06.000000000 +0200
+++ 
new/Mojolicious-Plugin-AssetPack-0.69/lib/Mojolicious/Plugin/AssetPack/Handler/Sprites.pm
   2015-11-12 13:06:45.000000000 +0100
@@ -9,7 +9,7 @@
 L<Mojolicious::Plugin::AssetPack::Handler::Sprites> is a module that can
 generate sprites from image files in a directory.
 
-This module require L<Imager> and L<Imager::File::PNG> to work. Below you can
+This module requires L<Imager> and L<Imager::File::PNG> to work. Below you can
 see how to install it on Debian or Ubuntu:
 
   $ apt-get install libpng12-dev
@@ -65,7 +65,7 @@
     my ($w, $h) = ($tile->getwidth, $tile->getheight);
     $cn =~ s!\.\w+$!!;
     $cn =~ s!\W!-!g;
-    $css .= ".$name.$cn { background-position: 0px -$size[1]px; width: ${w}px; 
height: ${h}px; }\n";
+    $css .= ".$name.$cn { background-position: 0 -$size[1]px; width: ${w}px; 
height: ${h}px; }\n";
     warn "[AssetPack] Adding $directory/$file to sprite $name.png $w x $h\n" 
if DEBUG;
     $tiled->paste(src => $tile, left => 0, top => $size[1]) or die 
$tiled->errstr;
     $size[1] += $h;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-AssetPack-0.68/lib/Mojolicious/Plugin/AssetPack/Manual/CustomDomain.pod
 
new/Mojolicious-Plugin-AssetPack-0.69/lib/Mojolicious/Plugin/AssetPack/Manual/CustomDomain.pod
--- 
old/Mojolicious-Plugin-AssetPack-0.68/lib/Mojolicious/Plugin/AssetPack/Manual/CustomDomain.pod
      2015-07-28 13:15:27.000000000 +0200
+++ 
new/Mojolicious-Plugin-AssetPack-0.69/lib/Mojolicious/Plugin/AssetPack/Manual/CustomDomain.pod
      2015-10-05 09:12:52.000000000 +0200
@@ -34,11 +34,22 @@
 To use the feature, just set a custom L</base_url>:
 
   plugin "AssetPack" => {
-    base_url => "http://cdn.example.com/my-assets/";,
+    base_url => "http://cdn.example.com/my-assets/";
   };
 
 See also 
L<https://developers.google.com/speed/docs/best-practices/request#ServeFromCookielessDomain>.
 
+=head1 CAVEAT
+
+Many recent browsers blocks mixed content, meaning if your HTML is served
+over HTTPS, then you can't serve the assets over HTTP. One way to fix this
+is by using "//" instead of a scheme specific URL. Example:
+
+  base_url => "//cdn.example.com/my-assets/"
+
+This will tell the browser to use the same scheme for fetching assets, as
+it did fetching the web page.
+
 =head1 AUTHOR
 
 Jan Henning Thorsen - C<[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-AssetPack-0.68/lib/Mojolicious/Plugin/AssetPack/Manual/Modes.pod
 
new/Mojolicious-Plugin-AssetPack-0.69/lib/Mojolicious/Plugin/AssetPack/Manual/Modes.pod
--- 
old/Mojolicious-Plugin-AssetPack-0.68/lib/Mojolicious/Plugin/AssetPack/Manual/Modes.pod
     2015-09-01 12:56:17.000000000 +0200
+++ 
new/Mojolicious-Plugin-AssetPack-0.69/lib/Mojolicious/Plugin/AssetPack/Manual/Modes.pod
     2015-11-30 12:51:43.000000000 +0100
@@ -24,7 +24,8 @@
 
   <script src="/packed/app-ed6d968e39843a556dbe6dad8981e3e0.js">
 
-This is done using L</process>.
+This is done using C<process> method of the appropriate
+L<preprocessor|Mojolicious::Plugin::AssetPack::Preprocessors>.
 
 =head2 Development mode
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-AssetPack-0.68/lib/Mojolicious/Plugin/AssetPack/Preprocessor/Scss.pm
 
new/Mojolicious-Plugin-AssetPack-0.69/lib/Mojolicious/Plugin/AssetPack/Preprocessor/Scss.pm
--- 
old/Mojolicious-Plugin-AssetPack-0.68/lib/Mojolicious/Plugin/AssetPack/Preprocessor/Scss.pm
 2015-09-24 16:27:56.000000000 +0200
+++ 
new/Mojolicious-Plugin-AssetPack-0.69/lib/Mojolicious/Plugin/AssetPack/Preprocessor/Scss.pm
 2015-11-30 12:51:43.000000000 +0100
@@ -85,8 +85,6 @@
   ? $ENV{ENABLE_LIBSASS_BINDINGS}
   : eval 'require CSS::Sass;1';
 
-$ENV{SASS_PATH} ||= '';
-
 my $IMPORT_RE = qr{ \@import \s+ (["']) (.*?) \1 }x;
 
 =head1 ATTRIBUTES
@@ -200,7 +198,8 @@
 
 sub _include_paths {
   my ($self, $path) = @_;
-  return File::Basename::dirname($path), @{$self->include_paths}, split /:/, 
$ENV{SASS_PATH};
+  my $sass_path = $ENV{SASS_PATH} // '';
+  return File::Basename::dirname($path), @{$self->include_paths}, split /:/, 
$sass_path;
 }
 
 sub _url {'http://sass-lang.com/install'}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-AssetPack-0.68/lib/Mojolicious/Plugin/AssetPack.pm 
new/Mojolicious-Plugin-AssetPack-0.69/lib/Mojolicious/Plugin/AssetPack.pm
--- old/Mojolicious-Plugin-AssetPack-0.68/lib/Mojolicious/Plugin/AssetPack.pm   
2015-09-28 08:28:29.000000000 +0200
+++ new/Mojolicious-Plugin-AssetPack-0.69/lib/Mojolicious/Plugin/AssetPack.pm   
2015-12-02 16:37:36.000000000 +0100
@@ -13,7 +13,7 @@
 use constant DEBUG    => $ENV{MOJO_ASSETPACK_DEBUG}    || 0;
 use constant NO_CACHE => $ENV{MOJO_ASSETPACK_NO_CACHE} || 0;
 
-our $VERSION = '0.68';
+our $VERSION = '0.69';
 
 our $MINIFY = undef;    # internal use only!
 my $MONIKER_RE = qr{^(.+)\.(\w+)$};
@@ -39,7 +39,7 @@
 sub fetch {
   my $self  = shift;
   my $url   = Mojo::URL->new(shift);
-  my $asset = $self->_handler($url->scheme)->asset_for($url, $self);
+  my $asset = $self->_handler($url->scheme || 'https')->asset_for($url, $self);
   return $asset if @_;    # internal
   return $asset->path;    # documented api
 }
@@ -161,7 +161,7 @@
 
 sub _build_out_dir {
   my ($self, $app, $config) = @_;
-  my $out_dir;
+  my ($out_dir, $packed);
 
   if ($out_dir = $config->{out_dir}) {
     my $static_dir = Cwd::abs_path(catdir $out_dir, File::Spec->updir);
@@ -169,18 +169,13 @@
   }
   if (!$out_dir) {
     for my $path (@{$app->static->paths}) {
-      my $packed = catdir $path, 'packed';
+      $packed = catdir $path, 'packed';
       if (-w $path) { $out_dir = Cwd::abs_path($packed); last }
       if (-r $packed) { $out_dir ||= Cwd::abs_path($packed) }
     }
   }
-  if (!$out_dir) {
-    die "[AssetPack] Neither readable, nor writeable 'out_dir' directory "
-      . "could be found in static paths @{$app->static->paths}. "
-      . "Maybe you forgot to pre-pack the assets? "
-      . 
"https://metacpan.org/pod/Mojolicious::Plugin::AssetPack::Manual::Cookbook";;
-  }
 
+  $out_dir ||= $packed or die "[AssetPack] app->static->paths is not set";
   File::Path::make_path($out_dir) unless -d $out_dir;
   $self->{out_dir} = $out_dir;
 }
@@ -388,7 +383,7 @@
 
 =head1 VERSION
 
-0.68
+0.69
 
 =head1 SYNOPSIS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-0.68/t/fetch.t 
new/Mojolicious-Plugin-AssetPack-0.69/t/fetch.t
--- old/Mojolicious-Plugin-AssetPack-0.68/t/fetch.t     1970-01-01 
01:00:00.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-0.69/t/fetch.t     2015-12-02 
16:37:21.000000000 +0100
@@ -0,0 +1,12 @@
+use Mojo::Base -strict;
+use Test::Mojo;
+use Test::More;
+
+use Mojolicious::Lite;
+plugin 'AssetPack';
+get '/fetch-example.css' => { text => 'body{background:#fff}' };
+
+my $t = Test::Mojo->new;
+like $t->app->asset->fetch('/fetch-example.css'), 
qr{\b_fetch-example_css\.css$}, 'fetched from local app';
+
+done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-0.68/t/scss.t 
new/Mojolicious-Plugin-AssetPack-0.69/t/scss.t
--- old/Mojolicious-Plugin-AssetPack-0.68/t/scss.t      2015-09-25 
16:18:50.000000000 +0200
+++ new/Mojolicious-Plugin-AssetPack-0.69/t/scss.t      2015-12-01 
16:07:00.000000000 +0100
@@ -101,6 +101,14 @@
   modify($scss_file, sub {s!ddd!ccc!});
 }
 
+{
+  my @warn;
+  local $ENV{SASS_PATH} = undef;
+  local $SIG{__WARN__} = sub { push @warn, $_[0] };
+  
Mojolicious::Plugin::AssetPack::Preprocessor::Scss->new->_include_paths(Cwd::getcwd);
+  is "@warn", "", "No uninitialized value warning";
+}
+
 done_testing;
 
 sub modify {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-0.68/t/sprites.t 
new/Mojolicious-Plugin-AssetPack-0.69/t/sprites.t
--- old/Mojolicious-Plugin-AssetPack-0.68/t/sprites.t   2015-07-28 
13:15:27.000000000 +0200
+++ new/Mojolicious-Plugin-AssetPack-0.69/t/sprites.t   2015-11-12 
13:06:45.000000000 +0100
@@ -7,9 +7,9 @@
 $t->app->asset('my-sprites.css' => 'sprites:///images/xyz', '/test.css');
 
 $t->get_ok('/test1')
-  ->text_like('style', qr/\.xyz\.social-chrome \{ background-position: 0px 
-0px; width: 32px; height: 32px; \}/)
-  ->text_like('style', qr/\.xyz\.social-github \{ background-position: 0px 
-32px; width: 40px; height: 40px; \}/)
-  ->text_like('style', qr/\.xyz\.social-rss \{ background-position: 0px -72px; 
width: 34px; height: 30px; \}/)
+  ->text_like('style', qr/\.xyz\.social-chrome \{ background-position: 0 -0px; 
width: 32px; height: 32px; \}/)
+  ->text_like('style', qr/\.xyz\.social-github \{ background-position: 0 
-32px; width: 40px; height: 40px; \}/)
+  ->text_like('style', qr/\.xyz\.social-rss \{ background-position: 0 -72px; 
width: 34px; height: 30px; \}/)
   ->text_like('style', qr/\.xyz \{ background: url\(xyz-\w+\.png\) no-repeat; 
display: inline-block; \}/);
 
 done_testing;


Reply via email to