Date: Mon, 09 Mar 2026 18:21:39 +0000 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: 3f352c99841c - main - devel/rubygem-cookstyle: Add rubygem-cookstyle 8.6.4 Message-ID: <69af0fb3.1d5bb.432ff0e4@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=3f352c99841ca3a441861d56acc160a865ed0baa commit 3f352c99841ca3a441861d56acc160a865ed0baa Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2026-03-09 17:51:52 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2026-03-09 18:18:11 +0000 devel/rubygem-cookstyle: Add rubygem-cookstyle 8.6.4 Cookstyle is a code linting tool that helps you to write better Chef Infra cookbooks and InSpec profiles by detecting and automatically correcting style, syntax, logic, and security mistakes in your code. Cookstyle is powered by the RuboCop linting engine. RuboCop ships with over three-hundred rules, or cops, designed to detect common Ruby coding mistakes and enforce a common coding style. We've customized Cookstyle with a subset of those cops that we believe are perfectly tailored for cookbook development. We also ship 260 Chef Infra specific cops that catch common cookbook coding mistakes, clean up portions of code that are no longer necessary, and detect deprecations that prevent cookbooks from running on the latest releases of Chef Infra Client. --- devel/Makefile | 1 + devel/rubygem-cookstyle/Makefile | 22 ++++++++++++++++++++++ devel/rubygem-cookstyle/distinfo | 3 +++ devel/rubygem-cookstyle/files/patch-gemspec | 10 ++++++++++ devel/rubygem-cookstyle/pkg-descr | 11 +++++++++++ 5 files changed, 47 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 35b1d353bb1b..51f503b12a93 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7279,6 +7279,7 @@ SUBDIR += rubygem-contracts SUBDIR += rubygem-contracts016 SUBDIR += rubygem-cookbook-omnifetch + SUBDIR += rubygem-cookstyle SUBDIR += rubygem-cool.io SUBDIR += rubygem-corefines SUBDIR += rubygem-corefoundation diff --git a/devel/rubygem-cookstyle/Makefile b/devel/rubygem-cookstyle/Makefile new file mode 100644 index 000000000000..c82d3287508d --- /dev/null +++ b/devel/rubygem-cookstyle/Makefile @@ -0,0 +1,22 @@ +PORTNAME= cookstyle +PORTVERSION= 8.6.4 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Code linting tool +WWW= https://docs.chef.io/workstation/cookstyle/ \ + https://github.com/chef/cookstyle + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= rubygem-rubocop>=1.84.2:devel/rubygem-rubocop + +USES= gem + +NO_ARCH= yes + +PLIST_FILES= bin/cookstyle + +.include <bsd.port.mk> diff --git a/devel/rubygem-cookstyle/distinfo b/devel/rubygem-cookstyle/distinfo new file mode 100644 index 000000000000..586e5fe7d7c1 --- /dev/null +++ b/devel/rubygem-cookstyle/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1771421404 +SHA256 (rubygem/cookstyle-8.6.4.gem) = 9b9ba8e23449e4892220aba707280734e2d721f3cc9c9b7cfd20d52ee8040cf1 +SIZE (rubygem/cookstyle-8.6.4.gem) = 126464 diff --git a/devel/rubygem-cookstyle/files/patch-gemspec b/devel/rubygem-cookstyle/files/patch-gemspec new file mode 100644 index 000000000000..3b72256f8215 --- /dev/null +++ b/devel/rubygem-cookstyle/files/patch-gemspec @@ -0,0 +1,10 @@ +--- cookstyle.gemspec.orig 2026-02-18 15:04:07 UTC ++++ cookstyle.gemspec +@@ -21,6 +21,6 @@ Gem::Specification.new do |s| + + s.specification_version = 4 + +- s.add_runtime_dependency(%q<rubocop>.freeze, ["= 1.84.2".freeze]) ++ s.add_runtime_dependency(%q<rubocop>.freeze, [">= 1.84.2".freeze]) + end + diff --git a/devel/rubygem-cookstyle/pkg-descr b/devel/rubygem-cookstyle/pkg-descr new file mode 100644 index 000000000000..5b7b4d8568d8 --- /dev/null +++ b/devel/rubygem-cookstyle/pkg-descr @@ -0,0 +1,11 @@ +Cookstyle is a code linting tool that helps you to write better Chef Infra +cookbooks and InSpec profiles by detecting and automatically correcting style, +syntax, logic, and security mistakes in your code. + +Cookstyle is powered by the RuboCop linting engine. RuboCop ships with over +three-hundred rules, or cops, designed to detect common Ruby coding mistakes and +enforce a common coding style. We've customized Cookstyle with a subset of those +cops that we believe are perfectly tailored for cookbook development. We also +ship 260 Chef Infra specific cops that catch common cookbook coding mistakes, +clean up portions of code that are no longer necessary, and detect deprecations +that prevent cookbooks from running on the latest releases of Chef Infra Client.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69af0fb3.1d5bb.432ff0e4>
