diff options
author | Björn Höfling <bjoern.hoefling@bjoernhoefling.de> | 2019-12-06 09:24:53 +0100 |
---|---|---|
committer | Björn Höfling <bjoern.hoefling@bjoernhoefling.de> | 2019-12-06 20:09:14 +0100 |
commit | b2244c68497256ff90ce48903ed9c8d21bcbc892 (patch) | |
tree | d5ed25ec3f333756c2989dd206d7a2639a44fd69 | |
parent | 0a71e34e49c811c1d84565001226c84e70f325ef (diff) | |
download | guix-b2244c68497256ff90ce48903ed9c8d21bcbc892.tar guix-b2244c68497256ff90ce48903ed9c8d21bcbc892.tar.gz |
gnu: ruby-rspec-its: Update to 1.3.0.
* gnu/packages/ruby.scm (ruby-rspec-its): Update to 1.3.0.
[source]: Remove patch.
[arguments]: Add phase to fix ffi-dependency-version.
[native-inputs]: Add ruby-ffi.
-rw-r--r-- | gnu/packages/ruby.scm | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 70b59e9156..c9332506f8 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -560,7 +560,7 @@ outcomes of a code example.") (define-public ruby-rspec-its (package (name "ruby-rspec-its") - (version "1.2.0") + (version "1.3.0") (source (origin (method git-fetch) @@ -570,17 +570,7 @@ outcomes of a code example.") (file-name (git-file-name name version)) (sha256 (base32 - "190rz7v4q4wk80fzhr5hknvxx4vb2pywmqr8wc41w2blj9ylzi0f")) - (patches - (list - (origin (method url-fetch) - (uri (string-append - "https://github.com/rspec/rspec-its/commit/" - "bfaab439c7c879f5ef25552f41827891f6308373.patch")) - (file-name "ruby-rspec-its-fix-specs-for-ruby-2.4.patch") - (sha256 - (base32 - "0lnik0kvrpgkakvdb2fmzg22pdlraf6kiidr9sv6rnfyviiqwxgh"))))))) + "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p")))) (build-system ruby-build-system) (arguments `(#:test-target "spec" @@ -592,13 +582,19 @@ outcomes of a code example.") (("rspec rspec-core rspec-expectations rspec-mocks rspec-support") "")) #t)) + (add-before 'build 'update-ffi-in-gemfile + (lambda _ + (substitute* "Gemfile" + ((" gem 'ffi', '~> 1.9.25'") " gem 'ffi', '~> 1.10.0'")) + #t)) (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile (lambda _ (substitute* "rspec-its.gemspec" (("rake.*") "rake'\n") - (("cucumber.*") "cucumber'\n") + (("spec.add_development_dependency 'cucumber'.*") + "spec.add_development_dependency 'cucumber'\n") (("bundler.*") "bundler'\n") - (("aruba.*") "aruba'\n")) + (("\"aruba.*") "'aruba'\n")) #t))))) (propagated-inputs `(("ruby-rspec-core" ,ruby-rspec-core) @@ -606,6 +602,7 @@ outcomes of a code example.") (native-inputs `(("bundler" ,bundler) ("ruby-cucumber" ,ruby-cucumber) + ("ruby-ffi" ,ruby-ffi) ("ruby-aruba" ,ruby-aruba))) (synopsis "RSpec extension that provides the @code{its} method") (description |