Module: Gemvault::VaultSourceList

Defined in:
lib/rubygems_plugin.rb

Overview

Routes .gemv source strings to Gem::Source::Vault.

Instance Method Summary collapse

Instance Method Details

#<<(obj) ⇒ Object



78
79
80
81
82
83
84
85
# File 'lib/rubygems_plugin.rb', line 78

def <<(obj)
  if obj.is_a?(String) && obj.end_with?(".gemv")
    src = Gem::Source::Vault.new(obj)
    @sources << src unless @sources.include?(src)
    return src
  end
  super
end