Sha256: 9d99c99c1f3051ea8707885fde5ad143069bedceec5aed4d9f5620c0235ff29c

Contents?: true

Size: 967 Bytes

Versions: 1

Compression:

Stored size: 967 Bytes

Contents

require 'rubygems/gemcutter_utilities'

# Holy shit disgusting
Gem.clear_paths
paths = ENV['GEM_PATH'].to_s.split(':')
paths.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'vendor', 'ruby', '1.8')))
ENV['GEM_PATH'] = paths.join(':')
ENV['BUNDLE_GEMFILE'] = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'Gemfile'))
require 'bundler'
Bundler.setup
Bundler.require

class Gem::Commands::ScanCommand < Gem::Command
  include Gem::GemcutterUtilities

  def initialize
    super('scan', description, :dir => '')
  end

  def description
    'Scan your gems and upload to gemrage.com'
  end

  def arguments
    '[DIR]        Optional directory to scan for project files'
  end

  def usage
    program_name
  end

  def execute
    p basic_scan.join(', ')
  end

private

  def basic_scan
    Gem.source_index.map do |name, spec|
      spec.name
    end
  end

  def rvm_scan
  end

  def pik_scan
  end

  # Etc...
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemrage-0.1.1 lib/rubygems/commands/scan_command.rb