[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62196] [PATCH 030/223] gnu: Add ruby-m.
From: |
Maxim Cournoyer |
Subject: |
[bug#62196] [PATCH 030/223] gnu: Add ruby-m. |
Date: |
Mon, 20 Mar 2023 13:13:22 -0400 |
* 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 ceeda5647d..380783721b 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11397,6 +11397,68 @@ (define-public ruby-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")
--
2.39.1
- [bug#62196] [PATCH 013/223] gnu: ruby-rspec: Update to 3.12.0., (continued)
- [bug#62196] [PATCH 013/223] gnu: ruby-rspec: Update to 3.12.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 022/223] gnu: ruby-simplecov-html: Update to 0.12.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 016/223] gnu: ruby-given-core: Update to 3.8.2., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 021/223] gnu: Add ruby-simplecov-json-formatter., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 020/223] gnu: ruby-rubocop-performance: Update to 1.16.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 018/223] gnu: ruby-rspec-expectations: Update to 3.12.2., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 035/223] gnu: Add ruby-minitest-retry., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 036/223] gnu: Add ruby-dalli., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 015/223] gnu: ruby-rspec-support: Update to 3.12.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 014/223] gnu: ruby-rspec-core: Update to 3.12.1., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 030/223] gnu: Add ruby-m.,
Maxim Cournoyer <=
- [bug#62196] [PATCH 033/223] gnu: ruby-standard: Relax requirements., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 037/223] gnu: Add ruby-hiredis., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 040/223] gnu: Add ruby-cucumber-compatibility-kit., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 042/223] gnu: Remove ruby-protobuf-cucumber., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 082/223] gnu: ruby-sinatra: Update to 3.0.5., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 076/223] gnu: ruby-rack: Update home page URL., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 092/223] gnu: Add ruby-concurrent-ruby-ext., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 086/223] gnu: Add ruby-prettier-print., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 093/223] gnu: Add ruby-concurrent-ruby-edge., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 091/223] gnu: ruby-concurrent: Replace with ruby-concurrent-ruby., Maxim Cournoyer, 2023/03/20