From patchwork Mon Mar 20 17:13:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 48247 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 56C3816F39; Mon, 20 Mar 2023 17:25:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1FCC216F32 for ; Mon, 20 Mar 2023 17:25:11 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peJFq-0003Mz-5Z; Mon, 20 Mar 2023 13:25:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peJFo-0003K3-43 for guix-patches@gnu.org; Mon, 20 Mar 2023 13:25:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peJFn-0004oZ-Dt for guix-patches@gnu.org; Mon, 20 Mar 2023 13:25:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peJFn-0003i4-4l for guix-patches@gnu.org; Mon, 20 Mar 2023 13:25:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62196] [PATCH 063/223] gnu: Add ruby-delayed-job. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 17:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62196 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62196@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 62196-submit@debbugs.gnu.org id=B62196.167933305113880 (code B ref 62196); Mon, 20 Mar 2023 17:25:03 +0000 Received: (at 62196) by debbugs.gnu.org; 20 Mar 2023 17:24:11 +0000 Received: from localhost ([127.0.0.1]:55877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJEw-0003bi-RJ for submit@debbugs.gnu.org; Mon, 20 Mar 2023 13:24:11 -0400 Received: from mail-yw1-f178.google.com ([209.85.128.178]:40473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJEr-0003Yv-JZ for 62196@debbugs.gnu.org; Mon, 20 Mar 2023 13:24:06 -0400 Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-5447d217bc6so236330297b3.7 for <62196@debbugs.gnu.org>; Mon, 20 Mar 2023 10:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679333040; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KALjjO2msMmjpTcRbHN2pgR4sC2w/+uiVtmUw+5RRfw=; b=GnpiRTSsbP6upPC316N2EBYdKw7tyvIEeZvLtE6wnFbMWQr81jtkts4fO7P0solZ4X MwJ1ZQlNeUTqiyzyRJGk+EGvf5l8fW7ogBSMl7EmH2pYS7J3X95wkziGVshrnwjTeg9F gZ7qzAy4Azrwkul9ll1zTFdVWg7sUevhVbhlqmDdR4gLM4fBXQ8rTHuKTL1nbIVFPbSu hMAyj7CwgNYsiYvg9clF2djYXm2b+NcRKIJUqnAk3fU0C0mz4sVacvh1MXXLKPZf1swY zI8YVC2IPKGswO4N5SeFhAxtU0fQGcF29zJnurEEP1bdtFU+6749jtT0E39wWUhZ0qb+ Ugeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679333040; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KALjjO2msMmjpTcRbHN2pgR4sC2w/+uiVtmUw+5RRfw=; b=Ca3RHOa6PeIAqnS1McdTK9l1M+3oAOXyhw3AKsHjXYeB5Ok4jpNc4jbcY2xQFO2zqY wzp2YmuEtDvrEcirYCoYf73otSE9nj4yhxM9yw/9/7eX3A1vRQI+XIAnv0Ppe1TZTi5s /brkTre+nbWfgScLtRUcGwfNfHzKqoQCE+Qj82f5REm61iBqkLU3RJuq7eMM2tgc9Qa+ moFV/AiY/DWWRY9dyOdW1jb5zA8VuGx5o3f2S2e1SFyDgf5tY1AzlYVToCuCUAoxXXZw p3beTQCTVtfK8LK0+NsFcPANwNpANt78KFIMPFYssK+bCMZ8aYX3hq86atX/LoBfVNQx gw6w== X-Gm-Message-State: AO0yUKUzRcwB03jM1Sakahw7CAcZvKbh1RjebaYufffXbkhy5kCOrk43 /q8bY2xhmyS3/ZcgfqUgjUNgg1ok9Vw= X-Google-Smtp-Source: AK7set99WIobL2RTYEQkIDl7dcCxuUpwAzLGuEgLCAEjt+rvNCyhO+jA+SEpALuUt/U2pQt1zm43Eg== X-Received: by 2002:ac8:7f83:0:b0:3dc:1e1f:fe0e with SMTP id z3-20020ac87f83000000b003dc1e1ffe0emr16883627qtj.35.1679332656424; Mon, 20 Mar 2023 10:17:36 -0700 (PDT) Received: from localhost.localdomain (dsl-10-128-46.b2b2c.ca. [72.10.128.46]) by smtp.gmail.com with ESMTPSA id p17-20020a374211000000b007428e743508sm7673809qka.70.2023.03.20.10.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 10:17:36 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 20 Mar 2023 13:13:55 -0400 Message-Id: <20230320171635.11184-63-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230320171635.11184-1-maxim.cournoyer@gmail.com> References: <20230320171635.11184-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ruby.scm (ruby-delayed-job): New variable. --- gnu/packages/ruby.scm | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 57a4d52ce4..d0ea01aa76 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5022,6 +5022,53 @@ (define-public ruby-deep-merge you to merge elements inside a hash together recursively.") (license license:expat))) +(define-public ruby-delayed-job + (package + (name "ruby-delayed-job") + (version "4.1.11") + (source (origin + (method url-fetch) + (uri (rubygems-uri "delayed_job" version)) + (sha256 + (base32 + "0s2xg72ljg4cwmr05zi67vcyz8zib46gvvf7rmrdhsyq387m2qcq")))) + (build-system ruby-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'disable-bundler + (lambda _ + (substitute* "Rakefile" + (("require 'bundler/setup'") "") + (("Bundler::GemHelper\\.install_tasks") "")))) + (add-after 'unpack 'disable-rubocop + (lambda _ + (substitute* "Rakefile" + (("require 'rubocop/rake_task'") "") + (("RuboCop::RakeTask.new") "")))) + (add-after 'extract-gemspec 'remove-dependency-on-actionmailer + (lambda _ + (substitute* "spec/helper.rb" + (("require 'action_mailer'") "")) + (substitute* "delayed_job.gemspec" + (("\"spec/performable_mailer_spec.rb\".freeze, ") "")) + (delete-file "spec/performable_mailer_spec.rb")))))) + (native-inputs + (list ruby-activerecord + ruby-rspec + ruby-simplecov + ruby-simplecov-lcov + ruby-zeitwerk)) + (propagated-inputs + (list ruby-activesupport)) + (synopsis "Asynchronous background tasks execution library") + (description "Delayed_job (or DJ) encapsulates the common pattern of +asynchronously executing longer tasks in the background. It is a direct +extraction from Shopify where the job table is responsible for a multitude of +core tasks.") + (home-page "https://github.com/collectiveidea/delayed_job") + (license license:expat))) + (define-public ruby-git (package (name "ruby-git")