Andreas Schleifer pushed to branch main at Arch Linux / Packaging / Packages / ruby-cucumber-html-formatter
Commits: 05a5f1e0 by Andreas Schleifer at 2024-07-25T20:20:35+02:00 upgpkg: 21.4.0-1: Ruby 3.2 rebuild - - - - - 3 changed files: - .SRCINFO - PKGBUILD - + ruby-cucumber-html-formatter_fix_tests.patch Changes: ===================================== .SRCINFO ===================================== @@ -1,17 +1,23 @@ pkgbase = ruby-cucumber-html-formatter pkgdesc = HTML formatter for Cucumber - pkgver = 21.0.0 + pkgver = 21.4.0 pkgrel = 1 url = https://github.com/cucumber/html-formatter/tree/main/ruby arch = any license = MIT makedepends = npm + makedepends = ruby-bundler makedepends = ruby-rake makedepends = ruby-rspec makedepends = ruby-cucumber-compatibility-kit + depends = ruby depends = ruby-cucumber-messages options = !emptydirs - source = https://github.com/cucumber/html-formatter/archive/v21.0.0/cucumber-html-formatter-21.0.0.tar.gz - sha256sums = 1a76d87c673a0928450a0e7841d0790936456492b87c1f677b9f0222e9ecb412 + source = https://github.com/cucumber/html-formatter/archive/v21.4.0/cucumber-html-formatter-21.4.0.tar.gz + source = ruby-cucumber-html-formatter_fix_tests.patch + sha512sums = 6b3a9a8169c7bf6b0453edb043bedd98a6795a95e890e911a4e16f2292efc40ec4e2f82b826c6a391056cf4e1f40738922bed8193a93c8a484f51a4d8baacf5a + sha512sums = 9f6092519185d5c89fc6cf5ef284e0e19502c9ebf13b1a6510309d21830379c54c6ca2532867ac5c971dba6b67bb5299cb0a80c712c4882605951e713f5d56f1 + b2sums = 161782c0332ada043713a0f8ff36e5bafb395e19f14b47b0bdc811eb14e0867e440ba922b67bedba722b77a37fc6044648e4968cb57b9925ec261f28f1dab1ce + b2sums = c1a81dbf7d8e272fcbe027d0a868651d9a142fcd90252ee3bf4707b8c8f5971b0f426256c0ed60d264094a057f133dc88ca192d1d81a848e26307fce0659ad00 pkgname = ruby-cucumber-html-formatter ===================================== PKGBUILD ===================================== @@ -1,20 +1,37 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> pkgname=ruby-cucumber-html-formatter -pkgver=21.0.0 +pkgver=21.4.0 pkgrel=1 pkgdesc="HTML formatter for Cucumber" arch=(any) url='https://github.com/cucumber/html-formatter/tree/main/ruby' license=(MIT) -depends=(ruby-cucumber-messages) -makedepends=(npm ruby-rake ruby-rspec ruby-cucumber-compatibility-kit) +depends=( + ruby + ruby-cucumber-messages +) +makedepends=( + npm + ruby-bundler + ruby-rake + ruby-rspec + ruby-cucumber-compatibility-kit +) options=(!emptydirs) -source=(https://github.com/cucumber/html-formatter/archive/v$pkgver/cucumber-html-formatter-$pkgver.tar.gz) -sha256sums=('1a76d87c673a0928450a0e7841d0790936456492b87c1f677b9f0222e9ecb412') +source=( + "https://github.com/cucumber/html-formatter/archive/v$pkgver/cucumber-html-formatter-$pkgver.tar.gz" + "${pkgname}_fix_tests.patch" +) +sha512sums=('6b3a9a8169c7bf6b0453edb043bedd98a6795a95e890e911a4e16f2292efc40ec4e2f82b826c6a391056cf4e1f40738922bed8193a93c8a484f51a4d8baacf5a' + '9f6092519185d5c89fc6cf5ef284e0e19502c9ebf13b1a6510309d21830379c54c6ca2532867ac5c971dba6b67bb5299cb0a80c712c4882605951e713f5d56f1') +b2sums=('161782c0332ada043713a0f8ff36e5bafb395e19f14b47b0bdc811eb14e0867e440ba922b67bedba722b77a37fc6044648e4968cb57b9925ec261f28f1dab1ce' + 'c1a81dbf7d8e272fcbe027d0a868651d9a142fcd90252ee3bf4707b8c8f5971b0f426256c0ed60d264094a057f133dc88ca192d1d81a848e26307fce0659ad00') prepare() { - cd html-formatter-$pkgver/ruby + cd html-formatter-$pkgver + patch --verbose --strip=1 --input="../${pkgname}_fix_tests.patch" + cd ruby sed -r -e 's|~>|>=|g' -e "s/, '< 22.1'//" -i cucumber-html-formatter.gemspec } ===================================== ruby-cucumber-html-formatter_fix_tests.patch ===================================== @@ -0,0 +1,35 @@ +diff --git a/ruby/spec/cucumber/html_formatter/formatter_spec.rb b/ruby/spec/cucumber/html_formatter/formatter_spec.rb +index 473ea92..fb14234 100644 +--- a/ruby/spec/cucumber/html_formatter/formatter_spec.rb ++++ b/ruby/spec/cucumber/html_formatter/formatter_spec.rb +@@ -86,7 +86,7 @@ describe Cucumber::HTMLFormatter::Formatter do + end + + context 'when using the CCK' do +- Cucumber::CompatibilityKit.gherkin_examples.each do |example_name| ++ CCK::Examples.gherkin.each do |example_name| + def run_formatter(messages) + out = StringIO.new + formatter = Cucumber::HTMLFormatter::Formatter.new(out) +@@ -97,18 +97,18 @@ describe Cucumber::HTMLFormatter::Formatter do + describe "'#{example_name}' example" do + subject(:html_report) { run_formatter(File.readlines(example_ndjson)) } + +- let(:example_ndjson) { "#{Cucumber::CompatibilityKit.example_path(example_name)}/#{example_name}.feature.ndjson" } ++ let(:example_ndjson) { "#{CCK::Examples.feature_code_for(example_name)}/#{example_name}.feature.ndjson" } + + it { is_expected.to match(/\A<!DOCTYPE html>\s?<html/) } + it { is_expected.to match(/<\/html>\Z/) } + end + end + +- Cucumber::CompatibilityKit.markdown_examples.each do |example_name| ++ CCK::Examples.markdown.each do |example_name| + describe "'#{example_name}' example" do + subject(:html_report) { run_formatter(File.readlines(example_ndjson)) } + +- let(:example_ndjson) { "#{Cucumber::CompatibilityKit.example_path(example_name)}/#{example_name}.feature.md.ndjson" } ++ let(:example_ndjson) { "#{CCK::Examples.feature_code_for(example_name)}/#{example_name}.feature.md.ndjson" } + + it { is_expected.to match(/\A<!DOCTYPE html>\s?<html/) } + it { is_expected.to match(/<\/html>\Z/) } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/ruby-cucumber-html-formatter/-/commit/05a5f1e032ab9772e097c95bc291a1056c522d42 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/ruby-cucumber-html-formatter/-/commit/05a5f1e032ab9772e097c95bc291a1056c522d42 You're receiving this email because of your account on gitlab.archlinux.org.