lib/spoom/context/bundle.rb in spoom-1.4.2 vs lib/spoom/context/bundle.rb in spoom-1.5.0

- old
+ new

@@ -56,12 +56,12 @@ end # Get `gem` version from the `Gemfile.lock` content # # Returns `nil` if `gem` cannot be found in the Gemfile. - sig { params(gem: String).returns(T.nilable(String)) } + sig { params(gem: String).returns(T.nilable(Gem::Version)) } def gem_version_from_gemfile_lock(gem) - gemfile_lock_specs[gem]&.version&.to_s + gemfile_lock_specs[gem]&.version end end end end