Skip to content

Commit

Permalink
allow "homepage" arg to override github
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Oct 28, 2014
1 parent e2ebb80 commit 2ef682f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Revision history for {{$dist->name}}

{{$NEXT}}
- allow homepage to be overridden

5.004 2014-03-16 16:52:01+01:00 Europe/Paris
- default_jobs for makemaker is now 9
Expand Down
7 changes: 7 additions & 0 deletions lib/Dist/Zilla/PluginBundle/RJBS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ has github_issues => (
default => sub { $_[0]->payload->{github_issues} // 1 },
);

has homepage => (
is => 'ro',
isa => 'Str',
predicate => 'has_homepage',
);

has weaver_config => (
is => 'ro',
isa => 'Str',
Expand Down Expand Up @@ -187,6 +193,7 @@ sub configure {
[ GithubMeta => {
remote => [ qw(github origin) ],
issues => $self->github_issues,
($self->has_homepage ? (homepage => $self->homepage) : ()),
} ],
);

Expand Down

0 comments on commit 2ef682f

Please sign in to comment.