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

Install Ruby on MacOS/Linux Script; v3.2.3 #185

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.1
3.4.0
77 changes: 38 additions & 39 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/asciidoctor/asciidoctor-pdf.git
revision: daeafdde601c87e644c9ed28091672b48cc80c40
revision: b154248dc71c28ad43fda7318ed6b56d1a4cb097
specs:
asciidoctor-pdf (3.0.0.alpha.0)
asciidoctor (~> 2.0)
Expand Down Expand Up @@ -30,9 +30,10 @@ GIT
GEM
remote: https://rubygems.org/
specs:
Ascii85 (1.1.1)
activesupport (7.2.1.2)
Ascii85 (2.0.1)
activesupport (8.0.1)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
Expand All @@ -42,51 +43,53 @@ GEM
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
afm (0.2.2)
asciidoctor (2.0.23)
async (2.17.0)
console (~> 1.26)
async (2.21.1)
console (~> 1.29)
fiber-annotation
io-event (~> 1.6, >= 1.6.5)
async-http (0.82.2)
async-http (0.86.0)
async (>= 2.10.2)
async-pool (~> 0.9)
io-endpoint (~> 0.14)
io-stream (~> 0.6)
metrics (~> 0.12)
protocol-http (~> 0.37)
protocol-http (~> 0.43)
protocol-http1 (>= 0.28.1)
protocol-http2 (~> 0.19)
protocol-http2 (~> 0.22)
traces (~> 0.10)
async-http-faraday (0.19.0)
async-http (~> 0.42)
faraday
async-pool (0.10.1)
async-pool (0.10.2)
async (>= 1.25)
traces
base64 (0.2.0)
benchmark (0.4.0)
bigdecimal (3.1.8)
cmdparse (3.0.7)
coderay (1.1.3)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
console (1.27.0)
console (1.29.2)
fiber-annotation
fiber-local (~> 1.1)
json
css_parser (1.19.1)
css_parser (1.21.0)
addressable
drb (2.2.1)
faraday (2.12.0)
faraday-net_http (>= 2.0, < 3.4)
faraday (2.12.2)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-http-cache (2.5.1)
faraday (>= 0.8)
faraday-net_http (3.3.0)
net-http
faraday-net_http (3.4.0)
net-http (>= 0.5.0)
faraday-retry (2.2.1)
faraday (~> 2.0)
fiber-annotation (0.2.0)
Expand All @@ -104,30 +107,30 @@ GEM
rainbow (>= 2.2.1)
rake (>= 10.0)
hashery (2.1.2)
hexapdf (1.0.0)
hexapdf (1.0.3)
cmdparse (~> 3.0, >= 3.0.3)
geom2d (~> 0.4, >= 0.4.1)
openssl (>= 2.2.1)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
io-endpoint (0.14.0)
io-event (1.7.3)
io-stream (0.6.0)
json (2.7.4)
logger (1.6.1)
io-event (1.7.5)
io-stream (0.6.1)
json (2.9.1)
logger (1.6.4)
matrix (0.4.2)
metrics (0.12.0)
minitest (5.25.1)
metrics (0.12.1)
minitest (5.25.4)
multi_json (1.15.0)
net-http (0.4.1)
net-http (0.6.0)
uri
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
openssl (3.2.0)
openssl (3.3.0)
pdf-core (0.9.0)
pdf-reader (2.12.0)
Ascii85 (~> 1.0)
pdf-reader (2.13.0)
Ascii85 (>= 1.0, < 3.0, != 2.0.0)
afm (~> 0.2.1)
hashery (~> 2.0)
ruby-rc4
Expand All @@ -147,40 +150,36 @@ GEM
pdf-reader (~> 2.0)
prawn (~> 2.2)
protocol-hpack (1.5.1)
protocol-http (0.42.0)
protocol-http (0.47.1)
protocol-http1 (0.28.1)
protocol-http (~> 0.22)
protocol-http2 (0.19.3)
protocol-http2 (0.22.0)
protocol-hpack (~> 1.4)
protocol-http (~> 0.18)
public_suffix (6.0.1)
pygments.rb (3.0.0)
rainbow (3.1.1)
rake (13.2.1)
rexml (3.3.9)
rexml (3.4.0)
rghost (0.9.9)
rouge (4.4.0)
rouge (4.5.1)
ruby-rc4 (0.1.5)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
securerandom (0.3.1)
securerandom (0.4.1)
specific_install (0.3.8)
text-hyphen (1.5.0)
traces (0.13.1)
traces (0.14.1)
treetop (1.6.12)
polyglot (~> 0.3)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uri (0.13.1)
uri (1.0.2)

PLATFORMS
arm64-darwin-21
arm64-darwin-23
arm64-darwin-24
x86_64-darwin-21
x86_64-darwin-22
x86_64-linux
ruby

DEPENDENCIES
asciidoctor-pdf!
Expand All @@ -200,4 +199,4 @@ DEPENDENCIES
ttfunk!

BUNDLED WITH
2.3.8
2.5.16
Binary file modified README.pdf
Binary file not shown.
29 changes: 29 additions & 0 deletions bin/install-ruby
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
# vim: ft=bash

function installer() {
if [[ `uname -s` =~ Darwin ]]; then
echo 'brew '
else
echo 'sudo apt-get '
fi
}

export DEFAULT_RUBY_VERSION=3.3.6
export RUBY_VERSION="${1:-"$( [[ -f .ruby-version ]] && cat .ruby-version || echo $DEFAULT_RUBY_VERSION)"}"
export OPT_DIR=$( if [[ -d /opt/homebrew ]] ; then echo /opt/homebrew; else echo /usr/local; fi )
export RUBY_CONFIGURE_OPTS="--with-jemalloc --enable-yjit --with-opt-dir=${OPT_DIR}"

export INSTALLER=$(installer)

echo "System package installeri : ${INSTALLER}"
echo "Installing Ruby Version : ${RUBY_VERSION}"
echo "RUBY_CONFIGURE_OPTS : ${RUBY_CONFIGURE_OPTS}"

set -ex

${INSTALLER} install rbenv ruby-build || true
${INSTALLER} upgrade rbenv ruby-build || true

rbenv install -s ${RUBY_VERSION}

Loading