Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ruby 2.4 #351

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion config/ruby_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module RubyInstaller
:file => 'cacert.pem'
)

BaseVersions = %w(18 19 20 21 22 23)
BaseVersions = %w(18 19 20 21 22 23 24)

Ruby18 = OpenStruct.new(
:number => "18",
Expand Down Expand Up @@ -207,6 +207,35 @@ module RubyInstaller
:installer_guid_x64 => "{96A4CEEE-5ACC-4FB2-AAB6-8152D5AB0C9E}"
)

Ruby24 = OpenStruct.new(
:number => "24",
:version => "2.4.0",
:short_version => 'ruby24',
:url => "http://cache.ruby-lang.org/pub/ruby/2.4/",
:checkout => 'http://svn.ruby-lang.org/repos/ruby/branches/ruby_2_4',
:checkout_target => 'downloads/ruby_2_4',
:target => 'sandbox/ruby_2_4',
:doc_target => 'sandbox/doc/ruby24',
:build_target => 'sandbox/ruby24_build',
:install_target => 'sandbox/ruby24_mingw',
:patches => 'resources/patches/ruby24',
:configure_options => [
'--enable-shared',
'--disable-install-doc',
'debugflags=-g',
"CPPFLAGS='-DFD_SETSIZE=2048'"
],
:files => [
"ruby-2.4.0.tar.bz2"
],
:dependencies => [
:ffi, :gdbm, :openssl, :yaml, :zlib
],
:excludes => [],
:installer_guid => "{88AB5BD7-425C-416A-A06D-014990F253D1}",
:installer_guid_x64 => "{DD87A7DC-FBAE-4993-AA63-F16271C82D27}"
)

# COMPAT mode for Ruby 1.9.2
if ENV['COMPAT'] then
Ruby19.version = "1.9.2-p290"
Expand Down Expand Up @@ -237,6 +266,7 @@ module RubyInstaller
Ruby21 => '{04C58EFB-39FF-42E8-ADA1-3F588D2F2E10}',
Ruby22 => "{245A7D99-7BDE-4CC7-A872-63E47C73174B}",
Ruby23 => "{E5385270-5AEF-462F-BEA0-27F72897E2A4}",
Ruby24 => "{50789C3E-9D74-4254-85C7-F06EC2D4E8C2}",
}.each do |k, v|
k.patches = nil
k.target = File.expand_path(ENV['LOCAL'].gsub('\\', File::SEPARATOR))
Expand Down Expand Up @@ -266,6 +296,7 @@ module RubyInstaller
Ruby21.dependencies.delete(pkg)
Ruby22.dependencies.delete(pkg)
Ruby23.dependencies.delete(pkg)
Ruby24.dependencies.delete(pkg)
end
end

Expand Down