[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
30/229: gnu: Add ruby-m.
From: |
guix-commits |
Subject: |
30/229: gnu: Add ruby-m. |
Date: |
Tue, 28 Mar 2023 22:28:57 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 99edfc3995e570977c71826effc047b7ca7bfa36
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Jan 8 12:55:30 2023 -0500
gnu: Add ruby-m.
* gnu/packages/ruby.scm (ruby-m): New variable.
---
gnu/packages/ruby.scm | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 7f72946695..c7c8c5733f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11397,6 +11397,68 @@ own right, and also constitutes a row or column of a
@code{Matrix}.")
(home-page "https://github.com/ruby/matrix")
(license license:bsd-2)))
+(define-public ruby-m
+ (package
+ (name "ruby-m")
+ (version "1.6.1")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/qrush/m")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1aycfc8l1bsln1y300fv75fknn4amjcvc4rm2kd8hb6cqivjq5rg"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'sanitize-dependencies
+ (lambda _
+ (delete-file "Gemfile")
+ (delete-file "Gemfile.lock")
+ ;; Rocco is unmaintained as of 2023/01/08; avoid depending on
+ ;; it.
+ (substitute* "m.gemspec"
+ ;; The rdiscount and rocco dependencies are used for
+ ;; generating the documentation.
+ ((".*rdiscount.*") "")
+ ((".*rocco.*") "")
+ ((".*appraisal.*") "")
+ ((".*coveralls.*") ""))
+ (substitute* "Rakefile"
+ ;; ruby-appraisal is not packaged, and is used to test against
+ ;; various dependencies; circumvent its use.
+ ((".*require 'appraisal'.*") "")
+ ((".*require 'coveralls'.*") "")
+ (("appraisal [:graphic:]+ rake")
+ "rake")
+ (("Coveralls.push!") ""))))
+ (add-before 'replace-git-ls-files 'pre-replace-git-ls-files
+ (lambda _
+ (substitute* "m.gemspec"
+ (("git ls-files -- bin/\\*")
+ "find bin -type f -not -regex '.*\\.gem$' | sort")
+ (("git ls-files -- \\{test,spec,features}/\\*")
+ "find test -type f -not -regex '.*\\.gem$' | sort"))))
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))
+ (when tests?
+ (invoke "rake" "test")))))))
+ (native-inputs (list ruby-activesupport))
+ (propagated-inputs (list ruby-method-source ruby-rake))
+ (synopsis "Ruby test runner that can run tests by line number")
+ (description "@code{m} stands for metal, a better test/unit and
+@code{minitest} test runner that can run tests by line number.")
+ (home-page "https://github.com/qrush/m")
+ (license license:expat)))
+
(define-public ruby-mercenary
(package
(name "ruby-mercenary")
- 27/229: gnu: ruby-rubocop: Update to 1.48.1, (continued)
- 27/229: gnu: ruby-rubocop: Update to 1.48.1, guix-commits, 2023/03/28
- 28/229: gnu: ruby-thor: Update to 1.2.1., guix-commits, 2023/03/28
- 24/229: gnu: Add ruby-rubocop-capybara., guix-commits, 2023/03/28
- 33/229: gnu: ruby-standard: Relax requirements., guix-commits, 2023/03/28
- 35/229: gnu: Add ruby-minitest-retry., guix-commits, 2023/03/28
- 36/229: gnu: Add ruby-dalli., guix-commits, 2023/03/28
- 43/229: gnu: ruby-cucumber-tag-expressions: Update to 5.0.1, fixing build., guix-commits, 2023/03/28
- 46/229: gnu: ruby-cucumber-html-formatter: Update to 20.2.1., guix-commits, 2023/03/28
- 51/229: gnu: ruby-gherkin: Rename to ruby-cucumber-gherkin., guix-commits, 2023/03/28
- 26/229: gnu: Add ruby-rubocop-rake., guix-commits, 2023/03/28
- 30/229: gnu: Add ruby-m.,
guix-commits <=
- 31/229: gnu: Add ruby-language-server-protocol., guix-commits, 2023/03/28
- 49/229: gnu: ruby-cucumber-expressions: Update to 16.1.2., guix-commits, 2023/03/28
- 52/229: gnu: ruby-cucumber: Update to 8.0.0., guix-commits, 2023/03/28
- 59/229: gnu: ruby-activemodel: Update to 7.0.4.3 and enable tests., guix-commits, 2023/03/28
- 63/229: gnu: Add ruby-delayed-job., guix-commits, 2023/03/28
- 53/229: gnu: Remove ruby-cucumber-create-meta., guix-commits, 2023/03/28
- 54/229: gnu: Add ruby-rake-manifest., guix-commits, 2023/03/28
- 57/229: gnu: ruby-railties: Update to 7.0.4.3., guix-commits, 2023/03/28
- 61/229: gnu: Add ruby-simplecov-lcov., guix-commits, 2023/03/28
- 68/229: gnu: Add ruby-xpath., guix-commits, 2023/03/28