utils/ruby.sh: break down long ruby code in test-ruby

This commit is contained in:
Maxim Belkin 2020-05-15 14:20:03 -05:00
parent cbc266bf0e
commit d21ecffae6
No known key found for this signature in database
GPG Key ID: AC71560D4C5F2338

View File

@ -1,6 +1,7 @@
test-ruby () {
"$1" --enable-frozen-string-literal --disable=gems,did_you_mean,rubyopt -rrubygems -e \
"puts Gem::Version.new(RUBY_VERSION.to_s.dup).to_s.split('.').first(2) == Gem::Version.new('$required_ruby_version').to_s.split('.').first(2)"
"puts Gem::Version.new(RUBY_VERSION.to_s.dup).to_s.split('.').first(2) == \
Gem::Version.new('$required_ruby_version').to_s.split('.').first(2)"
}
setup-ruby-path() {