blib/lib/Web/Library/BackboneJS.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
latest_version
2.0
version_map
2.0
BEGIN
2.0
CRAP 2.0
1 package Web::Library::BackboneJS;
2 use Moose;
3 with qw(Web::Library::Provider Web::Library::SimpleAssets);
4 our $VERSION = '0.01';
5 sub latest_version { '1.1.0' }
6  
7 sub version_map {
8  
9 # all versions contain the same CSS and JS files
10 +{ default => {
11 css => [],
12 javascript => ['/js/backbone-min.js']
13 }
14 };
15 }
16 1;
17  
18 =pod
19  
20 =head1 NAME
21  
22 Web::Library::BackboneJS - Distribution wrapper around Backbone.js
23  
24 =head1 SYNOPSIS
25  
26 my $library_manager = Web::Library->instance;
27 $library_manager->mount_library({ name => 'BackboneJS' });
28  
29 =head1 DESCRIPTION
30  
31 This is a distribution wrapper around Backbone.js. It enables you to include
32 the client-side library in multiple Web application projects with very little
33 effort. See L<Web::Library> for the general concept and how to use it with
34 L<Catalyst>.
35  
36 Backbone needs Underscore.js, so L<Web::Library::UnderscoreJS> is listed as a
37 dependency.
38  
39 =head1 LIBRARY VERSIONS
40  
41 The following versions are available. For each version all included files are
42 listed. Files marked with an asterisk are included in that versions' asset
43 list - see L<Web::Library>'s C<css_link_tags_for()> and C<script_tags_for()>
44 methods for an explanation of the concept.
45  
46 =over 4
47  
48 =item Version 1.0.0
49 =item Version 1.1.0 (the default)
50  
51 * js/backbone-min.js
52  
53 =back
54  
55 =head1 LIBRARY WEBSITE
56  
57 Backbone.js can be found at L<http://backbonejs.com/>.
58  
59 =head1 AUTHORS
60  
61 The following person is the author of all the files provided in
62 this distribution EXCEPT Backbone.js files found in C<share/>.
63  
64 Marcel Gruenauer C<< <marcel@cpan.org> >>, L<http://marcelgruenauer.com>
65  
66 =head1 COPYRIGHT AND LICENSE
67  
68 Backbone.js is licensed under the L<MIT license|https://github.com/jashkenas/backbone/blob/master/LICENSE>.
69  
70 The following copyright notice applies to all files provided in this
71 distribution EXCEPT Backbone.js files found in C<share/>.
72  
73 This software is copyright (c) 2013 by Marcel Gruenauer.
74  
75 This is free software; you can redistribute it and/or modify it under
76 the same terms as the Perl 5 programming language system itself.