Skip to content

Commit bc487b8

Browse files
committed
Gem::Platform::JAVA is only provided under the bundler
1 parent 2376478 commit bc487b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubygems/basic_specification.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def contains_requirable_file?(file)
7575
if platform == Gem::Platform::RUBY || Gem::Platform.local === platform
7676
# RubyGems warns gem specification of C extensions. But JRuby couldn't
7777
# rebuild with `gem pristine` command. So, we skip the warning.
78-
if RUBY_PLATFORM != Gem::Platform::JAVA
78+
if RUBY_PLATFORM != "java" # JRuby
7979
warn "Ignoring #{full_name} because its extensions are not built. " \
8080
"Try: gem pristine #{name} --version #{version}"
8181
end

0 commit comments

Comments
 (0)