ruby@2.0: rubygems 2.7.3

This commit is contained in:
Chongyu Zhu 2017-12-16 01:29:06 +08:00 committed by ilovezfs
parent 51f51fa994
commit f647f13a82

View file

@ -3,7 +3,7 @@ class RubyAT20 < Formula
homepage "https://www.ruby-lang.org/"
url "https://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p648.tar.bz2"
sha256 "087ad4dec748cfe665c856dbfbabdee5520268e94bb81a1d8565d76c3cc62166"
revision 2
revision 3
bottle do
sha256 "7d4fcb90460fded78df836ada2a2fdef835c8067beb4a19f42f3873e9a1ed633" => :high_sierra
@ -29,8 +29,8 @@ class RubyAT20 < Formula
# but a revision bump should not be forced every update
# unless there are security fixes in that Rubygems release.
resource "rubygems" do
url "https://rubygems.org/rubygems/rubygems-2.6.14.tgz"
sha256 "406a45d258707f52241843e9c7902bbdcf00e7edc3e88cdb79c46659b47851ec"
url "https://rubygems.org/rubygems/rubygems-2.7.3.tgz"
sha256 "cf234e4f1ffeb7cad951f2f87cd426132c6106bb6e303073c4bc9eaae6b3400b"
end
def program_suffix
@ -102,9 +102,7 @@ class RubyAT20 < Formula
rm_f bin/"gem#{program_suffix}"
# Drop in the new version.
(rg_in/"rubygems").install Dir[buildpath/"vendor_gem/lib/rubygems/*"]
rg_in.install buildpath/"vendor_gem/lib/rubygems.rb"
rg_in.install buildpath/"vendor_gem/lib/ubygems.rb"
rg_in.install Dir[buildpath/"vendor_gem/lib/*"]
bin.install buildpath/"vendor_gem/bin/gem" => "gem#{program_suffix}"
end
end