From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5A5561F5AE for ; Thu, 29 Apr 2021 00:56:18 +0000 (UTC) Received: from localhost ([::1]:34170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbuyX-0000jO-AP for e@80x24.org; Wed, 28 Apr 2021 20:56:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbuyV-0000jF-BL for dtas-all@nongnu.org; Wed, 28 Apr 2021 20:56:15 -0400 Received: from dcvr.yhbt.net ([64.71.152.64]:44216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbuyT-0002kY-BE for dtas-all@nongnu.org; Wed, 28 Apr 2021 20:56:15 -0400 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 8E1C01F5AE for ; Thu, 29 Apr 2021 00:56:10 +0000 (UTC) From: Eric Wong To: dtas-all@nongnu.org Subject: [PATCH] gemspec: allow building gem without setting VERSION Date: Thu, 29 Apr 2021 00:56:10 +0000 Message-Id: <20210429005610.15485-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.71.152.64; envelope-from=e@80x24.org; helo=dcvr.yhbt.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: dtas-all@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: duct tape audio suite List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dtas-all-bounces+e=80x24.org@nongnu.org Sender: "dtas-all" It's less DRY, but probably more familiar to people who can't be bothered to use the Makefile. --- dtas.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dtas.gemspec b/dtas.gemspec index 09eb703..d763a9f 100644 --- a/dtas.gemspec +++ b/dtas.gemspec @@ -1,9 +1,9 @@ -# Copyright (C) 2013-2020 all contributors +# Copyright (C) 2013-2021 all contributors # License: GPL-3.0+ Gem::Specification.new do |s| manifest = File.read('.gem-manifest').split(/\n/) s.name = %q{dtas} - s.version = ENV["VERSION"].dup + s.version = (ENV["VERSION"] || '0.18.0').dup s.authors = ["dtas hackers"] s.summary = "duct tape audio suite for *nix" s.description = File.read("README").split(/\n\n/)[1].strip