1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Don't use git in the gemspec file
Author: Simon Quigley <tsimonq2@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-03-03
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/snmp.gemspec
+++ b/snmp.gemspec
@@ -22,12 +22,7 @@ Gem::Specification.new do |spec|
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
gemspec = File.basename(__FILE__)
- spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
- ls.readlines("\x0", chomp: true).reject do |f|
- (f == gemspec) ||
- f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile interop ext])
- end
- end
+ spec.files = Dir.glob("**/*")
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
|