mirror of
https://github.com/docker-library/ruby.git
synced 2022-11-09 11:41:34 -05:00
Add 2.4-rc builds
This commit is contained in:
parent
50d97f7b93
commit
c9208def0c
18 changed files with 310 additions and 15 deletions
|
@ -2,6 +2,9 @@ language: bash
|
|||
services: docker
|
||||
|
||||
env:
|
||||
- VERSION=2.4-rc VARIANT=
|
||||
- VERSION=2.4-rc VARIANT=slim
|
||||
- VERSION=2.4-rc VARIANT=alpine
|
||||
- VERSION=2.3 VARIANT=
|
||||
- VERSION=2.3 VARIANT=slim
|
||||
- VERSION=2.3 VARIANT=alpine
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN set -ex \
|
|||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
|
@ -43,7 +43,7 @@ RUN set -ex \
|
|||
yaml-dev \
|
||||
zlib-dev \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
|
@ -47,7 +47,7 @@ RUN set -ex \
|
|||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN set -ex \
|
|||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
|
@ -43,7 +43,7 @@ RUN set -ex \
|
|||
yaml-dev \
|
||||
zlib-dev \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
|
@ -47,7 +47,7 @@ RUN set -ex \
|
|||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN set -ex \
|
|||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
|
@ -43,7 +43,7 @@ RUN set -ex \
|
|||
yaml-dev \
|
||||
zlib-dev \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
|
@ -47,7 +47,7 @@ RUN set -ex \
|
|||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
72
2.4-rc/Dockerfile
Normal file
72
2.4-rc/Dockerfile
Normal file
|
@ -0,0 +1,72 @@
|
|||
FROM buildpack-deps:jessie
|
||||
|
||||
# skip installing gem documentation
|
||||
RUN mkdir -p /usr/local/etc \
|
||||
&& { \
|
||||
echo 'install: --no-document'; \
|
||||
echo 'update: --no-document'; \
|
||||
} >> /usr/local/etc/gemrc
|
||||
|
||||
ENV RUBY_MAJOR 2.4-rc
|
||||
ENV RUBY_VERSION 2.4.0-preview3
|
||||
ENV RUBY_DOWNLOAD_SHA256 c35fe752ccfabf69bf48e6aab5111c25a05938b428936f780638e2111934c9dd
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
# we purge system ruby later to make sure our final image uses what we just built
|
||||
RUN set -ex \
|
||||
\
|
||||
&& buildDeps=' \
|
||||
bison \
|
||||
libgdbm-dev \
|
||||
ruby \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
# hack in "ENABLE_PATH_CHECK" disabling to suppress:
|
||||
# warning: Insecure world writable dir
|
||||
&& { \
|
||||
echo '#define ENABLE_PATH_CHECK 0'; \
|
||||
echo; \
|
||||
cat file.c; \
|
||||
} > file.c.new \
|
||||
&& mv file.c.new file.c \
|
||||
\
|
||||
&& autoconf \
|
||||
&& ./configure --disable-install-doc --enable-shared \
|
||||
&& make -j"$(nproc)" \
|
||||
&& make install \
|
||||
\
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& cd / \
|
||||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION"
|
||||
|
||||
ENV BUNDLER_VERSION 1.13.6
|
||||
|
||||
RUN gem install bundler --version "$BUNDLER_VERSION"
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
ENV PATH $BUNDLE_BIN:$PATH
|
||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
||||
|
||||
CMD [ "irb" ]
|
107
2.4-rc/alpine/Dockerfile
Normal file
107
2.4-rc/alpine/Dockerfile
Normal file
|
@ -0,0 +1,107 @@
|
|||
FROM alpine:3.4
|
||||
|
||||
# skip installing gem documentation
|
||||
RUN mkdir -p /usr/local/etc \
|
||||
&& { \
|
||||
echo 'install: --no-document'; \
|
||||
echo 'update: --no-document'; \
|
||||
} >> /usr/local/etc/gemrc
|
||||
|
||||
ENV RUBY_MAJOR 2.4-rc
|
||||
ENV RUBY_VERSION 2.4.0-preview3
|
||||
ENV RUBY_DOWNLOAD_SHA256 c35fe752ccfabf69bf48e6aab5111c25a05938b428936f780638e2111934c9dd
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
# we purge system ruby later to make sure our final image uses what we just built
|
||||
# readline-dev vs libedit-dev: https://bugs.ruby-lang.org/issues/11869 and https://github.com/docker-library/ruby/issues/75
|
||||
RUN set -ex \
|
||||
\
|
||||
&& apk add --no-cache --virtual .ruby-builddeps \
|
||||
autoconf \
|
||||
bison \
|
||||
bzip2 \
|
||||
bzip2-dev \
|
||||
ca-certificates \
|
||||
coreutils \
|
||||
gcc \
|
||||
gdbm-dev \
|
||||
glib-dev \
|
||||
libc-dev \
|
||||
libffi-dev \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
linux-headers \
|
||||
make \
|
||||
ncurses-dev \
|
||||
openssl \
|
||||
openssl-dev \
|
||||
procps \
|
||||
readline-dev \
|
||||
ruby \
|
||||
tar \
|
||||
yaml-dev \
|
||||
zlib-dev \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
# hack in "ENABLE_PATH_CHECK" disabling to suppress:
|
||||
# warning: Insecure world writable dir
|
||||
&& { \
|
||||
echo '#define ENABLE_PATH_CHECK 0'; \
|
||||
echo; \
|
||||
cat file.c; \
|
||||
} > file.c.new \
|
||||
&& mv file.c.new file.c \
|
||||
\
|
||||
&& autoconf \
|
||||
# the configure script does not detect isnan/isinf as macros
|
||||
&& ac_cv_func_isnan=yes ac_cv_func_isinf=yes \
|
||||
./configure --disable-install-doc --enable-shared \
|
||||
&& make -j"$(getconf _NPROCESSORS_ONLN)" \
|
||||
&& make install \
|
||||
\
|
||||
&& runDeps="$( \
|
||||
scanelf --needed --nobanner --recursive /usr/local \
|
||||
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
|
||||
| sort -u \
|
||||
| xargs -r apk info --installed \
|
||||
| sort -u \
|
||||
)" \
|
||||
&& apk add --virtual .ruby-rundeps $runDeps \
|
||||
bzip2 \
|
||||
ca-certificates \
|
||||
libffi-dev \
|
||||
openssl-dev \
|
||||
yaml-dev \
|
||||
procps \
|
||||
zlib-dev \
|
||||
&& apk del .ruby-builddeps \
|
||||
&& cd / \
|
||||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION"
|
||||
|
||||
ENV BUNDLER_VERSION 1.13.6
|
||||
|
||||
RUN gem install bundler --version "$BUNDLER_VERSION"
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
ENV PATH $BUNDLE_BIN:$PATH
|
||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
||||
|
||||
CMD [ "irb" ]
|
13
2.4-rc/onbuild/Dockerfile
Normal file
13
2.4-rc/onbuild/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM ruby:2.4-rc
|
||||
|
||||
# throw errors if Gemfile has been modified since Gemfile.lock
|
||||
RUN bundle config --global frozen 1
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
ONBUILD COPY Gemfile /usr/src/app/
|
||||
ONBUILD COPY Gemfile.lock /usr/src/app/
|
||||
ONBUILD RUN bundle install
|
||||
|
||||
ONBUILD COPY . /usr/src/app
|
94
2.4-rc/slim/Dockerfile
Normal file
94
2.4-rc/slim/Dockerfile
Normal file
|
@ -0,0 +1,94 @@
|
|||
FROM debian:jessie
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
bzip2 \
|
||||
ca-certificates \
|
||||
libffi-dev \
|
||||
libgdbm3 \
|
||||
libssl-dev \
|
||||
libyaml-dev \
|
||||
procps \
|
||||
zlib1g-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# skip installing gem documentation
|
||||
RUN mkdir -p /usr/local/etc \
|
||||
&& { \
|
||||
echo 'install: --no-document'; \
|
||||
echo 'update: --no-document'; \
|
||||
} >> /usr/local/etc/gemrc
|
||||
|
||||
ENV RUBY_MAJOR 2.4-rc
|
||||
ENV RUBY_VERSION 2.4.0-preview3
|
||||
ENV RUBY_DOWNLOAD_SHA256 c35fe752ccfabf69bf48e6aab5111c25a05938b428936f780638e2111934c9dd
|
||||
ENV RUBYGEMS_VERSION 2.6.8
|
||||
|
||||
# some of ruby's build scripts are written in ruby
|
||||
# we purge system ruby later to make sure our final image uses what we just built
|
||||
RUN set -ex \
|
||||
\
|
||||
&& buildDeps=' \
|
||||
autoconf \
|
||||
bison \
|
||||
gcc \
|
||||
libbz2-dev \
|
||||
libgdbm-dev \
|
||||
libglib2.0-dev \
|
||||
libncurses-dev \
|
||||
libreadline-dev \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
make \
|
||||
ruby \
|
||||
wget \
|
||||
' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
|
||||
&& rm ruby.tar.gz \
|
||||
\
|
||||
&& cd /usr/src/ruby \
|
||||
\
|
||||
# hack in "ENABLE_PATH_CHECK" disabling to suppress:
|
||||
# warning: Insecure world writable dir
|
||||
&& { \
|
||||
echo '#define ENABLE_PATH_CHECK 0'; \
|
||||
echo; \
|
||||
cat file.c; \
|
||||
} > file.c.new \
|
||||
&& mv file.c.new file.c \
|
||||
\
|
||||
&& autoconf \
|
||||
&& ./configure --disable-install-doc --enable-shared \
|
||||
&& make -j"$(nproc)" \
|
||||
&& make install \
|
||||
\
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& cd / \
|
||||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION"
|
||||
|
||||
ENV BUNDLER_VERSION 1.13.6
|
||||
|
||||
RUN gem install bundler --version "$BUNDLER_VERSION"
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_BIN="$GEM_HOME/bin" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
ENV PATH $BUNDLE_BIN:$PATH
|
||||
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
|
||||
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
|
||||
|
||||
CMD [ "irb" ]
|
|
@ -43,7 +43,7 @@ RUN set -ex \
|
|||
yaml-dev \
|
||||
zlib-dev \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
|
@ -47,7 +47,7 @@ RUN set -ex \
|
|||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN set -ex \
|
|||
&& apt-get install -y --no-install-recommends $buildDeps \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
\
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& wget -O ruby.tar.gz "https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.gz" \
|
||||
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
|
||||
\
|
||||
&& mkdir -p /usr/src/ruby \
|
||||
|
|
12
update.sh
12
update.sh
|
@ -19,10 +19,16 @@ bundler="$(latest_gem_version bundler)"
|
|||
|
||||
travisEnv=
|
||||
for version in "${versions[@]}"; do
|
||||
rcGrepV='-v'
|
||||
rcVersion="${version%-rc}"
|
||||
if [ "$rcVersion" != "$version" ]; then
|
||||
rcGrepV=
|
||||
fi
|
||||
|
||||
IFS=$'\n'; allVersions=(
|
||||
$(curl -sSL --compressed "https://cache.ruby-lang.org/pub/ruby/$version/" \
|
||||
| grep -E '<a href="ruby-'"$version"'.[^"]+\.tar\.bz2' \
|
||||
| grep -vE 'preview|rc' \
|
||||
$(curl -sSL --compressed "https://cache.ruby-lang.org/pub/ruby/$rcVersion/" \
|
||||
| grep -E '<a href="ruby-'"$rcVersion"'.[^"]+\.tar\.bz2' \
|
||||
| grep $rcGrepV -E 'preview|rc' \
|
||||
| sed -r 's!.*<a href="ruby-([^"]+)\.tar\.bz2.*!\1!' \
|
||||
| sort -rV)
|
||||
); unset IFS
|
||||
|
|
Loading…
Reference in a new issue