lib/tapioca/gemfile.rb in tapioca-0.4.27 vs lib/tapioca/gemfile.rb in tapioca-0.5.0

- old
+ new

@@ -60,11 +60,11 @@ .uniq(&:rbi_file_name) .sort_by(&:rbi_file_name) [dependencies, missing_specs] end - sig { returns([T::Array[::Gem::Specification], T::Array[String]]) } + sig { returns([T::Enumerable[Spec], T::Array[String]]) } def materialize_deps deps = definition.locked_gems.dependencies.values missing_specs = T::Array[String].new materialized_dependencies = if definition.resolve.method(:materialize).arity == 1 # Support bundler >= v2.2.25 md = definition.resolve.materialize(deps) @@ -93,12 +93,10 @@ end class GemSpec extend(T::Sig) - IGNORED_GEMS = T.let(%w{ - sorbet sorbet-static sorbet-runtime - }.freeze, T::Array[String]) + IGNORED_GEMS = T.let(["sorbet", "sorbet-static", "sorbet-runtime"].freeze, T::Array[String]) sig { returns(String) } attr_reader :full_gem_path, :version sig { params(spec: Spec).void }