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 | |
parent | e9436207403302b9b28ebb1fefc906d2cf240f55 (diff) | |
download | slop-7e008b3f091f01ca892c64e1db0b52db0ab34c30.tar.gz |
Removed 'v' from latest_version in rake readme:compile. Ran rake readme:compile to update readme.
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | Rakefile | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -18,7 +18,7 @@ Installation git clone git://github.com/injekt/slop.git cd slop gem build slop.gemspec - gem install slop-v0.1.5.gem + gem install slop-0.1.6.gem ### GitHub + Rake = <3 @@ -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 |