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

- old
+ new

@@ -23,9 +23,16 @@ version = config_entry['version'] or raise _, from = gem_sig_path(config_entry) stdout.puts "Using #{name}:#{version} (#{from})" end + def manifest_of(config_entry) + _, sig_path = gem_sig_path(config_entry) + sig_path or raise + manifest_path = sig_path.join('manifest.yaml') + YAML.safe_load(manifest_path.read) if manifest_path.exist? + end + def to_lockfile { 'type' => 'rubygems', } end