summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAndrew Horsman <minirobotics@gmail.com>2010-12-03 20:18:14 -0500
committerAndrew Horsman <minirobotics@gmail.com>2010-12-03 20:18:14 -0500
commita1712f116a52811a47e929f7d4bb4d00c0d2c95a (patch)
treed686fb77fd7b8e3490c0a01109ce3ab097a664d8 /Rakefile
parent79344fd1a51cd4b40f13b8af5a3926925172e54d (diff)
downloadslop-a1712f116a52811a47e929f7d4bb4d00c0d2c95a.tar.gz
Used Slop::VERSION instead of pulling last git tag. :|
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 0a681c7..4a6b351 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,4 +1,5 @@
require 'rspec/core/rake_task'
+require File.join(File.dirname(__FILE__), 'lib/slop')
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.rspec_opts = ["-c", "--fail-fast", "-f documentation"]
@@ -9,7 +10,7 @@ namespace :readme do
desc "Modify readme documentation automatically"
task :compile do
- latest_version = 'slop-' + `git tag -l`.split("\n").last.gsub('v', '')
+ latest_version = 'slop-' + Slop::VERSION
readme_filepath = File.join(File.dirname(__FILE__), "README.md")
puts "Updating gem commands to instruct developer with version #{latest_version}"