Skip to content

Commit

Permalink
Extract minimum Sorbet version from gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock committed Nov 8, 2022
1 parent f847dd6 commit 5ab39f9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gemfiles/Gemfile-sorbet-minimum
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# frozen_string_literal: true

gem("sorbet-static-and-runtime", "0.5.9204")
# Extract minimum supported version from gemspec
minimum_sorbet_version = File.read("tapioca.gemspec")[
# spec.add_dependency("sorbet-static-and-runtime", ">= 1.2.3456")
# ^^^^^^^^
/"sorbet-static-and-runtime", ">= ([^"]+)"/,
1,
]

gem("sorbet-static-and-runtime", minimum_sorbet_version)

eval_gemfile "../Gemfile"

0 comments on commit 5ab39f9

Please sign in to comment.