[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/11: gnu: ruby-rubocop-performance: Update to 1.9.2.
From: |
guix-commits |
Subject: |
08/11: gnu: ruby-rubocop-performance: Update to 1.9.2. |
Date: |
Wed, 17 Feb 2021 09:17:27 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit cc128eefd7ec77c84c5d8a5cab4db03823d13112
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Feb 17 15:29:26 2021 +0200
gnu: ruby-rubocop-performance: Update to 1.9.2.
* gnu/packages/ruby.scm (ruby-rubocop-performance): Update to 1.9.2.
[source]: Download from git uri.
[arguments]: Replace 'replace-git-ls-files phase. Add 'set-home phase.
[propagated-inputs]: Add ruby-rubocop-ast.
[native-inputs]: Add ruby-bump, ruby-yard.
---
gnu/packages/ruby.scm | 31 +++++++++++++++++++++++++------
1 file changed, 25 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d1fe82b..1934a68 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1549,19 +1549,38 @@ logic.")
(define-public ruby-rubocop-performance
(package
(name "ruby-rubocop-performance")
- (version "1.7.1")
+ (version "1.9.2")
(source
(origin
- (method url-fetch)
- (uri (rubygems-uri "rubocop-performance" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rubocop-hq/rubocop-performance")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "04r8d4x62ygv17spvz9yyfxbmbf8qxwhijs0xycfvzr0q4pyg9sw"))))
+ "04lmkmz6c0ccs5miikrww7lakp7y6xz00g7b47ay7rn7sx5j6qyf"))))
(build-system ruby-build-system)
(arguments
- `(#:tests? #f)) ;no test suite in the distributed gem
+ `(#:tests? #f ; tests require a git checkout of rubocop's source code.
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "rubocop-performance.gemspec"
+ (("`git ls-files -z config lib LICENSE.txt README.md`")
+ "`find config lib LICENSE.txt README.md -type f -print0 |sort
-z`"))
+ #t))
+ (add-before 'check 'set-HOME
+ (lambda _
+ (setenv "HOME" "/tmp")
+ #t)))))
(propagated-inputs
- `(("ruby-rubocop" ,ruby-rubocop)))
+ `(("ruby-rubocop" ,ruby-rubocop)
+ ("ruby-rubocop-ast" ,ruby-rubocop-ast)))
+ (native-inputs
+ `(("ruby-bump" ,ruby-bump)
+ ("ruby-yard" ,ruby-yard)))
(synopsis "Performance optimizations checkers for Ruby code")
(description "This package provides a collection of RuboCop cops to check
for performance optimizations in Ruby code.")
- branch master updated (093beb6 -> 301d1ba), guix-commits, 2021/02/17
- 02/11: gnu: ruby-parser: Update to 3.0.0.0., guix-commits, 2021/02/17
- 03/11: gnu: ruby-rubocop-ast: Update to 1.4.1., guix-commits, 2021/02/17
- 01/11: gnu: Add ruby-oedipus-lex., guix-commits, 2021/02/17
- 06/11: gnu: Add ruby-memory-profiler., guix-commits, 2021/02/17
- 04/11: gnu: ruby-hashdiff: Update to 1.0.1., guix-commits, 2021/02/17
- 05/11: gnu: Add ruby-stackprof., guix-commits, 2021/02/17
- 07/11: gnu: ruby-crack: Update to 0.4.5., guix-commits, 2021/02/17
- 08/11: gnu: ruby-rubocop-performance: Update to 1.9.2.,
guix-commits <=
- 09/11: gnu: Add ruby-rubocop-rspec., guix-commits, 2021/02/17
- 10/11: gnu: ruby-webmock: Update to 3.11.2., guix-commits, 2021/02/17
- 11/11: gnu: ruby-rubocop: Update to 1.10.0., guix-commits, 2021/02/17