diff options
| author | Aaron Covrig <aarcov@gmail.com> | 2026-02-24 20:03:57 -0500 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-03-01 18:44:00 +0100 |
| commit | ba1d02afb88c84ed3172af3d0b9397a028e52bb9 (patch) | |
| tree | 00c4a4c21aaedc34ebb3075ffe1dcaa933ad64fb | |
| parent | 088f79f10eb4788df4c688bcfea639728b19c17d (diff) | |
gnu: Add ruby-appraisal.
* gnu/packages/ruby-check.scm (ruby-appraisal): New variable.
Change-Id: I2bd811cdcb90c232fe7585ca2ea4bb2037f38aa4
Signed-off-by: Andreas Enge <andreas@enge.fr>
| -rw-r--r-- | gnu/packages/ruby-check.scm | 61 |
1 files changed, 60 insertions, 1 deletions
diff --git a/gnu/packages/ruby-check.scm b/gnu/packages/ruby-check.scm index 9299cf15a2e..5164d9a672b 100644 --- a/gnu/packages/ruby-check.scm +++ b/gnu/packages/ruby-check.scm @@ -57,7 +57,9 @@ #:use-module (guix packages) #:use-module (guix utils) #:use-module (gnu packages) - #:use-module (gnu packages ruby)) + #:use-module (gnu packages rails) + #:use-module (gnu packages ruby) + #:use-module (gnu packages ruby-xyz)) ;;; Commentary: ;;; @@ -87,6 +89,63 @@ specified in a \"Gemfile\", as well as their dependencies.") (home-page "https://bundler.io/") (license license:expat))) +(define-public ruby-appraisal + (package + (name "ruby-appraisal") + (version "2.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/thoughtbot/appraisal") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "19lv42j1a5slixldpfyz2id999aqkmg2kiibd7700ysiv4x70ayw")))) + (build-system ruby-build-system) + (arguments + (list + #:test-target "spec" + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'loosen-requirements + (lambda _ + (substitute* "Gemfile" + ((".*gem \"thor\",.*") + "gem \"thor\", \">= 0.14\"")))) + (add-before 'check 'delete-broken-tests + ;; These tests make various bundler calls that don't respect + ;; the build environment + (lambda _ + (for-each delete-file + (list + "./spec/acceptance/appraisals_file_bundler_dsl_compatibility_spec.rb" + "./spec/appraisal/appraisal_file_spec.rb" + "./spec/acceptance/bundle_without_spec.rb" + "./spec/acceptance/bundle_with_custom_path_spec.rb" + "./spec/acceptance/cli/clean_spec.rb" + "./spec/acceptance/cli/generate_spec.rb" + "./spec/acceptance/cli/help_spec.rb" + "./spec/acceptance/cli/install_spec.rb" + "./spec/acceptance/cli/list_spec.rb" + "./spec/acceptance/cli/run_spec.rb" + "./spec/acceptance/cli/update_spec.rb" + "./spec/acceptance/cli/version_spec.rb" + "./spec/acceptance/cli/with_no_arguments_spec.rb" + "./spec/acceptance/gemfile_dsl_compatibility_spec.rb" + "./spec/acceptance/gemspec_spec.rb"))))))) + (native-inputs (list bundler ruby-activesupport ruby-rspec)) + (propagated-inputs (list ruby-rake ruby-thor)) + (synopsis "Tests your library against different versions of dependencies") + (description + "Appraisal integrates with bundler and rake to test your +library against different versions of dependencies in repeatable scenarios +called \"appraisals.\" Appraisal is designed to make it easy to check for +regressions in your library without interfering with day-to-day development +using Bundler.") + (home-page "https://github.com/thoughtbot/appraisal") + (license license:expat))) + (define-public ruby-asciidoctor/minimal (hidden-package (package |
