From nobody Wed Sep 18 06:18:46 2024 X-Original-To: dev-commits-ports-all@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 4X7pPg3Zkpz5Vyxp; Wed, 18 Sep 2024 06:18:47 +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 4X7pPg0Qjzz4DrJ; Wed, 18 Sep 2024 06:18:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726640327; 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=HxqShxn3hNjknxf5Amwzxxatxhn+60+vBEGw9pcPbp0=; b=u01wshBm/HobTZndk5GQFQsaD2VUo3b5ptJ+0nmR84IslSrhZ4bRkl8JaMp9ckrN6suBhf 5b7N2U9L5IFR5W6VD0drZ8giaC7G4k+T/8LIbvKSxHPyDA2AaALJMK962C29GgI6rpaJT+ GqrHxN61Q+YJ6VX65Npjvybmmkc7SXuabzE8MBNuPRc200/LVa7Q5u77eAPtwASobV31XX vQHdgFReWa1UAcMRJZKv3QHm7BDq77CCm6KCGYWNvxaEskByvsGVVOFCgKTKu8s9VNBH+3 DaTsjySshpOyNSTMgegxG6ABZS/LKsMVB2B/2rBUA9fBwIF9JACGVGc/eUP8Ig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726640327; a=rsa-sha256; cv=none; b=SculdcO+YxYnxON1M2+Jyf+umf6jTzbBxn6QyjTlcU8DOClRX3+IekDGsrH/z00dmjJAPS VMWn6P/xxdDCwkfEMk13FsTa+qLGhvtACUDTvMh/Fgnne6Iui04/AZEwo9X2tr7nxWR27C wdXNLNaaejmRKJERZl2E/YaqR2iNUPP5QiyXAjfzaV6FMewV2zizzh5qA7Ue8oUrOE3eV1 ijUrJ3i2JXaqu4+rv0YbXcEba5/imZwDYgPY7ku8JQ0Odv91wyBiL7XGUwxqjJR+mTgAux oN3iEHkL7V2pW5fMs+2DZBmbmzcVbEHIFHbQW8tN2hDp7RNxx0SwnyiMWKc2ZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726640327; 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=HxqShxn3hNjknxf5Amwzxxatxhn+60+vBEGw9pcPbp0=; b=JSSXjmPUXuDLhDWHkwJFfH0bMk9OL4tIIRjQ+6YxFHOvX6eugt7zCJe6tnOaCQWyIxWjd+ CHcizqRv3zili/jjWVVydsTG+tzMt/7xjiROBMhb5xWHS3M9hs/YMBJLzOqrfHAY0HI5q9 So923PqL64+whWgRGaaRHLlXl0lM4QH2iQ0hHkWYJLVsP2F4oV3IBS/mmjQVZx5PwPKl6T teSj5z7FMb89+Q6VEQwNR6Oa0RjKrlnpOqMGSb4kDa4b0xblM9/kvb/1BGcGF3lRHX7A0q 0P8ofBy/rhNrZ11ARdFXaNrB0pd5rrQN+nEJBkIEuf4+4hNudRkkVo64sGEzTA== 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 4X7pPf6zS2z19HY; Wed, 18 Sep 2024 06:18:46 +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 48I6IkSp032017; Wed, 18 Sep 2024 06:18:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48I6Ik7V032014; Wed, 18 Sep 2024 06:18:46 GMT (envelope-from git) Date: Wed, 18 Sep 2024 06:18:46 GMT Message-Id: <202409180618.48I6Ik7V032014@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: 9b6edc5b2246 - main - rubygem-importmap-rails-rails71: Add rubygem-importmap-rails-rails71 2.0.1 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@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: 9b6edc5b22460ea3404510da4f0c99c4fc21bf6d Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=9b6edc5b22460ea3404510da4f0c99c4fc21bf6d commit 9b6edc5b22460ea3404510da4f0c99c4fc21bf6d Author: Po-Chuan Hsieh AuthorDate: 2024-09-18 05:51:43 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-09-18 06:13:05 +0000 rubygem-importmap-rails-rails71: Add rubygem-importmap-rails-rails71 2.0.1 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. --- www/Makefile | 1 + www/rubygem-importmap-rails-rails71/Makefile | 22 ++++++++++++++++++++++ www/rubygem-importmap-rails-rails71/distinfo | 3 +++ www/rubygem-importmap-rails-rails71/pkg-descr | 17 +++++++++++++++++ 4 files changed, 43 insertions(+) diff --git a/www/Makefile b/www/Makefile index 5e9712428a5b..0d6e1a732396 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2083,6 +2083,7 @@ SUBDIR += rubygem-hurley SUBDIR += rubygem-importmap-rails SUBDIR += rubygem-importmap-rails-rails70 + SUBDIR += rubygem-importmap-rails-rails71 SUBDIR += rubygem-innate SUBDIR += rubygem-jekyll SUBDIR += rubygem-jekyll-sanity diff --git a/www/rubygem-importmap-rails-rails71/Makefile b/www/rubygem-importmap-rails-rails71/Makefile new file mode 100644 index 000000000000..c554fab973b3 --- /dev/null +++ b/www/rubygem-importmap-rails-rails71/Makefile @@ -0,0 +1,22 @@ +PORTNAME= importmap-rails +PORTVERSION= 2.0.1 +CATEGORIES= www rubygems +MASTER_SITES= RG +PKGNAMESUFFIX= -rails71 + +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-actionpack71>=6.0.0:www/rubygem-actionpack71 \ + rubygem-activesupport71>=6.0.0:devel/rubygem-activesupport71 \ + rubygem-railties71>=6.0.0:www/rubygem-railties71 + +USES= gem + +NO_ARCH= yes + +.include diff --git a/www/rubygem-importmap-rails-rails71/distinfo b/www/rubygem-importmap-rails-rails71/distinfo new file mode 100644 index 000000000000..7e2accab9a2d --- /dev/null +++ b/www/rubygem-importmap-rails-rails71/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708450620 +SHA256 (rubygem/importmap-rails-2.0.1.gem) = e739a6e70c09f797688c6983fa79567ec1edc9becc30d55b3f7cc897b1825586 +SIZE (rubygem/importmap-rails-2.0.1.gem) = 16384 diff --git a/www/rubygem-importmap-rails-rails71/pkg-descr b/www/rubygem-importmap-rails-rails71/pkg-descr new file mode 100644 index 000000000000..184d7013fa42 --- /dev/null +++ b/www/rubygem-importmap-rails-rails71/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.