From 2c394117b5a92aef376620b6863de0d92bc29593 Mon Sep 17 00:00:00 2001 From: Jaroslav Prokop Date: Sep 01 2022 07:33:47 +0000 Subject: Ruby: update instructions for checking out excluded tests --- diff --git a/guidelines/modules/ROOT/pages/Ruby.adoc b/guidelines/modules/ROOT/pages/Ruby.adoc index 98b9750..8ec8dc0 100644 --- a/guidelines/modules/ROOT/pages/Ruby.adoc +++ b/guidelines/modules/ROOT/pages/Ruby.adoc @@ -532,9 +532,8 @@ rspec -Ilib spec Sometimes you have to get the tests separately from upstream's gem package. As an example lets suppose you're packaging `rubygem-delorean`, version 1.2.0, which is hosted on Github. Tests are not included in the Gem itself, so you need to get them and adjust the specfile accordingly: .... -# git clone https://github.com/bebanjo/delorean.git && cd delorean -# git checkout v1.2.0 -# tar -czf rubygem-delorean-1.2.0-specs.tgz spec/ +# git clone --no-checkout https://github.com/bebanjo/delorean.git +# git -C delorean archive -v -o rubygem-delorean-1.2.0-specs.tgz v1.2.0 spec Source1: %{name}-%{version}-specs.tgz # ...