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

ridk.rb - add CC_VERSION_MESSAGE to 'ridk version', remove warnings #171

Merged
merged 1 commit into from
Apr 1, 2020
Merged
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
5 changes: 4 additions & 1 deletion lib/ruby_installer/runtime/ridk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ def msys_version_info(msys_path)
end

private def ignore_err
orig_verbose, $VERBOSE = $VERBOSE, nil
begin
yield
rescue
end
$VERBOSE = orig_verbose
end

def print_version
Expand All @@ -137,7 +139,8 @@ def print_version
h = {
"ruby" => { "path" => RbConfig::TOPDIR,
"version" => RUBY_VERSION,
"platform" => RUBY_PLATFORM },
"platform" => RUBY_PLATFORM,
"cc" => RbConfig::CONFIG['CC_VERSION_MESSAGE'].split("\n", 2).first },
"ruby_installer" => { "package_version" => RubyInstaller::Runtime::PACKAGE_VERSION,
"git_commit" => RubyInstaller::Runtime::GIT_COMMIT },
}
Expand Down