Skip to content

Commit b1c3ce7

Browse files
committed
add a warning message if ruby 2.7 is used
1 parent c3cf388 commit b1c3ce7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bin/deploy-entitlements

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ require "ruby_version_check"
66

77
# Note that contracts.ruby has two specific ruby-version specific libraries, which we have vendored into lib/
88
if RubyVersionCheck.ruby_version2?
9+
puts "WARNING: Ruby 2.x is deprecated and will be removed in a future release. Please upgrade to Ruby 3.x."
910
$LOAD_PATH.unshift(File.expand_path(File.join(__dir__, "../lib/contracts-ruby2/lib")))
1011
else
1112
$LOAD_PATH.unshift(File.expand_path(File.join(__dir__, "../lib/contracts-ruby3/lib")))

0 commit comments

Comments
 (0)