lib/generators/dockerfile_generator.rb in dockerfile-rails-1.0.12 vs lib/generators/dockerfile_generator.rb in dockerfile-rails-1.0.13
- old
+ new
@@ -258,14 +258,14 @@
# module build process depends on Python, and debian changed
# how python is installed with the bullseye release. Below
# is based on debian release included with the Ruby images on
# Dockerhub.
- case Gem.ruby_version
+ case RUBY_VERSION
when /^2.7/
- bullseye = ruby_version >= "2.7.4"
+ bullseye = RUBY_VERSION >= "2.7.4"
when /^3.0/
- bullseye = ruby_version >= "3.0.2"
+ bullseye = RUBY_VERSION >= "3.0.2"
else
bullseye = true
end
if bullseye