mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-06 17:12:45 -05:00
apply ameba suggestion
This commit is contained in:
parent
a5d303db00
commit
d2bc3e6a6d
@ -59,7 +59,7 @@ require "./invidious/jobs/*"
|
|||||||
# Invidious.
|
# Invidious.
|
||||||
{% if !flag?(:skip_version_check) %}
|
{% if !flag?(:skip_version_check) %}
|
||||||
{% shard_yml = read_file("shard.yml") %}
|
{% shard_yml = read_file("shard.yml") %}
|
||||||
{% crystal_constraint = shard_yml.split('\n').find { |line| line.starts_with?("crystal:") } %}
|
{% crystal_constraint = shard_yml.split('\n').find(&.starts_with?("crystal:")) %}
|
||||||
{% minimum_version = crystal_constraint.split('"')[1].split(",").first.split(">=").last.strip %}
|
{% minimum_version = crystal_constraint.split('"')[1].split(",").first.split(">=").last.strip %}
|
||||||
{% if compare_versions(Crystal::VERSION, minimum_version) < 0 %}
|
{% if compare_versions(Crystal::VERSION, minimum_version) < 0 %}
|
||||||
{{ raise "Crystal version #{minimum_version} or newer is required to build Invidious. \
|
{{ raise "Crystal version #{minimum_version} or newer is required to build Invidious. \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user