ruby-changes:68432
From: David <ko1@a...>
Date: Wed, 13 Oct 2021 23:30:29 +0900 (JST)
Subject: [ruby-changes:68432] 058cd3a6df (master): [rubygems/rubygems] Remove unnecessary method
https://git.ruby-lang.org/ruby.git/commit/?id=058cd3a6df From 058cd3a6dfab3b357e001a44456889d72b099a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Thu, 26 Aug 2021 13:00:16 +0200 Subject: [rubygems/rubygems] Remove unnecessary method https://github.com/rubygems/rubygems/commit/97241e0ea4 --- lib/bundler/gem_helper.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb index 973884dc37..9af8501525 100644 --- a/lib/bundler/gem_helper.rb +++ b/lib/bundler/gem_helper.rb @@ -129,8 +129,8 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/gem_helper.rb#L129 def git_push(remote = nil) remote ||= default_remote - perform_git_push "#{remote} refs/heads/#{current_branch}" - perform_git_push "#{remote} refs/tags/#{version_tag}" + sh(%W[git push #{remote} refs/heads/#{current_branch}]) + sh(%W[git push #{remote} refs/tags/#{version_tag}]) Bundler.ui.confirm "Pushed git commits and release tag." end @@ -158,11 +158,6 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/gem_helper.rb#L158 allowed_push_host || env_rubygems_host || "rubygems.org" end - def perform_git_push(options = "") - cmd = "git push #{options}" - sh(cmd.shellsplit) - end - def already_tagged? return false unless sh(%w[git tag]).split(/\n/).include?(version_tag) Bundler.ui.confirm "Tag #{version_tag} has already been created." -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/