Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r8715@Thesaurus (orig r8702): ribasushi | 2010-02-14 10:46:51 +0100 This is Moose, so use CMOP r8720@Thesaurus (orig r8707): ribasushi | 2010-02-15 10:28:22 +0100 Final POD touches r8721@Thesaurus (orig r8708): ribasushi | 2010-02-15 10:31:38 +0100 Spellcheck (jawnsy++) r8722@Thesaurus (orig r8709): ribasushi | 2010-02-15 10:32:24 +0100 One more r8723@Thesaurus (orig r8710): ribasushi | 2010-02-15 14:49:26 +0100 Release 0.08119 r8725@Thesaurus (orig r8712): ribasushi | 2010-02-15 14:50:56 +0100 Bump trunl version r8726@Thesaurus (orig r8713): rafl | 2010-02-15 15:49:55 +0100 Make sure we actually run all tests, given we're using done_testing. r8727@Thesaurus (orig r8714): rafl | 2010-02-15 15:50:01 +0100 Make sure overriding deployment_statements is possible from within schemas. r8728@Thesaurus (orig r8715): rafl | 2010-02-15 15:56:06 +0100 Changelogging. r8729@Thesaurus (orig r8716): rafl | 2010-02-15 15:58:09 +0100 Make some cookbook code compile. r8730@Thesaurus (orig r8717): nuba | 2010-02-15 16:11:52 +0100 spelling fixes in the documaentation, sholud be gud now ;) r8732@Thesaurus (orig r8719): caelum | 2010-02-16 11:09:58 +0100 use OO interface of Hash::Merge for ::DBI::Replicated r8734@Thesaurus (orig r8721): ribasushi | 2010-02-16 11:41:06 +0100 Augment did-author-run-makefile check to include OptDeps r8735@Thesaurus (orig r8722): ribasushi | 2010-02-16 12:16:06 +0100 Reorg support section, add live-chat link r8739@Thesaurus (orig r8726): caelum | 2010-02-16 14:51:58 +0100 set behavior for Hash::Merge in ::DBI::Replicated, otherwise it uses the global setting r8740@Thesaurus (orig r8727): caelum | 2010-02-16 15:43:25 +0100 POD touchups r8759@Thesaurus (orig r8746): ribasushi | 2010-02-19 00:30:37 +0100 Fix bogus test r8760@Thesaurus (orig r8747): ribasushi | 2010-02-19 00:34:22 +0100 Retire useless abstraction (all rdbms need this anyway) r8761@Thesaurus (orig r8748): ribasushi | 2010-02-19 00:35:01 +0100 Fix count of group_by over aliased function r8765@Thesaurus (orig r8752): ribasushi | 2010-02-19 10:11:20 +0100 r8497@Thesaurus (orig r8484): ribasushi | 2010-01-31 10:06:29 +0100 Branch to unify mandatory PK handling r8498@Thesaurus (orig r8485): ribasushi | 2010-01-31 10:20:36 +0100 This is not really used for anything (same code in DBI) r8499@Thesaurus (orig r8486): ribasushi | 2010-01-31 10:25:55 +0100 Helper primary_columns wrapper to throw if a PK is not defined r8500@Thesaurus (orig r8487): ribasushi | 2010-01-31 11:07:25 +0100 Stupid errors r8501@Thesaurus (orig r8488): ribasushi | 2010-01-31 12:18:57 +0100 Saner handling of nonexistent/partial conditions r8762@Thesaurus (orig r8749): ribasushi | 2010-02-19 10:07:40 +0100 trap unresolvable conditions due to incomplete relationship specification r8764@Thesaurus (orig r8751): ribasushi | 2010-02-19 10:11:09 +0100 Changes r8767@Thesaurus (orig r8754): ribasushi | 2010-02-19 11:14:30 +0100 Fix for RT54697 r8769@Thesaurus (orig r8756): caelum | 2010-02-19 12:21:53 +0100 bump Test::Pod dep r8770@Thesaurus (orig r8757): caelum | 2010-02-19 12:23:07 +0100 bump Test::Pod dep in Optional::Dependencies too r8773@Thesaurus (orig r8760): rabbit | 2010-02-19 16:41:24 +0100 Fix stupid sqlt parser regression r8774@Thesaurus (orig r8761): rabbit | 2010-02-19 16:42:40 +0100 Port remaining tests to the Opt::Dep reposiory r8775@Thesaurus (orig r8762): rabbit | 2010-02-19 16:43:36 +0100 Some test cleanups r8780@Thesaurus (orig r8767): rabbit | 2010-02-20 20:59:20 +0100 Test::Deep actually isn't required r8786@Thesaurus (orig r8773): rabbit | 2010-02-20 22:21:41 +0100 These are core for perl 5.8 r8787@Thesaurus (orig r8774): rabbit | 2010-02-21 10:52:40 +0100 Shuffle tests a bit r8788@Thesaurus (orig r8775): rabbit | 2010-02-21 12:09:25 +0100 Bogus require r8789@Thesaurus (orig r8776): rabbit | 2010-02-21 12:09:48 +0100 Bogus unnecessary dep r8800@Thesaurus (orig r8787): rabbit | 2010-02-21 13:39:21 +0100 r8748@Thesaurus (orig r8735): goraxe | 2010-02-17 23:17:15 +0100 branch for dbicadmin pod fixes r8778@Thesaurus (orig r8765): goraxe | 2010-02-20 20:35:00 +0100 add G:L:D sub classes to generate pod r8779@Thesaurus (orig r8766): goraxe | 2010-02-20 20:56:16 +0100 dbicadmin: use subclassed G:L:D to generate some pod r8782@Thesaurus (orig r8769): goraxe | 2010-02-20 21:48:29 +0100 adjust Makefile.pl to generate dbicadmin.pod r8783@Thesaurus (orig r8770): goraxe | 2010-02-20 21:50:55 +0100 add svn-ignore for dbicadmin.pod r8784@Thesaurus (orig r8771): goraxe | 2010-02-20 22:01:41 +0100 change Options to Arguments r8785@Thesaurus (orig r8772): goraxe | 2010-02-20 22:10:29 +0100 add DBIx::Class::Admin::{Descriptive,Usage} to podcover ignore list r8790@Thesaurus (orig r8777): rabbit | 2010-02-21 12:35:38 +0100 Cleanup the makefile regen a bit r8792@Thesaurus (orig r8779): rabbit | 2010-02-21 12:53:01 +0100 Bah humbug r8793@Thesaurus (orig r8780): rabbit | 2010-02-21 12:55:18 +0100 And another one r8797@Thesaurus (orig r8784): rabbit | 2010-02-21 13:32:03 +0100 The minimal pod seems to confuse the manpage generator, commenting out for now r8798@Thesaurus (orig r8785): rabbit | 2010-02-21 13:38:03 +0100 Add license/author to dbicadmin autogen POD r8799@Thesaurus (orig r8786): rabbit | 2010-02-21 13:38:58 +0100 Reorder makefile author actions to make output more readable r8803@Thesaurus (orig r8790): ribasushi | 2010-02-21 14:24:15 +0100 Fix exception text r8804@Thesaurus (orig r8791): ribasushi | 2010-02-21 15:14:58 +0100 Extra testdep
- Loading branch information
Showing
81 changed files
with
707 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ _build/ | |
blib/ | ||
inc/ | ||
lib/DBIx/Class/Optional/Dependencies.pod | ||
lib/dbicadmin.pod | ||
pm_to_blib | ||
t/var/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package # hide from PAUSE | ||
DBIx::Class::Admin::Descriptive; | ||
|
||
use DBIx::Class::Admin::Usage; | ||
|
||
use base 'Getopt::Long::Descriptive'; | ||
|
||
sub usage_class { 'DBIx::Class::Admin::Usage'; } | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
package # hide from PAUSE | ||
DBIx::Class::Admin::Usage; | ||
|
||
|
||
use base 'Getopt::Long::Descriptive::Usage'; | ||
|
||
use base 'Class::Accessor::Grouped'; | ||
|
||
use Class::C3; | ||
|
||
__PACKAGE__->mk_group_accessors('simple', 'synopsis', 'short_description'); | ||
|
||
sub prog_name { | ||
Getopt::Long::Descriptive::prog_name(); | ||
} | ||
|
||
sub set_simple { | ||
my ($self,$field, $value) = @_; | ||
my $prog_name = prog_name(); | ||
$value =~ s/%c/$prog_name/g; | ||
$self->next::method($field, $value); | ||
} | ||
|
||
|
||
=head2 pod | ||
This returns the usage formated as a pod document | ||
=cut | ||
|
||
|
||
sub pod { | ||
my ($self) = @_; | ||
return join qq{\n}, $self->pod_leader_text, $self->pod_option_text, $self->pod_authorlic_text; | ||
} | ||
|
||
sub pod_leader_text { | ||
my ($self) = @_; | ||
|
||
return qq{=head1 NAME\n\n}.prog_name()." - ".$self->short_description().qq{\n\n}. | ||
qq{=head1 SYNOPSIS\n\n}.$self->leader_text().qq{\n}.$self->synopsis().qq{\n\n}; | ||
|
||
} | ||
|
||
sub pod_authorlic_text { | ||
|
||
return <<'EOA' | ||
=head1 AUTHORS | ||
See L<DBIx::Class/CONTRIBUTORS> | ||
=head1 LICENSE | ||
You may distribute this code under the same terms as Perl itself | ||
EOA | ||
} | ||
|
||
|
||
sub pod_option_text { | ||
my ($self) = @_; | ||
my @options = @{ $self->{options} || [] }; | ||
my $string = q{}; | ||
return $string unless @options; | ||
|
||
$string .= "=head1 OPTIONS\n\n=over\n\n"; | ||
|
||
foreach my $opt (@options) { | ||
my $spec = $opt->{spec}; | ||
my $desc = $opt->{desc}; | ||
if ($desc eq 'spacer') { | ||
$string .= "=back\n\n=head2 $spec\n\n=cut\n\n=over\n\n"; | ||
next; | ||
} | ||
|
||
$spec = Getopt::Long::Descriptive->_strip_assignment($spec); | ||
$string .= "=item " . join " or ", map { length > 1 ? "B<--$_>" : "B<-$_>" } | ||
split /\|/, $spec; | ||
$string .= "\n\n$desc\n\n=cut\n\n"; | ||
} | ||
$string .= "=back\n\n"; | ||
return $string; | ||
} | ||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.