summaryrefslogtreecommitdiff
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
parente9436207403302b9b28ebb1fefc906d2cf240f55 (diff)
downloadslop-7e008b3f091f01ca892c64e1db0b52db0ab34c30.tar.gz
Removed 'v' from latest_version in rake readme:compile. Ran rake readme:compile to update readme.
-rw-r--r--README.md2
-rw-r--r--Rakefile4
2 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 3fded2b..e0edb8a 100644
--- a/README.md
+++ b/README.md
@@ -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
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