Skip to content

Commit

Permalink
Updated variable that holds gems to unlock
Browse files Browse the repository at this point in the history
Adding debugging context to check if CI tests pass

revert changes to see if Ci tests pass

adding context variable back

Testing context variable replacement

Testing dependency update

deep copy of object

deep copy of object

deep copy of object

deep copy of object

deep copy of object

deep copy of object

deep copy of object

Squashing changes

deep copy of object

deep copy of object

deep copy of object

deep copy of object
  • Loading branch information
sachin-sandhu committed May 22, 2024
1 parent 1cd86b5 commit 2e64a61
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions bundler/helpers/v2/lib/functions/lockfile_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def build_definition(dependencies_to_unlock)
# subdeps unlocked, like they were in the UpdateChecker, so we
# mutate the unlocked gems array.
unlocked = defn.instance_variable_get(:@unlock).fetch(:gems)
Dependabot.logger.info(unlocked)
must_not_unlock = defn.dependencies.map { |x| x.name.to_s } -
dependencies_to_unlock
unlocked.reject! { |n| must_not_unlock.include?(n) }
Expand Down
31 changes: 31 additions & 0 deletions test/Gemfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
source 'http://rubygems.org'

gem 'rails', '3.0.7'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'
# gem 'ruby-debug19', :require => 'ruby-debug'

# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'

# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
# gem 'webrat'
# end

0 comments on commit 2e64a61

Please sign in to comment.