Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ready to upload to cpan

 * update Makefile.PL for new Module::Install, all_from file
 * add Changes and README                                                                                
 * add Author (from svn log) and copyright notice
 * add minimal load test


git-svn-id: svn+ssh://svn.bestpractical.com/svn/jifty.org/plugins/Jifty-Plugin-SiteNews@7209 e84bef0a-9b06-0410-84ba-c4c9edb13aeb
  • Loading branch information...
commit b617ae7dc4c69b1b0f57881fbf4593530bc188ad 1 parent 18e0b29
Yves Agostini authored
View
4 Changes
@@ -0,0 +1,4 @@
+Revision history for Perl module Jifty::Plugin::SiteNews
+
+0.9 Tue, 09 Jun 2009 21:53:18 +0200
+ - original version for CPAN
View
6 Makefile.PL
@@ -1,10 +1,10 @@
-use inc::Module::Install 0.46;
+use inc::Module::Install;
name('Jifty-Plugin-SiteNews');
-version_from('lib/Jifty/Plugin/SiteNews.pm');
+all_from('lib/Jifty/Plugin/SiteNews.pm');
requires('Jifty');
auto_install();
-tests(qw( t/*/t/*.t ));
+tests(qw( t/*.t ));
WriteAll;
View
28 README
@@ -0,0 +1,28 @@
+NAME
+ Jifty::Plugin::SiteNews - Provide site news in your app
+
+DESCRIPTION
+ Provides a way to include site news in your Jifty app. To use it, you
+ will need to add a news model:
+
+ package YourApp::Model::News;
+ use Jifty::DBI::Schema;
+ use YourApp::Record schema {
+ # ..additional properties go here, like 'author'
+ };
+ use Jifty::Plugin::SiteNews::Mixin::Model::News;
+
+ You will also need to alias the view somewhere; from YourApp::View:
+
+ require Jifty::Plugin::SiteNews::View::News;
+ alias Jifty::Plugin::SiteNews::View::News under '/news';
+
+AUTHOR
+ Alex Vandiver
+
+LICENSE
+ Copyright 2005-2009 Best Practical Solutions, LLC.
+
+ This program is free software and may be modified and distributed under
+ the same terms as Perl itself.
+
View
10 lib/Jifty/Plugin/SiteNews.pm
@@ -26,6 +26,16 @@ You will also need to alias the view somewhere; from YourApp::View:
require Jifty::Plugin::SiteNews::View::News;
alias Jifty::Plugin::SiteNews::View::News under '/news';
+=head1 AUTHOR
+
+Alex Vandiver
+
+=head1 LICENSE
+
+Copyright 2005-2009 Best Practical Solutions, LLC.
+
+This program is free software and may be modified and distributed under the same terms as Perl itself.
+
=cut
1;
View
7 t/00-load.t
@@ -0,0 +1,7 @@
+#!/usr/bin/env perl
+
+use warnings;
+use strict;
+
+use Test::More tests => 1;
+use_ok('Jifty::Plugin::SiteNews');
Please sign in to comment.
Something went wrong with that request. Please try again.