[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
200/229: gnu: Add ruby-ruby-version.
From: |
guix-commits |
Subject: |
200/229: gnu: Add ruby-ruby-version. |
Date: |
Tue, 28 Mar 2023 22:29:23 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 7f99aec065b520485a9964d16e6bdfc32dc73cb1
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Mar 16 08:50:26 2023 -0400
gnu: Add ruby-ruby-version.
* gnu/packages/ruby.scm (ruby-ruby-version): New variable.
---
gnu/packages/ruby.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 1e8778b328..aa15f7278e 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6343,6 +6343,46 @@ in pure Ruby. It outputs S-expressions which can be
manipulated and converted
back to Ruby via the @code{ruby2ruby} library.")
(license license:expat)))
+(define-public ruby-ruby-version
+ (package
+ (name "ruby-ruby-version")
+ (version "1.0.2")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "ruby_version" version))
+ (sha256
+ (base32
+ "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'delete-gem-files
+ ;; There are some pre-built files in the source, and
+ ;; registered in the .gemspec (see:
+ ;; https://github.com/janlelis/ruby_version/issues/1).
+ (lambda _
+ (delete-file-recursively "pkg")
+ (substitute* "ruby_version.gemspec"
+ (("\"pkg/ruby_version-1.0.0.gem\".freeze, ")
+ "")
+ (("\"pkg/ruby_version-1.0.1.gem\".freeze, ")
+ ""))))
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (delete-file "Gemfile.lock")
+ (substitute* "ruby_version.gemspec"
+ (("\"Gemfile.lock\".freeze, ") "")
+ ;; Allow a newers versions of development dependencies.
+ (("~>") ">=")))))))
+ (native-inputs (list ruby-rdoc ruby-rubygems-tasks ruby-rspec))
+ (synopsis "Ruby class for checking the Ruby version")
+ (description "This package provides a @code{RubyVersion} class which
+offers a convenient Domain Specific Language (DSL) for checking for the right
+Ruby version.")
+ (home-page "https://github.com/janlelis/ruby_version")
+ (license license:expat)))
+
(define-public ruby-prawn-manual-builder
(package
(name "ruby-prawn-manual-builder")
- 209/229: gnu: ruby-cuke-modeler: Update to 3.19.0 and enable tests., (continued)
- 209/229: gnu: ruby-cuke-modeler: Update to 3.19.0 and enable tests., guix-commits, 2023/03/28
- 191/229: gnu: ruby-shoulda-matchers: Update to 5.3.0., guix-commits, 2023/03/28
- 194/229: gnu: ruby-shoulda: Honor #:tests?., guix-commits, 2023/03/28
- 205/229: gnu: Add ruby-snaky-hash., guix-commits, 2023/03/28
- 206/229: gnu: ruby-oauth2: Update to 2.0.9 and enable tests., guix-commits, 2023/03/28
- 163/229: gnu: ruby-globalid: Move to (gnu packages rails)., guix-commits, 2023/03/28
- 175/229: gnu: Add perl-app-cpanminus., guix-commits, 2023/03/28
- 180/229: gnu: ruby-braintree: Update to 4.10.0., guix-commits, 2023/03/28
- 184/229: gnu: ruby-prawn-svg: Fix build., guix-commits, 2023/03/28
- 188/229: gnu: ruby-liquid: Update to 4.0.3., guix-commits, 2023/03/28
- 200/229: gnu: Add ruby-ruby-version.,
guix-commits <=
- 201/229: gnu: Add ruby-rspec-pending-for., guix-commits, 2023/03/28
- 219/229: gnu: Add ruby-spy., guix-commits, 2023/03/28
- 220/229: gnu: Add ruby-liquid-c-bootstrap., guix-commits, 2023/03/28
- 226/229: gnu: ruby-rack-protection: Update to 3.0.5., guix-commits, 2023/03/28
- 221/229: gnu: ruby-liquid: Update to 5.4.0 and enable tests., guix-commits, 2023/03/28
- 222/229: gnu: Add ruby-liquid-c., guix-commits, 2023/03/28
- 223/229: gnu: ruby-net-scp: Update to 4.0.0., guix-commits, 2023/03/28
- 176/229: gnu: ruby-minitest: Update home page URL., guix-commits, 2023/03/28
- 213/229: gnu: Add ruby-ammeter-bootstrap., guix-commits, 2023/03/28
- 166/229: gnu: Add ruby-propshaft., guix-commits, 2023/03/28