[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/28: gnu: Add ruby-excon.
From: |
guix-commits |
Subject: |
02/28: gnu: Add ruby-excon. |
Date: |
Sat, 24 Feb 2024 10:51:08 -0500 (EST) |
htgoebel pushed a commit to branch master
in repository guix.
commit 8bd01bb2d1a772f5975b2c666f54dae1b634d573
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
AuthorDate: Sun Jul 23 18:38:05 2023 +0200
gnu: Add ruby-excon.
* gnu/packages/ruby.scm (ruby-excon): New variable.
---
gnu/packages/ruby.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 34ebeebe7e..7b3312271d 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13813,6 +13813,54 @@ GFM dialect to HTML.")
parser for writing http servers, clients and proxies.")
(license license:expat)))
+(define-public ruby-excon
+ (package
+ (name "ruby-excon")
+ (version "0.109.0")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/excon/excon")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "199niqbpzj70k3n6ybg4vbcw3qm76kwic4nl9747l1n0v49aaj24"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:tests? #f ;; some tests require DNS
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "excon.gemspec"
+ (("`git ls-files -- data/. lib/.`")
+ "`find data lib -type f`"))))
+ (add-before 'check 'disable-server-spec-checks
+ (lambda _ ;; TODO: Remove this if ruby-unicorn is available.
+ ;; Some of the tests in this file require ruby-unicorn, which is
+ ;; not yet packaged for guix and would pull in a lot of other
+ ;; dependencies.
+ (delete-file "spec/excon/test/server_spec.rb"))))))
+ (native-inputs
+ (list
+ ruby-activesupport
+ ruby-eventmachine
+ ruby-json
+ ruby-open4
+ ruby-puma
+ ruby-rspec
+ ruby-shindo
+ ruby-sinatra
+ ruby-webrick))
+ (synopsis "Usable, fast, simple Ruby HTTP 1.1")
+ (description "Excon was designed to be simple, fast and performant. It
+works great as a general HTTP(s) client and is particularly well suited to
+usage in API clients.")
+ (home-page "https://github.com/excon/excon")
+ (license license:expat)))
+
(define-public ruby-em-websocket
(package
(name "ruby-em-websocket")
- branch master updated (de24aaf13b -> f861793141), guix-commits, 2024/02/24
- 02/28: gnu: Add ruby-excon.,
guix-commits <=
- 01/28: gnu: Add ruby-test-unit-ruby-core., guix-commits, 2024/02/24
- 03/28: gnu: Add ruby-ipaddr., guix-commits, 2024/02/24
- 04/28: gnu: Add ruby-net-ftp., guix-commits, 2024/02/24
- 05/28: gnu: Add ruby-fake-ftp., guix-commits, 2024/02/24
- 07/28: gnu: Add ruby-net-telnet., guix-commits, 2024/02/24
- 09/28: gnu: Add ruby-stringio., guix-commits, 2024/02/24
- 13/28: gnu: Add ruby-specinfra., guix-commits, 2024/02/24
- 14/28: gnu: Add ruby-serverspec., guix-commits, 2024/02/24
- 15/28: gnu: Add ruby-time., guix-commits, 2024/02/24
- 20/28: gnu: Add ruby-vagrant-spec., guix-commits, 2024/02/24