From 7e008b3f091f01ca892c64e1db0b52db0ab34c30 Mon Sep 17 00:00:00 2001 From: Andrew Horsman Date: Fri, 3 Dec 2010 20:06:22 -0500 Subject: Removed 'v' from latest_version in rake readme:compile. Ran rake readme:compile to update readme. --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index addd358..fd8e702 100644 --- a/Rakefile +++ b/Rakefile @@ -9,9 +9,11 @@ namespace :readme do desc "Modify readme documentation automatically" task :compile do - latest_version = 'slop-' + `git tag -l`.split("\n").last + latest_version = 'slop-' + `git tag -l`.split("\n").last.gsub('v', '') readme_filepath = File.join(File.dirname(__FILE__), "README.md") + puts "Updating gem commands to instruct developer with version #{latest_version}" + working_readme = File.read(readme_filepath) working_readme.gsub! /(slop-[0-9]+\.[0-9]+\.[0-9]+)/, latest_version -- cgit v1.2.1