Created
June 2, 2013 12:43
-
-
Save FUT/5693540 to your computer and use it in GitHub Desktop.
Sinatra app gemfile. Extracts gemlist from application file and makes an attempt to fetch gems from rubygems.
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
source 'https://rubygems.org' | |
gemlist = File.read('app.rb').scan(%r{^.*require.*'(?<gem>[^'"]*)'$}).flatten | |
gemlist.each { |gemname| gem gemname } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment