diff options
author | Andrew Horsman <minirobotics@gmail.com> | 2010-12-03 20:06:22 -0500 |
---|---|---|
committer | Andrew Horsman <minirobotics@gmail.com> | 2010-12-03 20:06:22 -0500 |
commit | 7e008b3f091f01ca892c64e1db0b52db0ab34c30 (patch) | |
tree | c3632fabc67a3101da246735dd8c16692b85afa4 /Rakefile | |
parent | e9436207403302b9b28ebb1fefc906d2cf240f55 (diff) | |
download | slop-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-- | Rakefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |