Created
January 3, 2012 13:16
-
-
Save groovehunter/1554848 to your computer and use it in GitHub Desktop.
Print name and description of all gems (in bundle)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for gem in `gem list|cut -d" " -f 1` | |
do | |
gem specification $gem name | |
gem specification $gem description | |
done |
Example:
--- abstract
--- "'abstract.rb' is a library which enable you to define abstract method in Ruby."
--- actionmailer
--- Email on Rails. Compose, deliver, receive, and test emails using the familiar controller/view pattern. First-class support for multipart email and attachments.
--- actionpack
--- Web apps on Rails. Simple, battle-tested conventions for building and testing MVC web applications. Works with any Rack-compatible server.
--- activemodel
--- A toolkit for building modeling frameworks like Active Record and Active Resource. Rich support for attributes, callbacks, validations, observers, serialization, internationalization, and testing.
...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prints name and description of all gems (in bundle). From this list it's nice to copy and paste to a developer overview page aka "used technologies" of a project. A sort of documentation helper