Skip to content

Commit 61c49af

Browse files
committed
Removed needless files from Gem::Specification#files
1 parent 5e1a9b0 commit 61c49af

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

drb.gemspec

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,24 @@ Gem::Specification.new do |spec|
1919
spec.metadata["homepage_uri"] = spec.homepage
2020
spec.metadata["source_code_uri"] = spec.homepage
2121

22-
# Specify which files should be added to the gem when it is released.
23-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
25-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26-
end
22+
spec.files = %w[
23+
LICENSE.txt
24+
drb.gemspec
25+
lib/drb.rb
26+
lib/drb/acl.rb
27+
lib/drb/drb.rb
28+
lib/drb/eq.rb
29+
lib/drb/extserv.rb
30+
lib/drb/extservm.rb
31+
lib/drb/gw.rb
32+
lib/drb/invokemethod.rb
33+
lib/drb/observer.rb
34+
lib/drb/ssl.rb
35+
lib/drb/timeridconv.rb
36+
lib/drb/unix.rb
37+
lib/drb/version.rb
38+
lib/drb/weakidconv.rb
39+
]
2740
spec.bindir = "exe"
2841
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2942
spec.require_paths = ["lib"]

0 commit comments

Comments
 (0)