From 0ae1855f7c53c19f571fff1b1cf57c36c610c89d Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Tue, 13 Aug 2024 10:09:19 -0400 Subject: [PATCH 1/3] Add how to handle Ruby default gems to README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 18210aa68f..1f97c8d089 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,12 @@ depend on each other, `mockchain` can be very helpful. To do this use Obal `mock copr-cli delete-package --name rubygem-example @theforeman/$PROJECT-nightly-staging +## Handle gems that are default Ruby gems + +Look at https://stdgems.org/ and see if a gem is listed as a default gem. The website https://docs.ruby-lang.org/en/master/NEWS_md.html can also help in determining what will or is default and for what version of Ruby. + +Use`%gemspec_remove_dep ` to drop the gem from the gemspec and manually add a dependency on ruby-default-gems as a rich dependency: `(rubygem() or ruby-default-gems < 3.4)`. + ## How does this repo work? This repo contains a directory per source package and configuration in `package_manifest.yaml`. From 2c255c2e5f8c9a2825a09c4b25c8c46b4ad16b5a Mon Sep 17 00:00:00 2001 From: Eric Helms Date: Tue, 13 Aug 2024 13:59:44 -0400 Subject: [PATCH 2/3] Update README.md Co-authored-by: Ewoud Kohl van Wijngaarden --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f97c8d089..72056012ac 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ depend on each other, `mockchain` can be very helpful. To do this use Obal `mock ## Handle gems that are default Ruby gems -Look at https://stdgems.org/ and see if a gem is listed as a default gem. The website https://docs.ruby-lang.org/en/master/NEWS_md.html can also help in determining what will or is default and for what version of Ruby. +Look at https://stdgems.org/ and see if a gem is listed as a default gem. The [development release notes](https://docs.ruby-lang.org/en/master/NEWS_md.html) can also help in determining what will or is default and for the next version of Ruby. Use`%gemspec_remove_dep ` to drop the gem from the gemspec and manually add a dependency on ruby-default-gems as a rich dependency: `(rubygem() or ruby-default-gems < 3.4)`. From 08b37a9fb90f17a2dbdc8a4517198f8c179ad42b Mon Sep 17 00:00:00 2001 From: Eric Helms Date: Tue, 13 Aug 2024 14:00:06 -0400 Subject: [PATCH 3/3] Update README.md Co-authored-by: Ewoud Kohl van Wijngaarden --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 72056012ac..4c69c927f6 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ depend on each other, `mockchain` can be very helpful. To do this use Obal `mock Look at https://stdgems.org/ and see if a gem is listed as a default gem. The [development release notes](https://docs.ruby-lang.org/en/master/NEWS_md.html) can also help in determining what will or is default and for the next version of Ruby. -Use`%gemspec_remove_dep ` to drop the gem from the gemspec and manually add a dependency on ruby-default-gems as a rich dependency: `(rubygem() or ruby-default-gems < 3.4)`. +Use `%gemspec_remove_dep -g ` to drop the gem from the gemspec and manually add a dependency on ruby-default-gems as a rich dependency: `(rubygem() or ruby-default-gems < 3.4)`. ## How does this repo work?