lib/phtools/utils/ruby_version.rb in phtools-0.11.2 vs lib/phtools/utils/ruby_version.rb in phtools-0.14.0

- old
+ new

@@ -1,13 +1,15 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # encoding: UTF-8 + # (c) ANB Andrew Bizyaev -RUBY_VERSION_WANTED = '2.0.0' +RUBY_VERSION_WANTED = '2.4.0' begin fail "Ruby version must be >= #{RUBY_VERSION_WANTED}" if RUBY_VERSION < RUBY_VERSION_WANTED -rescue => e +rescue StandardError => e STDERR.puts e.message exit 1 end