Signatures that are inclduded in gem package as sig/ directory.
# File rbs-2.1.0/lib/rbs/collection/sources/rubygems.rb, line 10 def has?(config_entry) gem_sig_path(config_entry) end
# File rbs-2.1.0/lib/rbs/collection/sources/rubygems.rb, line 20 def install(dest,, config_entry,, stdout)) # Do nothing because stdlib RBS is available by default name = config_entry['name'] version = config_entry['version'] or raise _, from = gem_sig_path(config_entry) stdout.puts "Using #{name}:#{version} (#{from})" end
# File rbs-2.1.0/lib/rbs/collection/sources/rubygems.rb, line 28 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