From owner-dev-commits-ports-all@freebsd.org Sun Apr 25 20:42:33 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1B2AF5E7C35; Sun, 25 Apr 2021 20:42:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FT0MX4G0zz4YBB; Sun, 25 Apr 2021 20:42:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6B8881A7C9; Sun, 25 Apr 2021 20:42:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 13PKgWhO095679; Sun, 25 Apr 2021 20:42:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 13PKgWGI095678; Sun, 25 Apr 2021 20:42:32 GMT (envelope-from git) Date: Sun, 25 Apr 2021 20:42:32 GMT Message-Id: <202104252042.13PKgWGI095678@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: b8c44cdd27ca - main - net/rubygem-activestorage61: Fix build with rubygem-mini_mime 1.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b8c44cdd27ca8eacb5361e6d1914b17378d3b046 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2021 20:42:33 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b8c44cdd27ca8eacb5361e6d1914b17378d3b046 commit b8c44cdd27ca8eacb5361e6d1914b17378d3b046 Author: Po-Chuan Hsieh AuthorDate: 2021-04-25 20:18:49 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-04-25 20:36:18 +0000 net/rubygem-activestorage61: Fix build with rubygem-mini_mime 1.1.0 - Bump PORTREVISION for package change Obtained from: https://github.com/rails/rails/commit/b80a2bdeb955c81649e483f2f020a3d5f407c2f9 --- net/rubygem-activestorage61/Makefile | 3 ++- .../files/patch-activestorage.gemspec | 13 +++++++++++++ .../files/patch-app-models-active_storage-variant.rb | 13 +++++++++++++ .../patch-app-models-active_storage-variant_with_record.rb | 13 +++++++++++++ 4 files changed, 41 insertions(+), 1 deletion(-) diff --git a/net/rubygem-activestorage61/Makefile b/net/rubygem-activestorage61/Makefile index 267fa6c25b1a..06423baafb44 100644 --- a/net/rubygem-activestorage61/Makefile +++ b/net/rubygem-activestorage61/Makefile @@ -2,6 +2,7 @@ PORTNAME= activestorage PORTVERSION= 6.1.3.1 +PORTREVISION= 1 CATEGORIES= net rubygems MASTER_SITES= RG PKGNAMESUFFIX= 61 @@ -17,7 +18,7 @@ RUN_DEPENDS= rubygem-actionpack61>=${PORTVERSION}:www/rubygem-actionpack61 \ rubygem-activerecord61>=${PORTVERSION}:databases/rubygem-activerecord61 \ rubygem-activesupport61>=${PORTVERSION}:devel/rubygem-activesupport61 \ rubygem-marcel>=1.0.0<1.1:devel/rubygem-marcel \ - rubygem-mini_mime>=1.0.2<1.1:mail/rubygem-mini_mime + rubygem-mini_mime>=1.1.0:mail/rubygem-mini_mime USES= gem USE_RUBY= yes diff --git a/net/rubygem-activestorage61/files/patch-activestorage.gemspec b/net/rubygem-activestorage61/files/patch-activestorage.gemspec new file mode 100644 index 000000000000..ae0cc38a9872 --- /dev/null +++ b/net/rubygem-activestorage61/files/patch-activestorage.gemspec @@ -0,0 +1,13 @@ +Obtained from: https://github.com/rails/rails/commit/b80a2bdeb955c81649e483f2f020a3d5f407c2f9 + +--- activestorage.gemspec.orig 2021-04-24 11:45:24 UTC ++++ activestorage.gemspec +@@ -28,7 +28,7 @@ Gem::Specification.new do |s| + s.add_runtime_dependency(%q.freeze, ["= 6.1.3.1"]) + s.add_runtime_dependency(%q.freeze, ["= 6.1.3.1"]) + s.add_runtime_dependency(%q.freeze, ["~> 1.0.0"]) +- s.add_runtime_dependency(%q.freeze, ["~> 1.0.2"]) ++ s.add_runtime_dependency(%q.freeze, [">= 1.1.0"]) + else + s.add_dependency(%q.freeze, ["= 6.1.3.1"]) + s.add_dependency(%q.freeze, ["= 6.1.3.1"]) diff --git a/net/rubygem-activestorage61/files/patch-app-models-active_storage-variant.rb b/net/rubygem-activestorage61/files/patch-app-models-active_storage-variant.rb new file mode 100644 index 000000000000..5e5ac0de6d53 --- /dev/null +++ b/net/rubygem-activestorage61/files/patch-app-models-active_storage-variant.rb @@ -0,0 +1,13 @@ +Obtained from: https://github.com/rails/rails/commit/b80a2bdeb955c81649e483f2f020a3d5f407c2f9 + +--- app/models/active_storage/variant.rb.orig 2021-04-24 11:45:24 UTC ++++ app/models/active_storage/variant.rb +@@ -89,7 +89,7 @@ class ActiveStorage::Variant + end + + def filename +- ActiveStorage::Filename.new "#{blob.filename.base}.#{variation.format}" ++ ActiveStorage::Filename.new "#{blob.filename.base}.#{variation.format.downcase}" + end + + alias_method :content_type_for_serving, :content_type diff --git a/net/rubygem-activestorage61/files/patch-app-models-active_storage-variant_with_record.rb b/net/rubygem-activestorage61/files/patch-app-models-active_storage-variant_with_record.rb new file mode 100644 index 000000000000..bc1dc981240d --- /dev/null +++ b/net/rubygem-activestorage61/files/patch-app-models-active_storage-variant_with_record.rb @@ -0,0 +1,13 @@ +Obtained from: https://github.com/rails/rails/commit/b80a2bdeb955c81649e483f2f020a3d5f407c2f9 + +--- app/models/active_storage/variant_with_record.rb.orig 2021-04-24 11:45:24 UTC ++++ app/models/active_storage/variant_with_record.rb +@@ -33,7 +33,7 @@ class ActiveStorage::VariantWithRecord + def transform_blob + blob.open do |input| + variation.transform(input) do |output| +- yield io: output, filename: "#{blob.filename.base}.#{variation.format}", ++ yield io: output, filename: "#{blob.filename.base}.#{variation.format.downcase}", + content_type: variation.content_type, service_name: blob.service.name + end + end