Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2024 06:29:43 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8eb3fc8f0184 - main - www/rubygem-bullet_train-fields: Add rubygem-bullet_train-fields 1.7.2
Message-ID:  <202405160629.44G6Th4p032712@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8eb3fc8f0184e14704ff2e483344e9719f2062ce

commit 8eb3fc8f0184e14704ff2e483344e9719f2062ce
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-16 06:13:58 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-16 06:21:52 +0000

    www/rubygem-bullet_train-fields: Add rubygem-bullet_train-fields 1.7.2
    
    Bullet Train includes a collection of view partials that are intended to DRY-up
    as much redundant presentation logic as possible for different types of form
    fields without taking on a third-party dependency like Formtastic.
    
    These form field partials standardize and centralize the following behavior
    across all form fields that use them:
    - Apply theme styling and classes.
    - Display any error messages for a specific field inline under the field itself.
    - Display a stylized asterisk next to the label of fields that are known to be
      required.
    - Any labels, placeholder values, and help text are defined in a standardized
      way in the model's localization Yaml file.
    - For fields presenting a static list of options (e.g. a list of buttons or a
      select field) the options can be defined in the localization Yaml file.
---
 www/Makefile                              |  1 +
 www/rubygem-bullet_train-fields/Makefile  | 22 ++++++++++++++++++++++
 www/rubygem-bullet_train-fields/distinfo  |  3 +++
 www/rubygem-bullet_train-fields/pkg-descr | 14 ++++++++++++++
 4 files changed, 40 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index f2ec5d3eedb3..fffd21ca0032 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1967,6 +1967,7 @@
     SUBDIR += rubygem-bootstrap-sass
     SUBDIR += rubygem-browser
     SUBDIR += rubygem-bullet_train
+    SUBDIR += rubygem-bullet_train-fields
     SUBDIR += rubygem-cal-heatmap-rails
     SUBDIR += rubygem-carrierwave
     SUBDIR += rubygem-carrierwave1
diff --git a/www/rubygem-bullet_train-fields/Makefile b/www/rubygem-bullet_train-fields/Makefile
new file mode 100644
index 000000000000..7dd326b07578
--- /dev/null
+++ b/www/rubygem-bullet_train-fields/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	bullet_train-fields
+PORTVERSION=	1.7.2
+CATEGORIES=	www rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Bullet Train Fields
+WWW=		https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train-fields
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS=	rubygem-chronic>=0:devel/rubygem-chronic \
+		rubygem-cloudinary>=0:www/rubygem-cloudinary \
+		rubygem-phonelib>=0:devel/rubygem-phonelib \
+		rubygem-rails71>=6.0.0:www/rubygem-rails71
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-bullet_train-fields/distinfo b/www/rubygem-bullet_train-fields/distinfo
new file mode 100644
index 000000000000..d9f07c20ebd6
--- /dev/null
+++ b/www/rubygem-bullet_train-fields/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1714227830
+SHA256 (rubygem/bullet_train-fields-1.7.2.gem) = 6edbfb189e451d574fe380c40e85f66eee17c9dac86e2083158018d217660f1e
+SIZE (rubygem/bullet_train-fields-1.7.2.gem) = 20992
diff --git a/www/rubygem-bullet_train-fields/pkg-descr b/www/rubygem-bullet_train-fields/pkg-descr
new file mode 100644
index 000000000000..f6b87613f89e
--- /dev/null
+++ b/www/rubygem-bullet_train-fields/pkg-descr
@@ -0,0 +1,14 @@
+Bullet Train includes a collection of view partials that are intended to DRY-up
+as much redundant presentation logic as possible for different types of form
+fields without taking on a third-party dependency like Formtastic.
+
+These form field partials standardize and centralize the following behavior
+across all form fields that use them:
+- Apply theme styling and classes.
+- Display any error messages for a specific field inline under the field itself.
+- Display a stylized asterisk next to the label of fields that are known to be
+  required.
+- Any labels, placeholder values, and help text are defined in a standardized
+  way in the model's localization Yaml file.
+- For fields presenting a static list of options (e.g. a list of buttons or a
+  select field) the options can be defined in the localization Yaml file.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405160629.44G6Th4p032712>