[前][次][番号順一覧][スレッド一覧]

ruby-changes:71749

From: Hiroshi <ko1@a...>
Date: Sat, 16 Apr 2022 13:34:12 +0900 (JST)
Subject: [ruby-changes:71749] 24d7ebfa7a (master): Revert "[ruby/stringio] Add push task to push built gems"

https://git.ruby-lang.org/ruby.git/commit/?id=24d7ebfa7a

From 24d7ebfa7a34b1b406b59648fad6ed068198c982 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Sat, 16 Apr 2022 13:30:20 +0900
Subject: Revert "[ruby/stringio] Add push task to push built gems"

This reverts commit 22f79ae3f749ebe31c34c22d5b8699ffd81ab341.
---
 rakelib/release.rake | 30 ------------------------------
 1 file changed, 30 deletions(-)
 delete mode 100644 rakelib/release.rake

diff --git a/rakelib/release.rake b/rakelib/release.rake
deleted file mode 100644
index ca9ab714c9..0000000000
--- a/rakelib/release.rake
+++ /dev/null
@@ -1,30 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/#L0
-release_task = Rake.application["release"]
-release_task.prerequisites.delete("build")
-release_task.prerequisites.delete("release:rubygem_push")
-release_task_comment = release_task.comment
-if release_task_comment
-  release_task.clear_comments
-  release_task.comment = release_task_comment.gsub(/ and build.*$/, "")
-end
-
-desc "Push built gems"
-task "push" do
-  require "open-uri"
-  helper = Bundler::GemHelper.instance
-  gemspec = helper.gemspec
-  name = gemspec.name
-  version = gemspec.version.to_s
-  pkg_dir = "pkg"
-  mkdir_p(pkg_dir)
-  ["", "-java"].each do |type|
-    base_url = "https://github.com/ruby/#{name}/releases/download"
-    url = URI("#{base_url}/v#{version}/#{name}-#{version}#{type}.gem")
-    path = "#{pkg_dir}/#{File.basename(url.path)}"
-    url.open do |input|
-      File.open(path, "wb") do |output|
-        IO.copy_stream(input, output)
-      end
-      helper.__send__(:rubygem_push, path)
-    end
-  end
-end
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]