Welcome to mirror list, hosted at ThFree Co, Russian Federation.

validate-monorepo-gem « scripts - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c379072102b89509352cea43a61cccb8efd611a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

if [[ $# -ne 1 ]]; then
  echo "usage: $0 <gem-name>"
  exit 1
fi

if gem specification --remote --ruby "$1"; then
  exit 0
fi

if gem specification --remote --ruby --pre "$1"; then
  exit 0
fi

echo "The '$1' is missing. Push stub gem to RubyGems with version 0.0.1."
exit 1