Skip to content

Instantly share code, notes, and snippets.

View abargnesi's full-sized avatar

Tony Bargnesi abargnesi

View GitHub Profile
@abargnesi
abargnesi / gem-fetch-dependencies
Last active August 29, 2015 14:04 — forked from Milly/gem-fetch-dependencies
Works with rubygems on ruby 2.1.2
#!/usr/bin/env ruby
require 'rubygems'
require 'rubygems/commands/fetch_command'
class Gem::Commands::FetchCommand
def add_version_option_with_fetch_depends
add_version_option_without_fetch_depends
add_option('-y', '--[no-]dependencies', "Fetch dependent gems") do |value, options|
options[:dependencies] = value