Skip to content

Commit

Permalink
bump rubygems to 3.2.x for ruby-2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonskie authored and mrosecrance committed Apr 7, 2021
1 parent f6307a3 commit b121ed1
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b121ed1

Please sign in to comment.