From nobody Thu Jan 2 16:30:39 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YPBym4NZQz5jPmX; Thu, 02 Jan 2025 16:30:40 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YPByl6tD6z4cjx; Thu, 2 Jan 2025 16:30:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735835440; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p4xUKUZO/ZN4JhABj0/61tAjCdaMzhioNlEWncSTfYM=; b=OqEyjaywpCI1c8H4112FxsHcCeRG8TgXJquE/cHm7jl211eVkLQE2fjqaRCdK0AnqrAeKM iHcJTzhMoP94TN95YXgDdC3LF19xj/qkmKRzhOTyloI4iXlJBOmDdlYlwDUy3ckH7xIICc EArae7TtN31QOQMgr2RPUp3zXmqlWMQBJ07+0NBjtCOdi39ctRzCKIRsgOl85FCVTvaiBX //fP18HyWUvEDjCM8FoftEa9o5vMnm10Ad0CJV85TiAU4/r6XXNKGfEg3N3ic7KVxyyFVM udJc43kgYjYuwgd+iUoHrpP+Y4li1Hd366N+qWtJiS3C5XpLmV/odt+0edt3FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735835440; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p4xUKUZO/ZN4JhABj0/61tAjCdaMzhioNlEWncSTfYM=; b=rXPLDCPeGJP3lSEd/W7JKE0Ltv3XER689Ch1N/uGE2NJO25pm6CYDGTHOFo1MwBErl3amn xYFYuKNmGtQIUYq0FcSCJC6hSUdse3PQgFxyIhfYJ5xzANvL5N2ZDzvDf8ceglos86xMuv 7WkZ4vZWoQifr2GO/JFwOh2LpBBx0tu+OpJWjiA4Jqo2GZvMiuT4DCY8pxbLsah7lfrIOu YyJn8X5UFcuoKMu7D7rdCHt+V+Qi8rcLEvWWewBFcAGFiriXcL3EtJFP3e3xXpOGe03r+u Lho9uYwRddKb6xJQ1maAgkn6zlVIPTSP1crUT49yJ+kTyLt6v+Ls1UciQbzihA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735835440; a=rsa-sha256; cv=none; b=Hn5Hova7n/SkC4D/sDFHUZRkdS7wJCXIHo8WDDrYFgYcMW8LD7+YzqbmAB0Kg/qZHvMWzG Mm0egBQQtmYXYzbk2q7khBRJI1H+m+z19eNCRkg5egp5ixSJAqwYkh5WVwa8jD5YKTg4uR b03Eukfg6IAQt66I8+xqBaMpF8vnYfULRf/bY17X4jH/chbCV/WMmuOFyhKsNfjcae5Z4T djOTzDg+twfmxKSyEilI+VsalELmp/b3CSJdsjoBgTVt1uiQCQarl53EuQ0Q33pyOwNa6K mV6LMQKHlHsvJuZa6/0b7/0iluQYptf+VDSQ0ojvr9ptuQELk5LKjNDx4YmlUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YPByl6TxkzlJY; Thu, 02 Jan 2025 16:30:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 502GUdJx049257; Thu, 2 Jan 2025 16:30:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 502GUdx1049254; Thu, 2 Jan 2025 16:30:39 GMT (envelope-from git) Date: Thu, 2 Jan 2025 16:30:39 GMT Message-Id: <202501021630.502GUdx1049254@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: 80a89eea5235 - main - www/rubygem-importmap-rails-rails72: Add rubygem-importmap-rails-rails72 2.1.0 (copied from rubygem-importmap-rails) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org 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: 80a89eea52356d8f9aea30e5e4ac591b2f1ed7b3 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=80a89eea52356d8f9aea30e5e4ac591b2f1ed7b3 commit 80a89eea52356d8f9aea30e5e4ac591b2f1ed7b3 Author: Po-Chuan Hsieh AuthorDate: 2025-01-02 16:28:51 +0000 Commit: Po-Chuan Hsieh CommitDate: 2025-01-02 16:28:51 +0000 www/rubygem-importmap-rails-rails72: Add rubygem-importmap-rails-rails72 2.1.0 (copied from rubygem-importmap-rails) --- www/Makefile | 1 + www/rubygem-importmap-rails-rails72/Makefile | 22 ++++++++++++++++++++++ www/rubygem-importmap-rails-rails72/distinfo | 3 +++ www/rubygem-importmap-rails-rails72/pkg-descr | 17 +++++++++++++++++ 4 files changed, 43 insertions(+) diff --git a/www/Makefile b/www/Makefile index 77cda9762866..9fc122afe1f1 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2127,6 +2127,7 @@ SUBDIR += rubygem-importmap-rails SUBDIR += rubygem-importmap-rails-rails70 SUBDIR += rubygem-importmap-rails-rails71 + SUBDIR += rubygem-importmap-rails-rails72 SUBDIR += rubygem-innate SUBDIR += rubygem-jekyll SUBDIR += rubygem-jekyll-sanity diff --git a/www/rubygem-importmap-rails-rails72/Makefile b/www/rubygem-importmap-rails-rails72/Makefile new file mode 100644 index 000000000000..39c19f7cad29 --- /dev/null +++ b/www/rubygem-importmap-rails-rails72/Makefile @@ -0,0 +1,22 @@ +PORTNAME= importmap-rails +PORTVERSION= 2.1.0 +CATEGORIES= www rubygems +MASTER_SITES= RG +PKGNAMESUFFIX= -rails72 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling +WWW= https://github.com/rails/importmap-rails + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/MIT-LICENSE + +RUN_DEPENDS= rubygem-actionpack72>=6.0.0:www/rubygem-actionpack72 \ + rubygem-activesupport72>=6.0.0:devel/rubygem-activesupport72 \ + rubygem-railties72>=6.0.0:www/rubygem-railties72 + +USES= gem + +NO_ARCH= yes + +.include diff --git a/www/rubygem-importmap-rails-rails72/distinfo b/www/rubygem-importmap-rails-rails72/distinfo new file mode 100644 index 000000000000..ad4b88292088 --- /dev/null +++ b/www/rubygem-importmap-rails-rails72/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1735228188 +SHA256 (rubygem/importmap-rails-2.1.0.gem) = 9f10c67d60651a547579f448100d033df311c5d5db578301374aeb774faae741 +SIZE (rubygem/importmap-rails-2.1.0.gem) = 17408 diff --git a/www/rubygem-importmap-rails-rails72/pkg-descr b/www/rubygem-importmap-rails-rails72/pkg-descr new file mode 100644 index 000000000000..184d7013fa42 --- /dev/null +++ b/www/rubygem-importmap-rails-rails72/pkg-descr @@ -0,0 +1,17 @@ +Import maps let you import JavaScript modules using logical names that map to +versioned/digested files -- directly from the browser. So you can build modern +JavaScript applications using JavaScript libraries made for ESM without the need +for transpiling or bundling.This frees you from needing Webpack, Yarn, npm, or +any other part of the JavaScript toolchain. All you need is the asset pipeline +that's already included in Rails. + +With this approach you'll ship many small JavaScript files instead of one big +JavaScript file. Thanks to HTTP/2 that no longer carries a material performance +penalty during the initial transport, and in fact offers substantial benefits +over the long run due to better caching dynamics. Whereas before any change to +any JavaScript file included in your big bundle would invalidate the cache for +the the whole bundle, now only the cache for that single file is invalidated. + +There's native support for import maps in Chrome/Edge 89+, and a shim available +for any browser with basic ESM support. So your app will be able to work with +all the evergreen browsers.