From 9bae9896399dbf65307060e9b3259381f93531fe Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Tue, 3 May 2022 17:51:42 +0200 Subject: [PATCH] Simplify condition in strscan.gemspec --- strscan.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/strscan.gemspec b/strscan.gemspec index d59e645695..16731fcdbe 100644 --- a/strscan.gemspec +++ b/strscan.gemspec @@ -16,8 +16,7 @@ Gem::Specification.new do |s| s.summary = "Provides lexical scanning operations on a String." s.description = "Provides lexical scanning operations on a String." - jruby = true if Gem::Platform.new('java') =~ s.platform or RUBY_ENGINE == 'jruby' - if jruby + if RUBY_ENGINE == 'jruby' s.require_paths = %w{lib/jruby lib} s.files = %w{lib/strscan.jar lib/jruby/strscan.rb} s.platform = "java"