all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: gemmaro <gemmaro.dev@gmail.com>
To: 71585@debbugs.gnu.org
Cc: gemmaro <gemmaro.dev@gmail.com>, Christopher Baines <guix@cbaines.net>
Subject: [bug#71585] [PATCH] gnu: Add ruby-factory-bot.
Date: Sun, 16 Jun 2024 12:38:35 +0900	[thread overview]
Message-ID: <d9a2055de96aede7353f01fd28782f67ede19690.1718509115.git.gemmaro.dev@gmail.com> (raw)

* gnu/packages/ruby.scm (ruby-factory-bot): New variable.

Change-Id: I92b90edd8618fbf38f8bc2f9d2065b9461188f6c
---
 gnu/packages/ruby.scm | 37 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 5c1e666bb0..dd7ce0cbf8 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -32,7 +32,7 @@
 ;;; Copyright © 2022-2024 Remco van 't Veer <remco@remworks.net>
 ;;; Copyright © 2022 Taiju HIGASHI <higashi@taiju.info>
 ;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
-;;; Copyright © 2023 gemmaro <gemmaro.dev@gmail.com>
+;;; Copyright © 2023, 2024 gemmaro <gemmaro.dev@gmail.com>
 ;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
 ;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com>
 ;;; Copyright © 2023, 2024 Hartmut Goebel <h.goebel@crazy-compilers.com>
@@ -86,6 +86,7 @@ (define-module (gnu packages ruby)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages ragel)
+  #:use-module (gnu packages rails)
   #:use-module (gnu packages rsync)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages tls)
@@ -3134,6 +3135,40 @@ (define-public ruby-execjs
     (home-page "https://github.com/rails/execjs")
     (license license:expat)))
 
+(define-public ruby-factory-bot
+  (package
+    (name "ruby-factory-bot")
+    (version "6.4.6")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/thoughtbot/factory_bot")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0a38imcc4ffa6sx452nrmb112n47axqdq0a6xlz7vsl4wlzksmm9"))))
+    (build-system ruby-build-system)
+    (arguments
+     (list
+      #:test-target "spec"))
+    (native-inputs (list ruby-activerecord
+                         ruby-cucumber
+                         ruby-rspec
+                         ruby-rspec-its
+                         ruby-simplecov
+                         ruby-standard
+                         ruby-yard))
+    (propagated-inputs (list ruby-activesupport))
+    (synopsis "Framework and DSL for defining and using factories")
+    (description
+     "@samp{factory_bot} provides a framework and domain specific
+language (DSL) for defining and using factories.  It is less
+error-prone, more explicit, and all-around easier to work with than
+fixtures.")
+    (home-page "https://github.com/thoughtbot/factory_bot")
+    (license license:expat)))
+
 (define-public ruby-fakefs
   (package
     (name "ruby-fakefs")

base-commit: 612e4dd98f7d1d015e405af9d029bede3fe3c280
-- 
2.45.1





                 reply	other threads:[~2024-06-16  3:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d9a2055de96aede7353f01fd28782f67ede19690.1718509115.git.gemmaro.dev@gmail.com \
    --to=gemmaro.dev@gmail.com \
    --cc=71585@debbugs.gnu.org \
    --cc=guix@cbaines.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.