[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
35/38: gnu: ruby_version: Update to 1.0.2.
From: |
guix-commits |
Subject: |
35/38: gnu: ruby_version: Update to 1.0.2. |
Date: |
Wed, 8 Jul 2020 23:42:36 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 1097fdbea75c2e9cc7c8a72c50a812def6ce62e6
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Jul 8 21:54:35 2020 -0400
gnu: ruby_version: Update to 1.0.2.
* gnu/packages/ruby.scm (ruby_version): Update to 1.0.2.
[phases]: Adapt the fix-dependencies phase.
[native-inputs]: Add ruby-rdoc and ruby-rubygems-tasks. Remove bundler.
[description]: Reformat.
---
gnu/packages/ruby.scm | 30 +++++++++++++-----------------
1 file changed, 13 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index a9b800a..172dd4f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7581,44 +7581,40 @@ display width of strings in Ruby.")
(define-public ruby_version
(package
(name "ruby_version")
- (version "1.0.1")
+ (version "1.0.2")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "ruby_version" version))
(sha256
(base32
- "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
+ "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
(build-system ruby-build-system)
(arguments
- '(#:phases
+ `(#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-dependencies
(lambda _
;; Remove the Gemfile.lock, as we want to use Guix packages at
;; whatever versions.
(delete-file "Gemfile.lock")
- ;; Remove the incldued gem file as it's unnecessary.
- (delete-file "pkg/ruby_version-1.0.0.gem")
+ ;; Remove the included gem files as they unnecessary.
+ (delete-file-recursively "pkg/")
+ ;; Accept any version of rake, rdoc and rspec
(substitute* "ruby_version.gemspec"
- ;; Don't require rdoc and rubygems-tasks as they're unnecessary
- ((".*rdoc.*") "\n")
- ((".*rubygems-tasks.*") "\n")
- ;; Accept any version of rake and rspec
(("%q<rake.*") "%q<rake>)\n")
+ (("%q<rdoc.*") "%q<rdoc>)\n")
(("%q<rspec.*") "%q<rspec>)\n"))
- ;; Remove the use of rubygems-tasks from the Rakefile, as it's
- ;; unnecessary.
+ ;; Do not use bundler.
(substitute* "Rakefile"
- (("^require 'rubygems/tasks'") "")
- (("Gem::Tasks.new") ""))
+ (("Bundler\\.setup.*") "nil\n"))
#t)))))
(native-inputs
- `(("bundler" ,bundler)
- ("ruby-rspec" ,ruby-rspec)))
+ `(("ruby-rdoc" ,ruby-rdoc)
+ ("ruby-rspec" ,ruby-rspec)
+ ("ruby-rubygems-tasks", ruby-rubygems-tasks)))
(synopsis "Ruby library to help check the Ruby version")
- (description
- "@code{ruby_version} provides a @code{RubyVersion} module to simplify
+ (description "@code{ruby_version} provides a @code{RubyVersion} module to
simplify
checking for the right Ruby version in software.")
(home-page "https://github.com/janlelis/ruby_version")
(license license:expat)))
- 27/38: gnu: ruby-cucumber-core: Update to 7.1.0., (continued)
- 27/38: gnu: ruby-cucumber-core: Update to 7.1.0., guix-commits, 2020/07/08
- 28/38: gnu: ruby-cucumber-tag-expressions: Update to 3.0.0., guix-commits, 2020/07/08
- 37/38: gnu: ruby-parallel-tests: Update to 3.0.0., guix-commits, 2020/07/08
- 21/38: gnu: Add ruby-protobuf., guix-commits, 2020/07/08
- 29/38: gnu: Add ruby-sys-uname., guix-commits, 2020/07/08
- 31/38: gnu: ruby-cucumber-expressions: Update to 10.2.0., guix-commits, 2020/07/08
- 32/38: gnu: ruby-cucumber-wire: Update to 3.1.0., guix-commits, 2020/07/08
- 33/38: gnu: Add ruby-cucumber-html-formatter., guix-commits, 2020/07/08
- 23/38: gnu: Add ruby-cucumber-messages, guix-commits, 2020/07/08
- 34/38: gnu: ruby-cucumber: Update to 4.1.0., guix-commits, 2020/07/08
- 35/38: gnu: ruby_version: Update to 1.0.2.,
guix-commits <=
- 36/38: gnu: Add ruby-cuke-modeler., guix-commits, 2020/07/08
- 38/38: gnu: ruby-sdoc: Update to 1.1.0., guix-commits, 2020/07/08