Skip to content

Commit 3aace02

Browse files
committed
🎨 Better gem_version loading
1 parent d06ec10 commit 3aace02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

auth-sanitizer.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# kettle-jem:unfreeze
88

99
gem_version =
10-
if RUBY_VERSION >= "3.1" # rubocop:disable Gemspec/RubyVersionGlobalsUsage
10+
if Gem.ruby_version >= Gem::Version.new("3.1")
1111
# Loading Version into an anonymous module allows version.rb to get code coverage from SimpleCov!
1212
# See: https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-2630782358
1313
# See: https://github.com/panorama-ed/memo_wise/pull/397

0 commit comments

Comments
 (0)