aports/main/ruby-power_assert/gemspec.patch
Jakub Jirutka 5261dd4178 main/ruby-power_assert: new aport
This gem was bundled in main/ruby and it's on the list of the "Bundled gems"
(https://stdgems.org/#bundled-gems-ruby-302) for Ruby 3.0.2. I'm moving it
to a separate aport to provide a correct pkgver - to avoid confusion and
future complications if the upstream decide to remove it from the
"Bundled gems" (as they did for some other gems with 3.0.0 release).

When the gem was bundled its pkgver was set to that of the ruby package,
now its pkgver is set to its upstream version which is lower so users
upgrading need to pass `--available` to the `apk upgrade` command.
2021-10-18 18:44:42 +02:00

24 lines
1006 B
Diff

--- a/power_assert.gemspec
+++ b/power_assert.gemspec
@@ -12,11 +12,7 @@
s.summary = "Power Assert for Ruby"
s.description = "Power Assert for Ruby. Power Assert shows each value of variables and method calls in the expression. It is useful for testing, providing which value wasn't correct when the condition is not satisfied."
- s.files = `git ls-files -z`.split("\x0").reject do |f|
- f.match(%r{^(test|spec|features|benchmark)/})
- end
- s.bindir = 'exe'
- s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
+ s.files = Dir['lib/**/*.rb']
s.require_paths = ['lib']
s.add_development_dependency 'test-unit'
s.add_development_dependency 'rake'
@@ -25,7 +21,6 @@
s.add_development_dependency 'pry'
s.add_development_dependency 'byebug'
s.add_development_dependency 'benchmark-ips'
- s.extra_rdoc_files = ['README.rdoc']
s.rdoc_options = ['--main', 'README.rdoc']
s.licenses = ['2-clause BSDL', "Ruby's"]
end