forked from sorbet/sorbet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create sorbet-static-and-runtime gem (sorbet#4460)
Signed-off-by: Alexandre Terrasa <[email protected]>
- Loading branch information
Showing
6 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
pushd gems/sorbet-static-and-runtime | ||
|
||
echo "--- setup :ruby:" | ||
eval "$(rbenv init -)" | ||
|
||
runtime_versions=(2.6.3 2.7.2) | ||
|
||
for runtime_version in "${runtime_versions[@]}"; do | ||
rbenv install --skip-existing "$runtime_version" | ||
rbenv shell "$runtime_version" | ||
done | ||
|
||
echo "--- build" | ||
git_commit_count=$(git rev-list --count HEAD) | ||
release_version="0.5.${git_commit_count}" | ||
sed -i.bak "s/0\\.0\\.0/${release_version}/" sorbet-static-and-runtime.gemspec | ||
gem build sorbet-static-and-runtime.gemspec | ||
|
||
popd | ||
|
||
rm -rf _out_ | ||
mkdir -p _out_/gems/ | ||
cp gems/sorbet-static-and-runtime/sorbet-static-and-runtime-*.gem _out_/gems/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# gems/sorbet-static-and-runtime/ | ||
|
||
A simple gem depending on both `sorbet` and `sorbet-runtime` making it easier for Dependabot to update Sorbet. |
18 changes: 18 additions & 0 deletions
18
gems/sorbet-static-and-runtime/sorbet-static-and-runtime.gemspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Gem::Specification.new do |s| | ||
s.name = 'sorbet-static-and-runtime' | ||
s.version = '0.0.0' | ||
s.summary = 'A Typechecker for Ruby' | ||
s.description = 'Sorbet static and runtime in one gem' | ||
s.authors = ['Stripe'] | ||
s.email = '[email protected]' | ||
s.homepage = 'https://sorbet.org' | ||
s.license = 'Apache-2.0' | ||
s.metadata = { | ||
'source_code_uri' => 'https://github.com/sorbet/sorbet' | ||
} | ||
|
||
s.add_dependency 'sorbet', '0.0.0' | ||
s.add_dependency 'sorbet-runtime', '0.0.0' | ||
|
||
s.required_ruby_version = ['>= 2.3.0'] | ||
end |