lib/rbs/collection/sources/git.rb in rbs-1.8.1 vs lib/rbs/collection/sources/git.rb in rbs-2.0.0.pre1

- old
+ new

@@ -48,9 +48,18 @@ stdout.puts "Installing #{format_config_entry(config_entry)}" _install(dest: dest, config_entry: config_entry) end end + def manifest_of(config_entry) + gem_name = config_entry['name'] + version = config_entry['version'] or raise + gem_dir = gem_repo_dir.join(gem_name, version) + + manifest_path = gem_dir.join('manifest.yaml') + YAML.safe_load(manifest_path.read) if manifest_path.exist? + end + private def _install(dest:, config_entry:) gem_name = config_entry['name'] version = config_entry['version'] or raise dest = dest.join(gem_name, version) dest.mkpath