configify the list of gems on ur machine. the quick hack

gem list --local | python -c "import sys;import re;l=sys.stdin.readlines();x=['config.gem :'+line[:-1][:line.index(' ')] + ' , ' +line[:-1][line.index(' '):].replace('(',':version => ').replace(')','') for line in l];print '\n'.join(x)"
Just a small hack for ruby's environment.rb
Sample Output
config.gem :actionmailer ,  :version => 2.3.4
config.gem :actionpack ,  :version => 2.3.4
config.gem :activerecord ,  :version => 2.3.4
config.gem :activeresource ,  :version => 2.3.4
config.gem :activesupport ,  :version => 2.3.4
config.gem :capistrano ,  :version => 2.5.10, 2.5.9
config.gem :flexmock ,  :version => 0.8.6
config.gem :highline ,  :version => 1.5.1
config.gem :httpclient ,  :version => 2.1.5.2
config.gem :hypersonic ,  :version => 1.0
config.gem :libxml-ruby ,  :version => 1.1.3
config.gem :libxslt-ruby ,  :version => 0.9.2
config.gem :mysql ,  :version => 2.8.1
config.gem :net-scp ,  :version => 1.0.2
config.gem :net-sftp ,  :version => 2.0.2
config.gem :net-ssh ,  :version => 2.0.15
config.gem :net-ssh-gateway ,  :version => 1.0.1
config.gem :rack ,  :version => 1.0.1
config.gem :rails ,  :version => 2.3.4
config.gem :rake ,  :version => 0.8.7
config.gem :rest-client ,  :version => 1.0.3
config.gem :ruby-xslt ,  :version => 0.9.6
config.gem :soap4r ,  :version => 1.5.8
config.gem :sqlite3-ruby ,  :version => 1.2.5
config.gem :xml-simple ,  :version => 1.0.12

0
2009-11-25 09:04:29

1 Alternatives + Submit Alt

What Others Think

I would love to join this party. Well, I can help you or also provide the best Girls for your guests for their secret desire I know a website named [url=https://secretdesire.co/texas-dallas-bodyrubs]secretdesire.co/texas-dallas-bodyrubs[/url] just click on it and it will take you to their beautiful interface with so many beautiful girls. Even you can check out their prices for hours or full days or nights. Please check and don't forget to take me to that party.
BarbaraMJennette · 22 weeks and 4 days ago
I would love to join this party. Well, I can help you or also provide the best Girls for your guests for their secret desire I know a website named secretdesire.co/texas-dallas-bodyrubs just click on it and it will take you to their beautiful interface with so many beautiful girls. Even you can check out their prices for hours or full days or nights. Please check and don't forget to take me to that party.
BarbaraMJennette · 22 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: