File: gemspec-do-not-depend-on-git.patch

package info (click to toggle)
ruby-rspec-parameterized-table-syntax 1.0.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 124 kB
  • sloc: ruby: 123; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 975 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: gemspec do not depend on git
Author: Lucas Kanashiro <kanashiro@debian.org>
Forwarded: not-needed
Last-Update: 2023-11-17

--- a/rspec-parameterized-table_syntax.gemspec
+++ b/rspec-parameterized-table_syntax.gemspec
@@ -21,13 +21,7 @@
   spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
   spec.metadata["rubygems_mfa_required"] = "true"
 
-  # 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.
-  spec.files = Dir.chdir(__dir__) do
-    `git ls-files -z`.split("\x0").reject do |f|
-      (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
-    end
-  end
+  spec.files= Dir["lib/*"] + ["CHANGELOG.md", "Gemfile", "LICENSE.txt", "README.md", "Rakefile"]
   spec.bindir = "exe"
   spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
   spec.require_paths = ["lib"]