Skip to content

Instantly share code, notes, and snippets.

View Tassandar's full-sized avatar

Tassandar Tassandar

  • Industrial Bank
  • Shanghai
View GitHub Profile
#!/usr/bin/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|