Skip to content

Commit 3225f69

Browse files
authored
Simplify condition in strscan.gemspec (#36)
1 parent 4cdb3ee commit 3225f69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

strscan.gemspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Gem::Specification.new do |s|
1616
s.summary = "Provides lexical scanning operations on a String."
1717
s.description = "Provides lexical scanning operations on a String."
1818

19-
jruby = true if Gem::Platform.new('java') =~ s.platform or RUBY_ENGINE == 'jruby'
20-
if jruby
19+
if RUBY_ENGINE == 'jruby'
2120
s.require_paths = %w{lib/jruby lib}
2221
s.files = %w{lib/strscan.jar lib/jruby/strscan.rb}
2322
s.platform = "java"

0 commit comments

Comments
 (0)