sig/collection/sources.rbs in rbs-2.6.0 vs sig/collection/sources.rbs in rbs-2.7.0.pre.1
- old
+ new
@@ -7,20 +7,28 @@
def has?: (Config::gem_entry) -> boolish
def versions: (Config::gem_entry) -> Array[String]
def install: (dest: Pathname, config_entry: Config::gem_entry, stdout: CLI::_IO) -> void
def to_lockfile: () -> source_entry
def manifest_of: (Config::gem_entry) -> manifest_entry?
+ def dependencies_of: (Config::gem_entry) -> Array[{"name" => String}]?
end
type source_entry = Git::source_entry
- | Stdlib::source_entry
- | Rubygems::source_entry
+ | Stdlib::source_entry
+ | Rubygems::source_entry
+
type manifest_entry = {
"dependencies" => Array[{"name" => String}]?,
}
+ module Base : _Source
+ def dependencies_of: (Config::gem_entry config_entry) -> Array[{"name" => String}]?
+ end
+
class Git
+ include Base
+
METADATA_FILENAME: String
type source_entry = {
'type' => 'git',
'name' => String,
@@ -48,10 +56,14 @@
def manifest_of: (Config::gem_entry) -> manifest_entry?
private
+ @git_dir: Pathname?
+
+ @resolved_revision: String?
+
def _install: (dest: Pathname , config_entry: Config::gem_entry) -> void
def cp_r: (Pathname, Pathname) -> void
def setup!: (revision: String) -> void
@@ -75,18 +87,23 @@
def format_config_entry: (Config::gem_entry) -> String
end
# signatures that are bundled in rbs gem under the stdlib/ directory
class Stdlib
+
+ REPO: Repository
+
+ include Base
+
type source_entry = {
'type' => 'stdlib',
}
# polyfill of singleton module
def self.instance: () -> instance
- def has?: (Config::gem_entry) -> bool
+ def has?: (Config::gem_entry) -> boolish
def versions: (Config::gem_entry) -> Array[String]
def install: (dest: Pathname, config_entry: Config::gem_entry, stdout: CLI::_IO) -> void
@@ -94,14 +111,16 @@
def manifest_of: (Config::gem_entry) -> manifest_entry?
private
- def gem_dir: (Config::gem_entry) -> Pathname
+ def lookup: (Config::gem_entry) -> Pathname?
end
# sig/ directory
class Rubygems
+ include Base
+
type source_entry = {
'type' => 'rubygems',
}
# polyfill of singleton module