Skip to content

Commit

Permalink
Merge pull request dependabot#3914 from dependabot/feelepxyz/disable-…
Browse files Browse the repository at this point in the history
…outdated-rubygems

Ruby: Fix 2.7 deprecation warnings in rubygems
  • Loading branch information
feelepxyz authored Jun 16, 2021
2 parents ca111af + 06049a1 commit 5aed0e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ RUN if ! getent group $USER_GID; then groupadd --gid $USER_GID dependabot ; \

# Install Ruby 2.7, update RubyGems, and install Bundler
ENV BUNDLE_SILENCE_ROOT_WARNING=1
# Disable the outdated rubygems installation from being loaded
ENV DEBIAN_DISABLE_RUBYGEMS_INTEGRATION=true
# Allow gem installs as the dependabot user
ENV BUNDLE_PATH=".bundle" \
BUNDLE_BIN=".bundle/bin"
Expand Down
9 changes: 5 additions & 4 deletions common/lib/dependabot/shared_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# frozen_string_literal: true

require "json"
require "tmpdir"
require "excon"
require "English"
require "digest"
require "English"
require "excon"
require "fileutils"
require "json"
require "open3"
require "shellwords"
require "tmpdir"

require "dependabot/utils"
require "dependabot/errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module foobar
end

it "doesn't return to the excluded version" do
expect(finder.latest_version).to eq(Dependabot::GoModules::Version.new("1.0.1"))
expect(finder.latest_version).to eq(Dependabot::GoModules::Version.new("1.0.6"))
end
end

Expand Down

0 comments on commit 5aed0e5

Please sign in to comment.