Class: Doubleshot::Resolver::GemResolver::GemSource

Inherits:
Source
  • Object
show all
Defined in:
lib/doubleshot/resolver/gem_resolver/gem_source.rb

Constant Summary collapse

SUPPORTED_PLATFORMS =
[ /\bjava\b/i, /^jruby$/i, /^ruby$/i ]

Instance Method Summary collapse

Methods inherited from Source

#initialize, map, mappings, new

Constructor Details

This class inherits a constructor from Doubleshot::Resolver::GemResolver::Source

Instance Method Details

#spec(name, version) ⇒ Object



17
18
19
# File 'lib/doubleshot/resolver/gem_resolver/gem_source.rb', line 17

def spec(name, version)
  __specs__[name][version]
end

#versions(name) ⇒ Object



13
14
15
# File 'lib/doubleshot/resolver/gem_resolver/gem_source.rb', line 13

def versions(name)
  __versions__[name]
end