diff --git a/.toys/release.rb b/.toys/release.rb index 6f80b4dd..d32c98d1 100644 --- a/.toys/release.rb +++ b/.toys/release.rb @@ -40,13 +40,12 @@ def build_docs end def pull_gh_pages - require "base64" Dir.chdir gh_pages_dir do exec ["git", "init"] exec ["git", "config", "--local", "user.name", "Google APIs"] exec ["git", "config", "--local", "user.email", "googleapis-packages@google.com"] if github_token && !github_token.empty? && github_remote.start_with?("https://") - encoded_token = Base64.strict_encode64("x-access-token:#{github_token}") + encoded_token = ["x-access-token:#{github_token}"].pack("m0") log_cmd = '["git", "config", "--local", "http.https://github.com/.extraheader", "****"]' exec ["git", "config", "--local", "http.https://github.com/.extraheader", "Authorization: Basic #{encoded_token}"], diff --git a/Gemfile b/Gemfile index c495c220..e7e740f8 100644 --- a/Gemfile +++ b/Gemfile @@ -16,7 +16,6 @@ source "https://rubygems.org" gemspec -gem "base64" gem "google-style", "~> 1.31.0" gem "minitest", "~> 5.16" gem "minitest-focus", "~> 1.2"