Permalink
Browse files

provides a VERSION file

  • Loading branch information...
1 parent 571c069 commit 68c2c03085edf0c5b5b7ff3c5a0ba648284571ab @cognominal committed Jun 24, 2012
Showing with 11 additions and 3 deletions.
  1. +1 −1 META.info
  2. +1 −0 VERSION
  3. +8 −1 bin/bump
  4. +1 −1 package.json
View
@@ -1,6 +1,6 @@
{
"name" : "parse-tree-server",
- "version" : "0.0.7",
+ "0.0.10",
"description" : "parse tree server",
"depends" : ["JSON::Tiny"],
"source-url" : "http://github.com/cognominal/codeview"
View
@@ -0,0 +1 @@
+0.0.9
View
@@ -6,11 +6,18 @@ my $usage = q|"bump" should be run from the depot root folder. |;
my @fnms = <package.json META.info>;
die $usage unless $_.IO.f for @fnms;
+my $version;
for @fnms -> $fnm {
$_ = slurp $fnm;
# make sure we don't mess random files
die $usage unless m/parse\-tree\-server/;
- s/(version\V+\d+\.\d+.)(\d+)/{ $0 ~ $1+1 }/;
+ s/version\V+(\d+\.\d+.)(\d+)/{ $0 ~ $1+1 }/;
+ $version = "$0$1";
+ spit $fnm, $_;
+}
+spit 'VERSION', "$version\n";
+
+sub spit(Str $fnm, Str $_) {
my $io = $fnm.IO.open(:w, $fnm);
$io.print: $_;
$io.close;
View
@@ -2,7 +2,7 @@
"name": "parse-tree-server",
"description": "parse tree server",
"keywords": ["web", "server", "syntax", "highlighter"],
- "version": "0.0.7",
+ "0.0.10",
"author": "Stéphane Payrard <cognominal@gmail.com>",
"engines": { "node": ">=0.1.99" },
"bin": { "hilite-server": "./bin/hilite-server" },

0 comments on commit 68c2c03

Please sign in to comment.