Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Correct Rakefile for subshells and when gem is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Jul 27, 2010
1 parent a22579d commit ffbde5f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Rakefile
Expand Up @@ -8,7 +8,16 @@ task :install => [:gem] do
sh "gem install hanna*.gem" sh "gem install hanna*.gem"
end end


ENV['RUBYOPT'] = (ENV['RUBYOPT']||'') + ' -Ilib' # We do the following so that RDoc will pick up our plugin now, and also in
# any subshells.
path = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift path
ENV['RUBYLIB'] = begin
libs = ENV['RUBYLIB'] || ''
libs = libs.split(File::PATH_SEPARATOR)
libs << path
libs.join(File::PATH_SEPARATOR)
end


gemspec = eval(File.read('hanna.gemspec')) gemspec = eval(File.read('hanna.gemspec'))


Expand Down

0 comments on commit ffbde5f

Please sign in to comment.