diff options
author | Andrew Horsman <minirobotics@gmail.com> | 2010-12-03 20:18:14 -0500 |
---|---|---|
committer | Andrew Horsman <minirobotics@gmail.com> | 2010-12-03 20:18:14 -0500 |
commit | a1712f116a52811a47e929f7d4bb4d00c0d2c95a (patch) | |
tree | d686fb77fd7b8e3490c0a01109ce3ab097a664d8 /Rakefile | |
parent | 79344fd1a51cd4b40f13b8af5a3926925172e54d (diff) | |
download | slop-a1712f116a52811a47e929f7d4bb4d00c0d2c95a.tar.gz |
Used Slop::VERSION instead of pulling last git tag. :|
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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}" |