summaryrefslogtreecommitdiff
path: root/ext/strscan/strscan.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'ext/strscan/strscan.gemspec')
-rw-r--r--ext/strscan/strscan.gemspec20
1 files changed, 14 insertions, 6 deletions
diff --git a/ext/strscan/strscan.gemspec b/ext/strscan/strscan.gemspec
index 8a61c7abe6..a51285fa7e 100644
--- a/ext/strscan/strscan.gemspec
+++ b/ext/strscan/strscan.gemspec
@@ -16,19 +16,27 @@ 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"
+ s.extra_rdoc_files = [
+ ".rdoc_options",
+ *Dir.glob("doc/strscan/**/*")
+ ]
s.extensions = %w{ext/strscan/extconf.rb}
end
s.files = files