Sha256: 3fe483d860e6f9bc070a4b5da270b11ea5cf902e5afe208799d3e01b65c9b673

Contents?: true

Size: 414 Bytes

Versions: 107

Compression:

Stored size: 414 Bytes

Contents

require 'rubygems/command_manager'

##
# This is an example of exactly what NOT to do.
#
# DO NOT include code like this in your rubygems_plugin.rb

class Gem::Commands::InterruptCommand < Gem::Command

  def initialize
    super('interrupt', 'Raises an Interrupt Exception', {})
  end

  def execute
    raise Interrupt, "Interrupt exception"
  end

end

Gem::CommandManager.instance.register_command :interrupt

Version data entries

107 entries across 107 versions & 2 rubygems

Version Path
rubygems-update-1.8.9 test/rubygems/rubygems_plugin.rb
rubygems-update-1.8.8 test/rubygems/rubygems_plugin.rb
rubygems-update-1.8.7 test/rubygems/rubygems_plugin.rb
rubygems-update-1.8.6 test/rubygems/rubygems_plugin.rb
slimgems-1.3.9.2 test/rubygems_plugin.rb
slimgems-1.3.9.1 test/rubygems_plugin.rb
slimgems-1.3.9 test/rubygems_plugin.rb
slimgems-1.3.8 test/rubygems_plugin.rb
rubygems-update-1.8.5 test/rubygems/rubygems_plugin.rb
rubygems-update-1.8.4 test/rubygems/rubygems_plugin.rb
rubygems-update-1.8.3 test/rubygems/rubygems_plugin.rb
rubygems-update-1.8.2 test/rubygems/rubygems_plugin.rb
rubygems-update-1.8.1 test/rubygems/rubygems_plugin.rb
rubygems-update-1.8.0 test/rubygems/rubygems_plugin.rb
rubygems-update-1.7.2 test/rubygems/rubygems_plugin.rb
rubygems-update-1.7.1 test/rubygems/rubygems_plugin.rb
rubygems-update-1.7.0 test/rubygems/rubygems_plugin.rb
rubygems-update-1.6.2 test/rubygems/rubygems_plugin.rb
rubygems-update-1.6.1 test/rubygems/rubygems_plugin.rb
rubygems-update-1.6.0 test/rubygems/rubygems_plugin.rb