Skip to content

Instantly share code, notes, and snippets.

@groovehunter
Created January 3, 2012 13:16
Show Gist options
  • Save groovehunter/1554848 to your computer and use it in GitHub Desktop.
Save groovehunter/1554848 to your computer and use it in GitHub Desktop.
Print name and description of all gems (in bundle)
#!/bin/bash
for gem in `gem list|cut -d" " -f 1`
do
gem specification $gem name
gem specification $gem description
done
@groovehunter
Copy link
Author

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

@groovehunter
Copy link
Author

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