guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 7668ece9caf457b471bd83772752e32d3e28b429
Author: gemmaro <[email protected]>
AuthorDate: Thu Sep 3 18:06:09 2026 +0900
gnu: ruby-logger: Enable tests.
* gnu/packages/ruby-xyz.scm (ruby-logger): Enable tests.
[source]: Use Git repository.
[arguments]<#:phases>{replace-git-ls-files}: Replace it.
<#:tests?>: Remove it.
[native-inputs]: Remove bundler and ruby-rake.
Signed-off-by: Carlo Zancanaro <[email protected]>
---
gnu/packages/ruby-xyz.scm | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index ad088bf0248..723e23a47ce 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -1377,15 +1377,26 @@ configuration, and more.")
(version "1.7.0")
(source
(origin
- (method url-fetch)
- (uri (rubygems-uri "logger" version))
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby/logger")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "00q2zznygpbls8asz5knjvvj2brr3ghmqxgr83xnrdj4rk3xwvhr"))))
+ (base32 "18mcqih97jnwyv8w8kv67rcnpa3pzh7iy0xgwgmvd8i3a0cwxzpf"))))
(build-system ruby-build-system)
- (native-inputs (list bundler ruby-rake ruby-test-unit
- ruby-test-unit-ruby-core))
+ (native-inputs (list ruby-test-unit ruby-test-unit-ruby-core))
(synopsis "Simple logging utility")
- (arguments (list #:tests? #f)) ; no tests
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "logger.gemspec"
+ (("spec\\.files = .*")
+ "spec.files = `find lib BSDL COPYING README.md -type f \
+| sort`.split\n")))))))
(description
"Logger is a simple but powerful logging utility to output
messages in a Ruby program.