Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
tla-plus-toolbox-nightly.rb: replace scan.flatten.first with match (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorgalvao committed Oct 5, 2020
1 parent 4a2fa1d commit 631e876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Casks/tla-plus-toolbox-nightly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
url do
require "open-uri"
base_url = "https://tla.msr-inria.inria.fr/tlatoolbox/ci/products/"
file = URI(base_url).open.read.scan(/href="([^"]+-macosx.cocoa.x86_64.zip)"/).flatten.first
file = URI(base_url).read[/href="([^"]+-macosx.cocoa.x86_64.zip)"/, 1]
"#{base_url}#{file}"
end
name "TLA+ Toolbox"
Expand Down

0 comments on commit 631e876

Please sign in to comment.