aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2024-03-02 03:47:14 +0000
committerXin LI <delphij@FreeBSD.org>2024-03-02 03:47:14 +0000
commit71a8b2d03fefb767f3f4eb61d4d2b4289ed3ed0e (patch)
tree52bf82d4d24246e97b7b36de3017d0cea1ec9952
parentc73f4c80abb704a619b72e32a8578cad8e9e55aa (diff)
devel/rubygem-rubocop-rails: Add a new port
rubygem-rubocop-rails is a RuboCop extension focused on enforcing Rails best practices and coding conventions.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/rubygem-rubocop-rails/Makefile24
-rw-r--r--devel/rubygem-rubocop-rails/distinfo3
-rw-r--r--devel/rubygem-rubocop-rails/pkg-descr2
4 files changed, 30 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index e41c91a9b0e3..39bd6b397fbb 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7375,6 +7375,7 @@
SUBDIR += rubygem-rubocop-capybara
SUBDIR += rubygem-rubocop-factory_bot
SUBDIR += rubygem-rubocop-performance
+ SUBDIR += rubygem-rubocop-rails
SUBDIR += rubygem-rubocop-rake
SUBDIR += rubygem-rubocop-rspec
SUBDIR += rubygem-ruby-atmos-pure
diff --git a/devel/rubygem-rubocop-rails/Makefile b/devel/rubygem-rubocop-rails/Makefile
new file mode 100644
index 000000000000..5697a5fb7497
--- /dev/null
+++ b/devel/rubygem-rubocop-rails/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= rubocop-rails
+PORTVERSION= 2.23.1
+CATEGORIES= devel ruby
+MASTER_SITES= RG
+
+MAINTAINER= ruby@FreeBSD.org
+COMMENT= RuboCop extension focused on enforcing Rails coding conventions
+WWW= https://github.com/rubocop/rubocop-rails
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS= rubygem-activesupport61>=4.2.0:devel/rubygem-activesupport61 \
+ rubygem-rack>=1.1:www/rubygem-rack \
+ rubygem-rubocop>=1.33.0:devel/rubygem-rubocop \
+ rubygem-rubocop-ast>=1.30.0:devel/rubygem-rubocop-ast
+
+USES= cpe gem
+
+NO_ARCH= yes
+
+CPE_VENDOR= rubocop_project
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-rubocop-rails/distinfo b/devel/rubygem-rubocop-rails/distinfo
new file mode 100644
index 000000000000..48ded66251d7
--- /dev/null
+++ b/devel/rubygem-rubocop-rails/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1709264949
+SHA256 (rubygem/rubocop-rails-2.23.1.gem) = 50944643fec4832fda202258e41c22b9115bcf21916ab952e005f6b8bb49a3c5
+SIZE (rubygem/rubocop-rails-2.23.1.gem) = 107008
diff --git a/devel/rubygem-rubocop-rails/pkg-descr b/devel/rubygem-rubocop-rails/pkg-descr
new file mode 100644
index 000000000000..9a2f9dbc8f81
--- /dev/null
+++ b/devel/rubygem-rubocop-rails/pkg-descr
@@ -0,0 +1,2 @@
+RuboCop Rails is a RuboCop extension focused on enforcing Rails best practices
+and coding conventions.