lib/circleci/bundle/update/pr.rb in circleci-bundle-update-pr-1.3.5 vs lib/circleci/bundle/update/pr.rb in circleci-bundle-update-pr-1.4.0

- old
+ new

@@ -23,21 +23,21 @@ add_comment_of_compare_linker(repo_full_name, pull_request[:number]) end def self.need?(git_branches) return false unless git_branches.include?(ENV['CIRCLE_BRANCH']) - unless system("bundle update") - raise "Unable to execute `bundle update`" + unless system("bundle update && bundle update --ruby") + raise "Unable to execute `bundle update && bundle update --ruby`" end `git status -sb 2> /dev/null`.include?("Gemfile.lock") end private_class_method :need? def self.create_branch(git_username, git_email, branch) system("git config user.name #{git_username}") system("git config user.email #{git_email}") system("git add Gemfile.lock") - system("git commit -m '$ bundle update'") + system("git commit -m '$ bundle update && bundle update --ruby'") system("git branch -M #{branch}") system("git push origin #{branch}") end private_class_method :create_branch