12th Thu
how to list up active gem names
ruby>>
$:.grep(%r{/gems/([^/]+-[0-9.]+)/lib$}){$1}
=> ["addressable-2.0.2", "merb-auth-slice-password-1.0.8.1", "json-1.1.4.1", "extlib-0.9.10", ...
<<--
posted by
maiha on Thu 12 Feb 2009 at 02:50 with 0 comments