Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

replace BumpVersionFromGit with Git::NextVersion

  • Loading branch information...
commit a5aa9925ef48063cf6e72b29f0ecfe4d0898c2c7 1 parent 030a8a3
Ricardo Signes authored
18  lib/Dist/Zilla/App/Command/rjbsver.pm
... ...
@@ -1,18 +0,0 @@
1  
-use strict;
2  
-use warnings;
3  
-package Dist::Zilla::App::Command::rjbsver;
4  
-# ABSTRACT: see what the mantissa for an rjbs-style version is today
5  
-use Dist::Zilla::App -command;
6  
-
7  
-use DateTime ();
8  
-
9  
-sub command_names { qw(rjbsver rjv) }
10  
-
11  
-sub run {
12  
-  my $now = DateTime->now(time_zone => 'America/New_York');
13  
-
14  
-  printf "Current version mantissa, assuming N=0, is %s0\n",
15  
-    $now->format_cldr('yyDDD');
16  
-}
17  
-
18  
-1;
6  lib/Dist/Zilla/PluginBundle/RJBS.pm
@@ -13,7 +13,7 @@ This is the plugin bundle that RJBS uses.  It is equivalent to:
13 13
   [@Basic]
14 14
 
15 15
   [AutoPrereqs]
16  
-  [BumpVersionFromGit]
  16
+  [Git::NextVersion]
17 17
   [PkgVersion]
18 18
   [MetaConfig]
19 19
   [MetaJSON]
@@ -29,7 +29,7 @@ This is the plugin bundle that RJBS uses.  It is equivalent to:
29 29
   tag_format = %v
30 30
 
31 31
 If the C<task> argument is given to the bundle, PodWeaver is replaced with
32  
-TaskWeaver and BumpVersionFromGit is replaced with AutoVersion.  If the
  32
+TaskWeaver and Git::NextVersion is replaced with AutoVersion.  If the
33 33
 C<manual_version> argument is given, AutoVersion is omitted. 
34 34
 
35 35
 =cut
@@ -90,7 +90,7 @@ sub configure {
90 90
       ]);
91 91
     } else {
92 92
       $self->add_plugins([
93  
-        BumpVersionFromGit => {
  93
+        'Git::NextVersion' => {
94 94
           version_regexp => '^([0-9]+\.[0-9]+)$',
95 95
         }
96 96
       ]);

0 notes on commit a5aa992

Please sign in to comment.
Something went wrong with that request. Please try again.