From 8b48165862b2da458c7491f8adde7b31d9af33a6 Mon Sep 17 00:00:00 2001 From: windwiny Date: Fri, 29 Jan 2016 22:22:39 +0800 Subject: [PATCH 2/2] add ruby version 2.3 --- config/ruby_installer.rb | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/config/ruby_installer.rb b/config/ruby_installer.rb index 847219f..d1c9de1 100755 --- a/config/ruby_installer.rb +++ b/config/ruby_installer.rb @@ -15,7 +15,7 @@ module RubyInstaller :file => 'cacert.pem' ) - BaseVersions = %w(18 19 20 21 22) + BaseVersions = %w(18 19 20 21 22 23) Ruby18 = OpenStruct.new( :number => "18", @@ -178,6 +178,35 @@ module RubyInstaller :installer_guid_x64 => "{A98E44F8-6401-400F-830E-B1A2919C22BD}" ) + Ruby23 = OpenStruct.new( + :number => "23", + :version => "2.3.0", + :short_version => 'ruby23', + :url => "http://cache.ruby-lang.org/pub/ruby/2.3/", + :checkout => 'http://svn.ruby-lang.org/repos/ruby/branches/ruby_2_3', + :checkout_target => 'downloads/ruby_2_3', + :target => 'sandbox/ruby_2_3', + :doc_target => 'sandbox/doc/ruby23', + :build_target => 'sandbox/ruby23_build', + :install_target => 'sandbox/ruby23_mingw', + :patches => 'resources/patches/ruby23', + :configure_options => [ + '--enable-shared', + '--disable-install-doc', + 'debugflags=-g', + "CPPFLAGS='-DFD_SETSIZE=2048'" + ], + :files => [ + "ruby-2.3.0.tar.bz2" + ], + :dependencies => [ + :ffi, :gdbm, :openssl, :yaml, :zlib, :tcl, :tk + ], + :excludes => [], + :installer_guid => "{FF67D821-E2CA-4B2A-871F-4624C567AAF7}", + :installer_guid_x64 => "{96A4CEEE-5ACC-4FB2-AAB6-8152D5AB0C9E}" + ) + # COMPAT mode for Ruby 1.9.2 if ENV['COMPAT'] then Ruby19.version = "1.9.2-p290" @@ -206,7 +235,8 @@ module RubyInstaller Ruby19 => '{17E73B15-62D2-43FD-B851-ACF86A8C9D25}', Ruby20 => '{73A045D3-1C69-4885-B055-A5379CC7E603}', Ruby21 => '{04C58EFB-39FF-42E8-ADA1-3F588D2F2E10}', - Ruby22 => "{245A7D99-7BDE-4CC7-A872-63E47C73174B}" + Ruby22 => "{245A7D99-7BDE-4CC7-A872-63E47C73174B}", + Ruby23 => "{E5385270-5AEF-462F-BEA0-27F72897E2A4}", }.each do |k, v| k.patches = nil k.target = File.expand_path(ENV['LOCAL'].gsub('\\', File::SEPARATOR)) @@ -235,6 +265,7 @@ module RubyInstaller Ruby20.dependencies.delete(pkg) Ruby21.dependencies.delete(pkg) Ruby22.dependencies.delete(pkg) + Ruby23.dependencies.delete(pkg) end end -- 2.7.0.windows.1