Date: Wed, 11 Mar 2026 05:12:10 +0000 From: Xin LI <delphij@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 8cce161fb0a6 - main - devel/rubygem-bullet: Add rubygem-bullet 8.1.0 Message-ID: <69b0f9aa.1c786.2ecd15a7@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/ports/commit/?id=8cce161fb0a6d2b697e3b2fb3971c0748296cc60 commit 8cce161fb0a6d2b697e3b2fb3971c0748296cc60 Author: Xin LI <delphij@FreeBSD.org> AuthorDate: 2026-03-11 05:11:51 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2026-03-11 05:11:51 +0000 devel/rubygem-bullet: Add rubygem-bullet 8.1.0 Bullet is a development tool that helps increase application performance by reducing the number of queries it makes. It detects N+1 queries, unused eager loading, and suggests counter cache usage. Also add rubygem-bullet-rails72 slave port for Rails 7.2 compatibility. --- devel/Makefile | 2 ++ devel/rubygem-bullet-rails72/Makefile | 7 +++++++ devel/rubygem-bullet/Makefile | 23 +++++++++++++++++++++++ devel/rubygem-bullet/distinfo | 3 +++ devel/rubygem-bullet/pkg-descr | 16 ++++++++++++++++ 5 files changed, 51 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 51f503b12a93..0c33ed432577 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7221,6 +7221,8 @@ SUBDIR += rubygem-buftok SUBDIR += rubygem-bugspots SUBDIR += rubygem-builder + SUBDIR += rubygem-bullet + SUBDIR += rubygem-bullet-rails72 SUBDIR += rubygem-byebug SUBDIR += rubygem-c21e SUBDIR += rubygem-cabin diff --git a/devel/rubygem-bullet-rails72/Makefile b/devel/rubygem-bullet-rails72/Makefile new file mode 100644 index 000000000000..b179d6691105 --- /dev/null +++ b/devel/rubygem-bullet-rails72/Makefile @@ -0,0 +1,7 @@ +PKGNAMESUFFIX= -rails72 + +ACTIVESUPPORT_VERSION= 72 + +MASTERDIR= ${.CURDIR}/../rubygem-bullet + +.include "${MASTERDIR}/Makefile" diff --git a/devel/rubygem-bullet/Makefile b/devel/rubygem-bullet/Makefile new file mode 100644 index 000000000000..674ee48416e1 --- /dev/null +++ b/devel/rubygem-bullet/Makefile @@ -0,0 +1,23 @@ +PORTNAME= bullet +PORTVERSION= 8.1.0 +CATEGORIES= devel rubygems +MASTER_SITES= RG +PKGNAMESUFFIX?= # empty for base port + +MAINTAINER= ruby@FreeBSD.org +COMMENT= Help to kill N+1 queries and unused eager loading +WWW= https://github.com/flyerhzm/bullet + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/MIT-LICENSE + +# Default to ActiveSupport 7.1 for the base port, can be overridden by slave ports +ACTIVESUPPORT_VERSION?= 71 +RUN_DEPENDS= rubygem-activesupport${ACTIVESUPPORT_VERSION}>=3.0.0:devel/rubygem-activesupport${ACTIVESUPPORT_VERSION} \ + rubygem-uniform_notifier>=1.11:devel/rubygem-uniform_notifier + +USES= gem + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/rubygem-bullet/distinfo b/devel/rubygem-bullet/distinfo new file mode 100644 index 000000000000..3fb102ed49a4 --- /dev/null +++ b/devel/rubygem-bullet/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1761895784 +SHA256 (rubygem/bullet-8.1.0.gem) = 604b7e2636ec2137dcab3ba61a56248c39a0004a0c9405d58bad0686d23b98ff +SIZE (rubygem/bullet-8.1.0.gem) = 30208 diff --git a/devel/rubygem-bullet/pkg-descr b/devel/rubygem-bullet/pkg-descr new file mode 100644 index 000000000000..489d1e7a752f --- /dev/null +++ b/devel/rubygem-bullet/pkg-descr @@ -0,0 +1,16 @@ +Bullet is a development tool designed to help increase your application's +performance by reducing the number of queries it makes. It will watch your +queries while you develop your application and notify you when you should +add eager loading (N+1 queries), when you're using eager loading that isn't +necessary and when you should use counter cache. + +Best practice is to use Bullet in development mode or custom mode +(staging, profile, etc). The last thing you want is your clients getting +alerts about how lazy you are. + +Key features: +- Detects N+1 queries automatically +- Identifies unused eager loading +- Suggests counter cache usage +- Multiple notification methods (log, alert, console, etc.) +- Integration with popular Rails applicationshome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69b0f9aa.1c786.2ecd15a7>
