Method: RBS::Collection::Sources::Local#manifest_of

Defined in:
lib/rbs/collection/sources/local.rb

#manifest_of(name, version) ⇒ Object



62
63
64
65
66
67
68
# File 'lib/rbs/collection/sources/local.rb', line 62

def manifest_of(name, version)
  gem_dir = @full_path.join(name, version)
  raise unless gem_dir.exist?

  manifest_path = gem_dir.join('manifest.yaml')
  YAML.safe_load(manifest_path.read) if manifest_path.exist?
end