ruby 2.4.3

This commit is contained in:
Chongyu Zhu 2017-12-15 17:49:50 +08:00 committed by ilovezfs
parent 8f33ce3bca
commit 57cb866e32

View file

@ -1,9 +1,8 @@
class Ruby < Formula
desc "Powerful, clean, object-oriented scripting language"
homepage "https://www.ruby-lang.org/"
url "https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.2.tar.xz"
sha256 "748a8980d30141bd1a4124e11745bb105b436fb1890826e0d2b9ea31af27f735"
revision 1
url "https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.3.tar.xz"
sha256 "23677d40bf3b7621ba64593c978df40b1e026d8653c74a0599f0ead78ed92b51"
bottle do
sha256 "5a1d5adf5f9b0f151a484edcc292764a0b0dbef61eb667c59aa850d0ad3d7626" => :high_sierra
@ -36,8 +35,8 @@ class Ruby < Formula
# The exception is Rubygem security fixes, which mandate updating this
# formula & the versioned equivalents and bumping the revisions.
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
@ -118,9 +117,7 @@ class Ruby < 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