[Rubygems-developers] Executing code after installing gem
luislavena at gmail.com
Tue Nov 25 11:45:42 EST 2008
On Tue, Nov 25, 2008 at 2:37 PM, Jim Weirich <jim.weirich at gmail.com> wrote:
> On Nov 25, 2008, at 11:28 AM, Charlie Savage wrote:
>> Except it already does by letting a developer specify a Rakefile in
>> spec.extensions. That's how I hacked around RubyGems to correctly install
>> dependent dlls into the lib directory.
>> Not to mention the fact that once I have my gem installed, it can pretty
>> much do what it wants.
> Once it is installed, it will run as a regular user, not as root.
> Ideally you want to be able to build as a normal user and only switch to
> root for the "copy files" portion of the install. Is there a system
> independent way of doing that?
This has been in the Feature request queue of RubyGems for quite some time:
On the portability note, you can drop root privileges on *nix, but is
not portable without conditions.
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
More information about the Rubygems-developers