gem: after installing display text

K

Kurt V. Hindenburg

Hello,
Is it possible to display some message after installing a gem? I have a gem
and I want to inform the user about a few items... this would seem like a
common thing but I couldn't find any info on it.
Thanks,
Kurt
 
A

Austin Ziegler

Is there any chance it could be made slightly more general? Like:

http://rubyforge.org/tracker/index.php?func=3Ddetail&aid=3D2890&g= roup_id=3D126&atid=3D578

so you could 'puts' any message you liked, and also do additional
installation (e.g. manpages) or processing (e.g. populate a database from
the net).

I would suggest that the feature be set up as follows:

* Any gem may display a message.
* Signed gems may execute extra commands, but only after asking the user.

The user should ultimately be able to identify authors that are
trusted so that trusted signed gems may execute extra stuff without
asking the user.

-austin
 
P

Paul Duncan

--SSjFkhywpXnVG+rz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Austin Ziegler ([email protected]) said:
=20
I would suggest that the feature be set up as follows:
=20
* Any gem may display a message.
* Signed gems may execute extra commands, but only after asking the use= r.
=20
The user should ultimately be able to identify authors that are
trusted so that trusted signed gems may execute extra stuff without
asking the user.

The Gem signing code has a rudimentary security policy framework
(Gem::Security::policy) which could be extended to support this
behavior. =20

--=20
Paul Duncan <[email protected]> pabs in #ruby-lang (OPN IRC)
http://www.pablotron.org/ OpenPGP Key ID: 0x82C29562

--SSjFkhywpXnVG+rz
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFDqYxDzdlT34LClWIRAraHAKDG1qpR5v7y6yxk12yPKXyaQRYc5ACgpNNa
4OMnVRI7YQk61Do3qOMdm1k=
=OOC8
-----END PGP SIGNATURE-----

--SSjFkhywpXnVG+rz--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,201
Messages
2,571,048
Members
47,650
Latest member
IanTylor5

Latest Threads

Top