[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
115/229: gnu: Add ruby-fiber-local.
From: |
guix-commits |
Subject: |
115/229: gnu: Add ruby-fiber-local. |
Date: |
Tue, 28 Mar 2023 22:29:10 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 3049564bc3107648841d69ea156c8f27e000ae77
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Jan 9 11:01:53 2023 -0500
gnu: Add ruby-fiber-local.
* gnu/packages/ruby.scm (ruby-fiber-local): New variable.
---
gnu/packages/ruby.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index adf96dffe3..6d67d47344 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3718,6 +3718,43 @@ interface for Ruby programs.")
;; Some parts are covered by the Ruby license, see file headers.
(license (list license:expat license:ruby))))
+(define-public ruby-fiber-local
+ (package
+ (name "ruby-fiber-local")
+ (version "1.0.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/socketry/fiber-local")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0pp5b81h0lysdnphgprkixh1az0fkrgir5sbcp0mm8arxf3f8m90"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'sanitize-dependencies
+ (lambda _
+ ;; This pulls in extraneous maintenance dependencies.
+ (delete-file "gems.rb")
+ ;; Depending on ruby-covered would introduce a dependency
+ ;; cycle with it.
+ (substitute* '("fiber-local.gemspec" "spec/spec_helper.rb")
+ ((".*covered.*") ""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (native-inputs (list ruby-rspec))
+ (synopsis "Ruby module to simplify fiber-local state management")
+ (description "This package provides a class-level mixin to make managing
+fiber-local state easy. It provides easy access to a fiber-local state from a
+fiber, and defaults to a shared thread-local state.")
+ (home-page "https://github.com/socketry/fiber-local")
+ (license license:expat)))
+
(define-public ruby-net-http-persistent
(package
(name "ruby-net-http-persistent")
- 97/229: gnu: Add ruby-faraday-net-http., (continued)
- 97/229: gnu: Add ruby-faraday-net-http., guix-commits, 2023/03/28
- 99/229: gnu: ruby-octokit: Update to 6.1.0., guix-commits, 2023/03/28
- 101/229: gnu: ruby-sawyer: Update to 0.9.2., guix-commits, 2023/03/28
- 102/229: gnu: ruby-pry-byebug: Avoid depending on ruby-chandler., guix-commits, 2023/03/28
- 107/229: gnu: Add ruby-faraday-multipart., guix-commits, 2023/03/28
- 109/229: gnu: Add ruby-fileutils., guix-commits, 2023/03/28
- 111/229: gnu: ruby-bandwidth-iris: Fix indentation., guix-commits, 2023/03/28
- 112/229: gnu: ruby-bandwidth-iris: Update to 7.0.0., guix-commits, 2023/03/28
- 113/229: gnu: ruby-octokit: Enable tests., guix-commits, 2023/03/28
- 114/229: gnu: Add ruby-mapping., guix-commits, 2023/03/28
- 115/229: gnu: Add ruby-fiber-local.,
guix-commits <=
- 116/229: gnu: Add ruby-console., guix-commits, 2023/03/28
- 117/229: gnu: Add ruby-ruby-memcheck., guix-commits, 2023/03/28
- 118/229: gnu: Add ruby-msgpack., guix-commits, 2023/03/28
- 119/229: gnu: Add ruby-covered., guix-commits, 2023/03/28
- 120/229: gnu: Add ruby-samovar., guix-commits, 2023/03/28
- 122/229: gnu: Add ruby-reline., guix-commits, 2023/03/28
- 123/229: gnu: Add ruby-irb., guix-commits, 2023/03/28
- 124/229: gnu: Add ruby-debug., guix-commits, 2023/03/28
- 127/229: gnu: Add ruby-bake-test., guix-commits, 2023/03/28
- 131/229: gnu: Add ruby-localhost., guix-commits, 2023/03/28