Skip to content

Commit b32a435

Browse files
authored
Switched from git ls-files to Ruby's Dir.glob for defining spec.file (#84)
1 parent 4e24a52 commit b32a435

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

ruby_llm.gemspec

+2-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,8 @@ Gem::Specification.new do |spec|
2525

2626
spec.metadata['rubygems_mfa_required'] = 'true'
2727

28-
# Specify which files should be added to the gem when it is released.
29-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
31-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|docs)/}) }
32-
end
33-
spec.bindir = 'exe'
34-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28+
# Use Dir.glob to list all files within the lib directory
29+
spec.files = Dir.glob('lib/**/*') + ['README.md', 'LICENSE']
3530
spec.require_paths = ['lib']
3631

3732
# Runtime dependencies

0 commit comments

Comments
 (0)