[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
130/229: gnu: Add ruby-timers.
From: |
guix-commits |
Subject: |
130/229: gnu: Add ruby-timers. |
Date: |
Tue, 28 Mar 2023 22:29:13 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 0baa92e9e4a08c053f1c79da503a1bfdecc4e087
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Mar 8 22:27:16 2023 -0500
gnu: Add ruby-timers.
* gnu/packages/ruby.scm (ruby-timers): New variable.
---
gnu/packages/ruby.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 40b82b8a43..3ff7a773c3 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6370,6 +6370,52 @@ framework that leverages the expressive @code{Gherkin}
language to help you
define executable specifications of your code.")
(license license:expat)))
+(define-public ruby-timers
+ (package
+ (name "ruby-timers")
+ (version "4.3.5")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/socketry/timers")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1vvahlhk6i1xks1bsha6s64pjjxhagmzvvf1q9h6z3lpcba43rpx"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'prune-gems.rb
+ (lambda _
+ (substitute* "gems.rb"
+ ;; These are only required for maintenance.
+ ((".*gem \"bake-modernize\".*") "")
+ ((".*gem \"bake-gem\".*") "")
+ ;; Not actually required by the tests.
+ ((".*gem 'benchmark-ips'.*") "")
+ ((".*gem \"ruby-prof\".*") ""))))
+ (add-before 'build 'remove-missing-signing-key
+ (lambda _
+ ;; Otherwise, the build fails with ENOENT.
+ (substitute* "timers.gemspec"
+ ((".*spec.signing_key.*") ""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "bake" "test")))))))
+ (native-inputs
+ (list ruby-covered
+ ruby-bake-test
+ ruby-bake-test-external
+ ruby-sus))
+ (synopsis "Collection of Ruby timer classes")
+ (description "Timers offers a collections of one-shot and periodic timers,
+intended for use with event loops such as async.")
+ (home-page "https://github.com/socketry/timers")
+ (license license:expat)))
+
(define-public ruby-tilt
(package
(name "ruby-tilt")
- 95/229: gnu: Add ruby-rdiscount., (continued)
- 95/229: gnu: Add ruby-rdiscount., guix-commits, 2023/03/28
- 98/229: gnu: ruby-faraday: Update to 2.7.4 and enable test suite., guix-commits, 2023/03/28
- 100/229: gnu: ruby-faraday: Propagate ruby-faraday-net-http., guix-commits, 2023/03/28
- 104/229: gnu: ruby-byebug: Do not depend on ruby-chandler., guix-commits, 2023/03/28
- 106/229: gnu: Add ruby-multipart-parser., guix-commits, 2023/03/28
- 110/229: gnu: ruby-faraday-middleware: Add a deprecation comment and re-indent., guix-commits, 2023/03/28
- 121/229: gnu: Add ruby-io-console., guix-commits, 2023/03/28
- 125/229: gnu: Add ruby-rspec-debug., guix-commits, 2023/03/28
- 128/229: gnu: Add ruby-bake-test-external., guix-commits, 2023/03/28
- 129/229: gnu: Add ruby-sus., guix-commits, 2023/03/28
- 130/229: gnu: Add ruby-timers.,
guix-commits <=
- 137/229: gnu: ruby-actionpack: Update to 7.0.4.3 and enable test suite., guix-commits, 2023/03/28
- 138/229: gnu: Add ruby-event-emitter., guix-commits, 2023/03/28
- 140/229: gnu: Add ruby-websocket-eventmachine-base., guix-commits, 2023/03/28
- 143/229: gnu: ruby-actioncable: Update to 7.0.4.3 and enable tests., guix-commits, 2023/03/28
- 146/229: gnu: ruby-marcel: Relocate to (gnu packages rails)., guix-commits, 2023/03/28
- 147/229: gnu: ruby-marcel: Enable tests., guix-commits, 2023/03/28
- 150/229: gnu: Add ruby-timeout., guix-commits, 2023/03/28
- 152/229: gnu: Add ruby-date., guix-commits, 2023/03/28
- 157/229: gnu: ruby-actionmailer: Update to 7.0.4.3., guix-commits, 2023/03/28
- 58/229: gnu: Add ruby-bcrypt., guix-commits, 2023/03/28