Hello community,
here is the log from the commit of package perl-Mojolicious-Plugin-AssetPack
for openSUSE:Factory checked in at 2016-11-18 22:03: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
2016-11-10 13:27:20.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-AssetPack.new/perl-Mojolicious-Plugin-AssetPack.changes
2016-11-18 22:03:10.000000000 +0100
@@ -1,0 +2,9 @@
+Mon Nov 14 06:48:16 UTC 2016 - [email protected]
+
+- updated to 1.26
+ see /usr/share/doc/packages/perl-Mojolicious-Plugin-AssetPack/Changes
+
+ 1.26 2016-11-13T17:50:42+0100
+ - Change Pipe::Fetch to avoid fetching URL that start with "#" #108
+
+-------------------------------------------------------------------
Old:
----
Mojolicious-Plugin-AssetPack-1.25.tar.gz
New:
----
Mojolicious-Plugin-AssetPack-1.26.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Mojolicious-Plugin-AssetPack.spec ++++++
--- /var/tmp/diff_new_pack.Uz7b4Z/_old 2016-11-18 22:03:11.000000000 +0100
+++ /var/tmp/diff_new_pack.Uz7b4Z/_new 2016-11-18 22:03:11.000000000 +0100
@@ -17,7 +17,7 @@
Name: perl-Mojolicious-Plugin-AssetPack
-Version: 1.25
+Version: 1.26
Release: 0
%define cpan_name Mojolicious-Plugin-AssetPack
Summary: Compress and convert css, less, sass, javascript and
coffeescript files
++++++ Mojolicious-Plugin-AssetPack-1.25.tar.gz ->
Mojolicious-Plugin-AssetPack-1.26.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-1.25/Changes
new/Mojolicious-Plugin-AssetPack-1.26/Changes
--- old/Mojolicious-Plugin-AssetPack-1.25/Changes 2016-10-30
21:24:48.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.26/Changes 2016-11-13
17:50:42.000000000 +0100
@@ -1,5 +1,8 @@
Revision history for perl distribution Mojolicious-Plugin-AssetPack
+1.26 2016-11-13T17:50:42+0100
+ - Change Pipe::Fetch to avoid fetching URL that start with "#" #108
+
1.25 2016-10-30T21:24:48+0100
- Add end_range(), start_range() and is_range() to Asset #104
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-1.25/MANIFEST
new/Mojolicious-Plugin-AssetPack-1.26/MANIFEST
--- old/Mojolicious-Plugin-AssetPack-1.25/MANIFEST 2016-10-30
21:24:51.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.26/MANIFEST 2016-11-13
17:50:44.000000000 +0100
@@ -33,8 +33,6 @@
MANIFEST This list of files
README
t/00-basic.t
-t/assets/cache/local/_dynamic.scss
-t/assets/cache/local/dynamic.scss
t/assets/css-0-one.css
t/assets/css-0-two.css
t/assets/css/c.css
@@ -65,6 +63,7 @@
t/css.t
t/favicon.t
t/fetch-all.t
+t/fetch-hash.t
t/font-awesome.t
t/google-font.t
t/Helper.pm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-1.25/META.json
new/Mojolicious-Plugin-AssetPack-1.26/META.json
--- old/Mojolicious-Plugin-AssetPack-1.25/META.json 2016-10-30
21:24:51.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.26/META.json 2016-11-13
17:50:44.000000000 +0100
@@ -48,6 +48,6 @@
"url" :
"https://github.com/jhthorsen/mojolicious-plugin-assetpack.git"
}
},
- "version" : "1.25",
+ "version" : "1.26",
"x_serialization_backend" : "JSON::PP version 2.27300"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-1.25/META.yml
new/Mojolicious-Plugin-AssetPack-1.26/META.yml
--- old/Mojolicious-Plugin-AssetPack-1.25/META.yml 2016-10-30
21:24:51.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.26/META.yml 2016-11-13
17:50:44.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.25'
+version: '1.26'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-1.25/README
new/Mojolicious-Plugin-AssetPack-1.26/README
--- old/Mojolicious-Plugin-AssetPack-1.25/README 2016-10-30
21:24:49.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.26/README 2016-11-13
17:50:42.000000000 +0100
@@ -3,7 +3,7 @@
javascript and coffeescript files
VERSION
- 1.25
+ 1.26
SYNOPSIS
Application
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Mojolicious-Plugin-AssetPack-1.25/lib/Mojolicious/Plugin/AssetPack/Guides/Cookbook.pod
new/Mojolicious-Plugin-AssetPack-1.26/lib/Mojolicious/Plugin/AssetPack/Guides/Cookbook.pod
---
old/Mojolicious-Plugin-AssetPack-1.25/lib/Mojolicious/Plugin/AssetPack/Guides/Cookbook.pod
2016-09-11 16:41:11.000000000 +0200
+++
new/Mojolicious-Plugin-AssetPack-1.26/lib/Mojolicious/Plugin/AssetPack/Guides/Cookbook.pod
2016-11-13 17:44:56.000000000 +0100
@@ -213,6 +213,26 @@
(Note that the rest of the example file above is truncated)
+=head1 BUILDING PRODUCTION ASSETS
+
+To be sure that production assets are alwasy built, you can add a unit test
+like the one below:
+
+ use Test::Mojo;
+ use Test::More;
+
+ $ENV{MOJO_MODE} = "production";
+ my $t = Test::Mojo->new("MyApp");
+
+ $t->get_ok("/")
+ ->element_exists(q(head link[href$="/app.css"]))
+ ->element_exists(q(body script[src$="/app.js"]));
+
+ done_testing;
+
+The C<element_exists()> tests should match the topics defined when defining the
+different assets.
+
=head1 SEE ALSO
L<Mojolicious::Plugin::AssetPack> and
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Mojolicious-Plugin-AssetPack-1.25/lib/Mojolicious/Plugin/AssetPack/Pipe/Fetch.pm
new/Mojolicious-Plugin-AssetPack-1.26/lib/Mojolicious/Plugin/AssetPack/Pipe/Fetch.pm
---
old/Mojolicious-Plugin-AssetPack-1.25/lib/Mojolicious/Plugin/AssetPack/Pipe/Fetch.pm
2016-06-23 10:46:04.000000000 +0200
+++
new/Mojolicious-Plugin-AssetPack-1.26/lib/Mojolicious/Plugin/AssetPack/Pipe/Fetch.pm
2016-11-13 17:49:48.000000000 +0100
@@ -10,6 +10,7 @@
my ($self, $assets) = @_;
my $store = $self->assetpack->store;
my $route = $self->assetpack->route;
+ my %related;
return $assets->each(
sub {
@@ -19,17 +20,16 @@
my $base = Mojo::URL->new($asset->url);
my $content = $asset->content;
- my %related;
while ($content =~ /$URL_RE/g) {
my ($pre, $url) = ($1, $2);
my $len = length $url;
my $start = pos($content) - length($pre) - $len - 1;
- next if $url =~ /^data:/; # Avoid "data:image/svg+xml..."
+ next if $url =~ /^(?:\#|data:)/; # Avoid "data:image/svg+xml..."
and "#foo"
$url = Mojo::URL->new($url);
- $url = $url->base($base)->to_abs unless $url->is_abs;
+ $url = $url->base($base)->to_abs->fragment(undef) unless $url->is_abs;
unless ($related{$url}) {
diag "Fetch resource $url" if DEBUG;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Mojolicious-Plugin-AssetPack-1.25/lib/Mojolicious/Plugin/AssetPack.pm
new/Mojolicious-Plugin-AssetPack-1.26/lib/Mojolicious/Plugin/AssetPack.pm
--- old/Mojolicious-Plugin-AssetPack-1.25/lib/Mojolicious/Plugin/AssetPack.pm
2016-10-30 21:24:48.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.26/lib/Mojolicious/Plugin/AssetPack.pm
2016-11-13 17:50:42.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.25';
+our $VERSION = '1.26';
my %TAG_TEMPLATE;
$TAG_TEMPLATE{css} = [qw(link rel stylesheet href)];
@@ -248,7 +248,7 @@
=head1 VERSION
-1.25
+1.26
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Mojolicious-Plugin-AssetPack-1.25/t/assets/cache/local/_dynamic.scss
new/Mojolicious-Plugin-AssetPack-1.26/t/assets/cache/local/_dynamic.scss
--- old/Mojolicious-Plugin-AssetPack-1.25/t/assets/cache/local/_dynamic.scss
2016-09-11 16:41:32.000000000 +0200
+++ new/Mojolicious-Plugin-AssetPack-1.26/t/assets/cache/local/_dynamic.scss
1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-$color: black;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Mojolicious-Plugin-AssetPack-1.25/t/assets/cache/local/dynamic.scss
new/Mojolicious-Plugin-AssetPack-1.26/t/assets/cache/local/dynamic.scss
--- old/Mojolicious-Plugin-AssetPack-1.25/t/assets/cache/local/dynamic.scss
2016-09-11 16:33:40.000000000 +0200
+++ new/Mojolicious-Plugin-AssetPack-1.26/t/assets/cache/local/dynamic.scss
1970-01-01 01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-@import "http://local/dynamic";
-$color: red !default;
-body { color: $color; }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mojolicious-Plugin-AssetPack-1.25/t/fetch-hash.t
new/Mojolicious-Plugin-AssetPack-1.26/t/fetch-hash.t
--- old/Mojolicious-Plugin-AssetPack-1.25/t/fetch-hash.t 1970-01-01
01:00:00.000000000 +0100
+++ new/Mojolicious-Plugin-AssetPack-1.26/t/fetch-hash.t 2016-11-13
16:59:41.000000000 +0100
@@ -0,0 +1,18 @@
+use t::Helper;
+
+plan skip_all => 'TEST_ONLINE=1' unless $ENV{TEST_ONLINE} or -e
'.test-everything';
+
+my $t = t::Helper->t(pipes => [qw(Css Fetch)]);
+$t->app->asset->process(
+ 'app.css' =>
'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.1/leaflet.css');
+
+$t->get_ok('/')->status_is(200);
+$t->get_ok($t->tx->res->dom->at('link')->{href})->status_is(200)
+ ->content_like(qr{url\(\#default\#VML\)});
+
+done_testing;
+
+__DATA__
+@@ index.html.ep
+%= asset 'app.css'
+Hello world