From: Quintus Date: 2012-07-10T02:06:26+09:00 Subject: Re: unable to use gems in simple scripts --Sig_/9MrBSVszOXCqUBJtZqa69YR Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am Tue, 10 Jul 2012 01:13:44 +0900 schrieb locky thindromen : > > ruby -T test.rb > /usr/lib/ruby/1.9.1/rubygems/specification.rb:268:in `[]': Insecure > operation - [] (SecurityError) Why do you use the -T option? This sets Ruby=E2=80=99s $SAFE level, which certainly isn=E2=80=99t what you want as a newby. It tells Ruby to be super-eager on certain operations, and it seems your gem is bitten by that. Do not use -T, and it should work. Vale, Marvin --Sig_/9MrBSVszOXCqUBJtZqa69YR Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJP+w8jAAoJELh1XLHFkqhalm8IAK7BJxXEvM6ZfHHfdDUy9sjU rDjvE5jsCqRW+POEFOVhTwtdGn5dDxtvZAZiIKhh/VD0wVuwO5Eui8fvSWQI+7dh 65Z6R5gB+rhqKlp5+qOjMPTRQeTgMHeVTkfjd1Wgds7FgqZ5MtOUoiqN3Ddp4iLQ 64rjAuxtnP9fQ0a19ELUzwN/50P8Vts4m4wB/EyP3Ok73bCMNrQ4HeRbUtvqzHO+ f5zXDnPocbl0EmdfDHLyEYyUmMR+Wx13nVxAd/MPMXYHXtqU8RZDFX6JjePQ5S14 IDn/hWQrKVMZ+k8WjB6AUbL4TfT/zPwvkKz1lok5n+kSmjgAoz8CcqNH8nJjyew= =tTiA -----END PGP SIGNATURE----- --Sig_/9MrBSVszOXCqUBJtZqa69YR--