I want to know, does rake task autoload a .gemspec
? I ask because I'm running a rake task to automate building my gem, part of that is loading files and it prints out messages.
I should see:
Loading external libraries for rake_tasks
instead I see:
Loading external libraries for gemspec
Message are simply:
puts "Loading external libaries for #{$Loading_for}"
and $loading_for
gets set depending on where the request for file loading comes from, e.g. rake_tasks, gemspec, executable, app.
Even though I'm setting $loading_for` in the rake task with:
$Loading_for = :rake_tasks
It's printing:
Loading external libaries for gemspec
The question is why is the gemspec being loaded? I'm not loading it any where from within my rakefile.
Also, another oddity is that whenever I do rake -h
I get a strange warning:
WARN: Unresolved specs during Gem::Specification.reset:
rack-test (>= 0)
It's odd becuase I have:
spec.add_development_dependency "rack-test", "0.6.3"
in my gemspec.
p.s. I'm aware of the spelling mistake with libaries
, this has been fixed.