From nobody Wed Nov 01 07:59:25 2023 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 4SKztP6Rmdz4ywwm; Wed, 1 Nov 2023 07:59:25 +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 4SKztP4XkLz4qk7; Wed, 1 Nov 2023 07:59:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698825565; 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=2/8Nx5SX10wtw0wSjG38tuPX59TnP9OySs4y5e7ZZHg=; b=Ven1x/D0r6yao872e3u40yq9kSumeqzBDyrgAm0NPJvR2rndSiVlOiWAKGGtpY6FE/f+hb SSJRqlvMzCtpcMY2f9W/xmbelc2/yg6S3y9VGJIruo4xf81r6yRPImrncseWV2rJdxt6r8 VCghK/YGmoJIUyQuFYdyQX9WmeUPbm+xIcsNWtzdCULmS2gXvHBPHuZVKNV57GpuUTxLpQ Zf3tgenVWN8PY7JPl/MiVS0YGx+10MUrp/cKXJ1qR1RKTgQ5zvRF7smnNnAGaVxkh1Xexb 5jc/OW06Gs0mv/2v+rJP2Fw650WPwjXmJZoYyS9Ci1gr+VP0Q3B3AzV22Zs8Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698825565; 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=2/8Nx5SX10wtw0wSjG38tuPX59TnP9OySs4y5e7ZZHg=; b=gh4VdW1fDB+F7A92ing3idnTeRX4JP5HMpbmLHusYHVGcQ7055Mvb02a8YoxE1oz8vwlvP PmABJiadVQLLUaH3XMxAHDug25K8nG9rS+U+ifspxt2vF8pdaH8QPDVLyiR9uVRplJYAjV 1tK/gAAbRwa2TTFtbfrzpXyFg5j4sAz6sM4VdPvIP4kofHOiCJTjE9XY4zjcre34nsXdGK QMDrtwoNnlwg9BHFLQAcf1fv0SBkw35yV5TqKx7nPHfU1/P+39oWPj3jWqDrqRtOCe1F0A zkakAqtcaZSHBoLW6E/41nfZAhWX2cpzRtRcVwSpgHNome0E6kiKLVAJtMNUHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698825565; a=rsa-sha256; cv=none; b=eqMk0xWq6/dSu1dD4idCAys9JI5rNLZMKD9WDmvGHcYgsG1KS/0F/pmA1MK2xlz5bBeFCB tZ+mpHR96iRJZegAU7cJ3PSgz5rU8dAL3lNtxZbd2w3JyHVssL4lKeORkLQsMucPYe7TVg is7N3GGOmtu+8MTqPrWlhBewg8YPZaR1qykmbFSUxP/2w1iu8mhmMWKIo/iutlkO00qkWn yvuwvublzTjcBQT9X9rDXeJ9bTui3TxLRcEMV95uuaJMVqt2Q/cS1ZNcFsw/Mysh7L8/On 0PuJZ36zMgao/OplY3s3brAOD3BgWGEPRpUGYL8xbvzlcstYA6JhqebW4ryizA== 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 4SKztP2mmnzdtv; Wed, 1 Nov 2023 07:59:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A17xPM8045646; Wed, 1 Nov 2023 07:59:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A17xP0F045643; Wed, 1 Nov 2023 07:59:25 GMT (envelope-from git) Date: Wed, 1 Nov 2023 07:59:25 GMT Message-Id: <202311010759.3A17xP0F045643@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: d414bf7c3780 - main - www/rubygem-importmap-rails-rails70: Add rubygem-importmap-rails-rails70 1.2.1 (copied from rubygem-importmap-rails) 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: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: 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: d414bf7c3780b74c1a38875db9b21db233763206 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d414bf7c3780b74c1a38875db9b21db233763206 commit d414bf7c3780b74c1a38875db9b21db233763206 Author: Po-Chuan Hsieh AuthorDate: 2023-11-01 07:56:33 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-11-01 07:56:33 +0000 www/rubygem-importmap-rails-rails70: Add rubygem-importmap-rails-rails70 1.2.1 (copied from rubygem-importmap-rails) --- www/Makefile | 1 + www/rubygem-importmap-rails-rails70/Makefile | 21 +++++++++++++++++++++ www/rubygem-importmap-rails-rails70/distinfo | 3 +++ www/rubygem-importmap-rails-rails70/pkg-descr | 17 +++++++++++++++++ 4 files changed, 42 insertions(+) diff --git a/www/Makefile b/www/Makefile index 358665580871..ec5ec35737bf 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2062,6 +2062,7 @@ SUBDIR += rubygem-httpi SUBDIR += rubygem-hurley SUBDIR += rubygem-importmap-rails + SUBDIR += rubygem-importmap-rails-rails70 SUBDIR += rubygem-innate SUBDIR += rubygem-jekyll SUBDIR += rubygem-jekyll-sanity diff --git a/www/rubygem-importmap-rails-rails70/Makefile b/www/rubygem-importmap-rails-rails70/Makefile new file mode 100644 index 000000000000..bc358ed9773b --- /dev/null +++ b/www/rubygem-importmap-rails-rails70/Makefile @@ -0,0 +1,21 @@ +PORTNAME= importmap-rails +PORTVERSION= 1.2.1 +CATEGORIES= www rubygems +MASTER_SITES= RG +PKGNAMESUFFIX= -rails70 + +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-actionpack70>=6.0.0:www/rubygem-actionpack70 \ + rubygem-railties70>=6.0.0:www/rubygem-railties70 + +USES= gem + +NO_ARCH= yes + +.include diff --git a/www/rubygem-importmap-rails-rails70/distinfo b/www/rubygem-importmap-rails-rails70/distinfo new file mode 100644 index 000000000000..ba8b42df80c0 --- /dev/null +++ b/www/rubygem-importmap-rails-rails70/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1697330196 +SHA256 (rubygem/importmap-rails-1.2.1.gem) = 197251346584835422e48ba479aa02b47be955d9204548ac0d3b3531cd90b3ea +SIZE (rubygem/importmap-rails-1.2.1.gem) = 77824 diff --git a/www/rubygem-importmap-rails-rails70/pkg-descr b/www/rubygem-importmap-rails-rails70/pkg-descr new file mode 100644 index 000000000000..184d7013fa42 --- /dev/null +++ b/www/rubygem-importmap-rails-rails70/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.