summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAndrew Horsman <minirobotics@gmail.com>2010-12-03 20:06:22 -0500
committerAndrew Horsman <minirobotics@gmail.com>2010-12-03 20:06:22 -0500
commit7e008b3f091f01ca892c64e1db0b52db0ab34c30 (patch)
treec3632fabc67a3101da246735dd8c16692b85afa4 /Rakefile
parente9436207403302b9b28ebb1fefc906d2cf240f55 (diff)
downloadslop-7e008b3f091f01ca892c64e1db0b52db0ab34c30.tar.gz
Removed 'v' from latest_version in rake readme:compile. Ran rake readme:compile to update readme.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 3 insertions, 1 deletions
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