Last active
September 16, 2015 10:57
-
-
Save logicrime/f800c55fc799b301fef5 to your computer and use it in GitHub Desktop.
searchgems
This file contains 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
#!/usr/bin/env ruby | |
# gem search, by hayden jones | |
# License: whatever | |
# usage: ./searchgems eventmachine | |
# prints all gems that contain eventmachine in the name | |
# if a lot of people use this, maybe somebody will fix rubygems so that gem search | |
# searches from cache instead of over the wire | |
puts `gem search ""`.split("\n").select { |line| line.include?(ARGV[0]) }.sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or faster: