We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9daad7 commit fba3ee3Copy full SHA for fba3ee3
logger.gemspec
@@ -15,7 +15,11 @@ Gem::Specification.new do |spec|
15
spec.homepage = "https://github.com/ruby/logger"
16
spec.licenses = ["Ruby", "BSD-2-Clause"]
17
18
- spec.files = Dir.glob("lib/**/*.rb") + ["logger.gemspec", "BSDL", "COPYING"]
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21
+ `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
spec.require_paths = ["lib"]
24
25
spec.required_ruby_version = ">= 2.5.0"
0 commit comments