--- a/jekyll.gemspec
+++ b/jekyll.gemspec
@@ -13,7 +13,7 @@
   s.summary       = "A simple, blog aware, static site generator."
   s.description   = "Jekyll is a simple, blog aware, static site generator."
 
-  all_files       = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
+  all_files       = Dir['exe/*', 'lib/**/*']
   s.files         = all_files.grep(%r!^(exe|lib|rubocop)/|^.rubocop.yml$!)
   s.executables   = all_files.grep(%r!^exe/!) { |f| File.basename(f) }
   s.bindir        = "exe"
@@ -27,7 +27,6 @@
   }
 
   s.rdoc_options     = ["--charset=UTF-8"]
-  s.extra_rdoc_files = %w(README.markdown LICENSE)
 
   s.required_ruby_version     = ">= 2.4.0"
   s.required_rubygems_version = ">= 2.7.0"
