[Bps-public-commit] dist-zilla-mintingprofile-rtx branch, master, updated. 0.04-6-g6727c5f
Kevin Falcone
falcone at bestpractical.com
Sun Oct 30 23:49:13 EDT 2011
The branch, master has been updated
via 6727c5fd21f54fc00e5df8de26ceffb3f6d90624 (commit)
via 0236383e8fbe3faac75997d53be7113c51308bb5 (commit)
via 4377f960c47ddded10af831f239e7f51af3c9af1 (commit)
via 7f54b78e991ee3fb022a182b59094946d82cd1f2 (commit)
from 3946733763dc1f89f2c938ee8bc44f415b3063ea (commit)
Summary of changes:
.gitignore | 1 -
Changes | 4 ++
MANIFEST | 4 ++
META.yml | 2 +-
README | 49 +++++++++++++++++++++++++++++
lib/Dist/Zilla/MintingProfile/RTx.pm | 7 +++-
profiles/{default => db}/Module.pm | 18 +++++++++-
profiles/{default => db}/profile.ini | 0
profiles/{default => db}/skel/Makefile.PL | 0
profiles/{default => db}/skel/gitignore | 0
profiles/default/Module.pm | 6 +++-
11 files changed, 85 insertions(+), 6 deletions(-)
create mode 100644 README
copy profiles/{default => db}/Module.pm (61%)
copy profiles/{default => db}/profile.ini (100%)
copy profiles/{default => db}/skel/Makefile.PL (100%)
copy profiles/{default => db}/skel/gitignore (100%)
- Log -----------------------------------------------------------------
commit 7f54b78e991ee3fb022a182b59094946d82cd1f2
Author: Kevin Falcone <kevin at jibsheet.com>
Date: Sun Oct 30 20:10:47 2011 -0400
Switch to hardcoding the GPLv2
We want to have plugins/extensions match RT's GPLv2 license
diff --git a/profiles/default/Module.pm b/profiles/default/Module.pm
index be3ee01..56f3c7f 100644
--- a/profiles/default/Module.pm
+++ b/profiles/default/Module.pm
@@ -49,7 +49,11 @@ or L<bug-{{$dist->name}}@rt.cpan.org>.
=head1 LICENSE AND COPYRIGHT
-{{ $dist->license->notice }}
+This software is Copyright (c) {{ $dist->license->year }} by {{ $dist->license->holder }}
+
+This is free software, licensed under:
+
+ The GNU General Public License, Version 2, June 1991
=cut
commit 4377f960c47ddded10af831f239e7f51af3c9af1
Author: Kevin Falcone <kevin at jibsheet.com>
Date: Sun Oct 30 20:14:38 2011 -0400
Ship a copy of the default profile with different docs
We can probably unify this with some dzil-fu, but not tonight.
diff --git a/MANIFEST b/MANIFEST
index 2079ed8..24b5174 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -13,6 +13,10 @@ lib/Dist/Zilla/MintingProfile/RTx.pm
Makefile.PL
MANIFEST This list of files
META.yml
+profiles/db/Module.pm
+profiles/db/profile.ini
+profiles/db/skel/gitignore
+profiles/db/skel/Makefile.PL
profiles/default/Module.pm
profiles/default/profile.ini
profiles/default/skel/gitignore
diff --git a/lib/Dist/Zilla/MintingProfile/RTx.pm b/lib/Dist/Zilla/MintingProfile/RTx.pm
index 0ff355e..7fcf8fb 100644
--- a/lib/Dist/Zilla/MintingProfile/RTx.pm
+++ b/lib/Dist/Zilla/MintingProfile/RTx.pm
@@ -15,8 +15,13 @@ Dist-Zilla-MintingProfile-RTx - Basic Minting Profile for RTx modules
=head1 USAGE
dzil setup # it'll use your author and license info
+
dzil new -P RTx RT-Extension-DoesMagicStuff
+ # will include a make initdb step in your README
+ # you still need to provide a etc/initialdata file
+ dzil new -P RTx -p db RT-Extension-MagicAndDB
+
Stubs in a proper Makefile.PL and README
Your RT extension will still be managed by Module::Install using
diff --git a/profiles/db/Module.pm b/profiles/db/Module.pm
new file mode 100644
index 0000000..6ec5acb
--- /dev/null
+++ b/profiles/db/Module.pm
@@ -0,0 +1,70 @@
+use strict;
+use warnings;
+package {{$name}};
+
+our $VERSION = '0.01';
+
+=head1 NAME
+
+{{$dist->name}} - [One line description of module's purpose here]
+
+=head1 INSTALLATION
+
+=over
+
+=item perl Makefile.PL
+
+=item make
+
+=item make install
+
+May need root permissions
+
+=item make initdb
+
+Only run this the first time you install this module.
+
+If you run this twice, you may end up with duplicate data
+in your database.
+
+If you are upgrading this module, check for upgrading instructions
+in case changes need to be made to your database.
+
+=item Edit your /opt/rt4/etc/RT_SiteConfig.pm
+
+Add this line:
+
+ Set(@Plugins, qw({{$name}}));
+
+or add C<{{$name}}> to your existing C<@Plugins> line.
+
+=item Clear your mason cache
+
+ rm -rf /opt/rt4/var/mason_data/obj
+
+=item Restart your webserver
+
+=back
+
+=head1 AUTHOR
+
+{{ join '', @{ $dist->authors } }}
+
+=head1 BUGS
+
+All bugs should be reported via
+L<http://rt.cpan.org/Public/Dist/Display.html?Name={{$dist->name}}>
+or L<bug-{{$dist->name}}@rt.cpan.org>.
+
+
+=head1 LICENSE AND COPYRIGHT
+
+This software is Copyright (c) {{ $dist->license->year }} by {{ $dist->license->holder }}
+
+This is free software, licensed under:
+
+ The GNU General Public License, Version 2, June 1991
+
+=cut
+
+1;
diff --git a/profiles/db/profile.ini b/profiles/db/profile.ini
new file mode 100644
index 0000000..97c43ab
--- /dev/null
+++ b/profiles/db/profile.ini
@@ -0,0 +1,5 @@
+[TemplateModule/:DefaultModuleMaker]
+template = Module.pm
+
+[GatherDir::Template]
+root = skel
diff --git a/profiles/db/skel/Makefile.PL b/profiles/db/skel/Makefile.PL
new file mode 100644
index 0000000..03db0ad
--- /dev/null
+++ b/profiles/db/skel/Makefile.PL
@@ -0,0 +1,10 @@
+use inc::Module::Install;
+{{ ($path = $dist->name) =~ s|-|/|g; '' }}
+
+RTx '{{$dist->name}}';
+all_from 'lib/{{$path}}.pm';
+readme_from 'lib/{{$path}}.pm';
+license 'gplv2';
+
+sign;
+WriteAll;
diff --git a/profiles/db/skel/gitignore b/profiles/db/skel/gitignore
new file mode 100644
index 0000000..e3b02c2
--- /dev/null
+++ b/profiles/db/skel/gitignore
@@ -0,0 +1,13 @@
+blib*
+Makefile
+Makefile.old
+pm_to_blib*
+*.tar.gz
+.lwpcookies
+cover_db
+pod2htm*.tmp
+/{{ $dist->name }}*
+README
+*.bak
+*.swp
+/MYMETA.*
commit 0236383e8fbe3faac75997d53be7113c51308bb5
Author: Kevin Falcone <kevin at jibsheet.com>
Date: Sun Oct 30 20:15:14 2011 -0400
Stop ignoring README
This makes github display our README when users are browsing the repo.
diff --git a/.gitignore b/.gitignore
index 37822c6..36bb9b1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,7 +7,6 @@ pm_to_blib*
cover_db
pod2htm*.tmp
Dist-Zilla-MintingProfile-RTx*
-README
*.bak
*.swp
MYMETA.*
diff --git a/README b/README
new file mode 100644
index 0000000..60e56c0
--- /dev/null
+++ b/README
@@ -0,0 +1,49 @@
+NAME
+ Dist-Zilla-MintingProfile-RTx - Basic Minting Profile for RTx modules
+
+USAGE
+ dzil setup # it'll use your author and license info
+
+ dzil new -P RTx RT-Extension-DoesMagicStuff
+
+ # will include a make initdb step in your README
+ # you still need to provide a etc/initialdata file
+ dzil new -P RTx -p db RT-Extension-MagicAndDB
+
+ Stubs in a proper Makefile.PL and README
+
+ Your RT extension will still be managed by Module::Install using
+ Module::Install::RTx, but Dist::Zilla provides a nice dist creation
+ interface.
+
+AUTHOR
+ Kevin Falcone <falcone at bestpractical.com>
+
+LICENCE AND COPYRIGHT
+ Copyright (c) 2011, Best Practical Solutions, LLC. All rights reserved.
+
+ This module is free software; you can redistribute it and/or modify it
+ under the terms of version 2 of the GNU General Public License.
+
+DISCLAIMER OF WARRANTY
+ BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+ FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+ PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
+ EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
+ ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
+ YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
+ NECESSARY SERVICING, REPAIR, OR CORRECTION.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+ REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
+ TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+ SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+ FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGES.
+
commit 6727c5fd21f54fc00e5df8de26ceffb3f6d90624
Author: Kevin Falcone <kevin at jibsheet.com>
Date: Sun Oct 30 20:20:42 2011 -0400
Bump for 0.05
diff --git a/Changes b/Changes
index 2f1414e..aba5e24 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,7 @@
+0.05
+ Ignore MYMETA files
+ We use GPLv2 by default because it is RT's license
+ Add a secondary profile that includes initdb instructions
0.04
Anchor the dist-name tarball ignore so it doesn't catch Callbacks
Include links to rt.cpan.org
diff --git a/META.yml b/META.yml
index 3aabce0..da3c111 100644
--- a/META.yml
+++ b/META.yml
@@ -23,4 +23,4 @@ requires:
Module::Install::ReadmeFromPod: 0
resources:
license: http://opensource.org/licenses/gpl-license.php
-version: 0.04
+version: 0.05
diff --git a/lib/Dist/Zilla/MintingProfile/RTx.pm b/lib/Dist/Zilla/MintingProfile/RTx.pm
index 7fcf8fb..f743810 100644
--- a/lib/Dist/Zilla/MintingProfile/RTx.pm
+++ b/lib/Dist/Zilla/MintingProfile/RTx.pm
@@ -6,7 +6,7 @@ use Moose;
with 'Dist::Zilla::Role::MintingProfile::ShareDir';
-our $VERSION = '0.04';
+our $VERSION = '0.05';
=head1 NAME
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list