lib/bundler/endpoint_specification.rb in bundler-2.3.12 vs lib/bundler/endpoint_specification.rb in bundler-2.3.13

- old
+ new

@@ -24,11 +24,14 @@ def required_ruby_version @required_ruby_version ||= _remote_specification.required_ruby_version end + # A fallback is included because the original version of the specification + # API didn't include that field, so some marshalled specs in the index have it + # set to +nil+. def required_rubygems_version - @required_rubygems_version ||= _remote_specification.required_rubygems_version + @required_rubygems_version ||= _remote_specification.required_rubygems_version || Gem::Requirement.default end def fetch_platform @platform end