From b121ed1b6f78de9f427e2d8572951446416e5958 Mon Sep 17 00:00:00 2001 From: ramonskie Date: Mon, 29 Mar 2021 15:43:46 +0200 Subject: [PATCH] bump rubygems to 3.2.x for ruby-2.7 --- ci/pipeline.yml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 5ad79c3..7c15a00 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -146,7 +146,7 @@ jobs: resource: ruby-2.7 trigger: true - get: rubygems - resource: rubygems-3.1 + resource: rubygems-3.2 trigger: true - get: yaml-0.1 trigger: true @@ -161,7 +161,7 @@ jobs: params: PRIVATE_YML: ((s3_private_yml)) RUBY_VERSION: "2.7" - RUBYGEMS_VERSION: "3.1" + RUBYGEMS_VERSION: "3.2" LIBYAML_VERSION: "0.1" - task: test-bumped privileged: true @@ -265,6 +265,33 @@ resources: ] }' +- name: rubygems-3.2 + type: dynamic-metalink + source: + version: "3.2.x" + version_check: | + git ls-remote --tags https://github.com/rubygems/rubygems.git \ + | cut -f2 \ + | grep -v '\^{}' \ + | grep -E '^refs/tags/.+$' \ + | sed -E 's/^refs\/tags\/(.+)$/\1/' \ + | sed 's/^v//' \ + | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' + metalink_get: | + export name="rubygems-${version}.tgz" + export url="https://rubygems.org/rubygems/rubygems-${version}.tgz" + export size=$( curl --silent --head "$url" | grep Content-Length | awk '{ print $2 }' | tr -cd '[:digit:]' ) + jq -n ' + { + "files": [ + { + "name": env.name, + "urls": [ { "url": env.url } ], + "size": env.size | tonumber + } + ] + }' + - name: yaml-0.1 type: dynamic-metalink source: