diff options
Diffstat (limited to 'ext/strscan/strscan.gemspec')
| -rw-r--r-- | ext/strscan/strscan.gemspec | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ext/strscan/strscan.gemspec b/ext/strscan/strscan.gemspec index 925edcd2d3..a51285fa7e 100644 --- a/ext/strscan/strscan.gemspec +++ b/ext/strscan/strscan.gemspec @@ -16,17 +16,20 @@ Gem::Specification.new do |s| s.summary = "Provides lexical scanning operations on a String." s.description = "Provides lexical scanning operations on a String." - files = [ - "COPYING", - "LICENSE.txt", + files = %w[ + COPYING + LICENSE.txt + lib/strscan.rb + lib/strscan/strscan.rb + lib/strscan/truffleruby.rb ] + + s.require_paths = %w{lib} + if RUBY_ENGINE == "jruby" - s.require_paths = %w{ext/jruby/lib lib} - files << "ext/jruby/lib/strscan.rb" files << "lib/strscan.jar" s.platform = "java" else - s.require_paths = %w{lib} files << "ext/strscan/extconf.rb" files << "ext/strscan/strscan.c" s.rdoc_options << "-idoc" |
