From: Jan Date: 2011-07-04T03:35:02+09:00 Subject: Re: downloading all of gem to my hd? --------------enig00003F47329B2B77C815F3F1 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Hi *, On 07/03/2011 04:57 PM Y. NOBUOKA wrote: > 1. obtain all gem names with "gem search" command > $ gem search --remote > 2. download all gem files with "gem fetch" command > $ gem fetch [gemname] [gemname] [gemname] ... > ([gemname] is one of the gem names obtained in step 1) >=20 > Although this way is troublesome if you do by your hand, > you can write a simple script which do these steps automatically. using bash this might look like this: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D $ for GEM in $(gem search -qr | awk 'NR>2 { print $1 }'); do gem fetch ${GEM}; done; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D All available remote gems (~25k@gemcutter) will be fetched to the current= working directory. However, this also includes all sort of garbage module= s created for testing or those no longer under active development. Hope this helps ... So long ... Jan --------------enig00003F47329B2B77C815F3F1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk4QtkQACgkQPmR91pQfGIPvNACfbYRGupsFQ3/Rv/+CHRWbxmWA zNUAnRXYAeGGbveYjvcIfjsrSqK4UCLy =j6Te -----END PGP SIGNATURE----- --------------enig00003F47329B2B77C815F3F1--