No, as the list of files in a gem is only available after installation.
···
On Mar 13, 2008, at 01:20 AM, S2 wrote:
Is there a way to autoinstall a gem when it is "required" in an .rb file?
say I have:
-----
#!/usr/bin/rubyrequire 'rubygems'
require 'HOTP'puts HOTP.new.calculate_hotp('12345', 1, 6)
-----Is there a way to make rubygems autoinstall the HOTP gem if it is not already installed?