Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add YARD_VERSION env to Rakefile. Allows installing as arbitrary gem …

…version with `rake install YARD_VERSION=x.y`

Note that this does not change YARD::VERSION in the installed gem itself.
  • Loading branch information...
commit f27213b4628230eddb7f80c2a34880ee46bbdb99 1 parent 95b6045
@lsegal authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Rakefile
View
4 Rakefile
@@ -1,6 +1,7 @@
require File.dirname(__FILE__) + '/lib/yard'
require 'rbconfig'
+YARD::VERSION.replace(ENV['YARD_VERSION']) if ENV['YARD_VERSION']
WINDOWS = (Config::CONFIG['host_os'] =~ /mingw|win32|cygwin/ ? true : false) rescue false
SUDO = WINDOWS ? '' : 'sudo'
@@ -8,7 +9,8 @@ task :default => :specs
desc "Builds the gem"
task :gem do
- sh "gem build yard.gemspec"
+ load 'yard.gemspec'
+ Gem::Builder.new(SPEC).build
end
desc "Installs the gem"
Please sign in to comment.
Something went wrong with that request. Please try again.