Module: BundlerDefinitionRubyVersionPatch
- Included in:
- Bundler::Definition
- Defined in:
- lib/dependabot/monkey_patches/bundler/definition_ruby_version_patch.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/dependabot/monkey_patches/bundler/definition_ruby_version_patch.rb', line 4 def index @index ||= super.tap do if ruby_version requested_version = ruby_version.to_gem_version_with_patchlevel sources..specs << Gem::Specification.new("ruby\0", requested_version) end sources..specs << Gem::Specification.new("ruby\0", "2.5.3p105") end end |