From 8dec7dd7c115ddbac3769933207022bcd10f21a9 Mon Sep 17 00:00:00 2001
From: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
Date: Wed, 12 Jan 2022 00:56:44 +0800
Subject: [PATCH] databases/rubygem-activemodel70: Add rubygem-activemodel70
 7.0.0

Active Model provides a known set of interfaces for usage in model classes. They
allow for Action Pack helpers to interact with non-Active Record models, for
example. Active Model also helps with building custom ORMs for use outside of
the Rails framework.

Active Model provides a default module that implements the basic API required to
integrate with Action Pack out of the box: ActiveModel::API.

WWW: https://rubyonrails.org/
WWW: https://github.com/rails/rails/tree/main/activemodel
---
 databases/Makefile                        |  1 +
 databases/rubygem-activemodel70/Makefile  | 22 ++++++++++++++++++++++
 databases/rubygem-activemodel70/distinfo  |  3 +++
 databases/rubygem-activemodel70/pkg-descr | 10 ++++++++++
 4 files changed, 36 insertions(+)
 create mode 100644 databases/rubygem-activemodel70/Makefile
 create mode 100644 databases/rubygem-activemodel70/distinfo
 create mode 100644 databases/rubygem-activemodel70/pkg-descr

diff --git a/databases/Makefile b/databases/Makefile
index 84c6de025900..d8c84dafdb60 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -902,6 +902,7 @@
     SUBDIR += rubygem-activemodel52
     SUBDIR += rubygem-activemodel60
     SUBDIR += rubygem-activemodel61
+    SUBDIR += rubygem-activemodel70
     SUBDIR += rubygem-activerecord-explain-analyze
     SUBDIR += rubygem-activerecord-import
     SUBDIR += rubygem-activerecord-jdbc-adapter
diff --git a/databases/rubygem-activemodel70/Makefile b/databases/rubygem-activemodel70/Makefile
new file mode 100644
index 000000000000..4a5b8f2f0df1
--- /dev/null
+++ b/databases/rubygem-activemodel70/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	activemodel
+PORTVERSION=	7.0.0
+CATEGORIES=	databases rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	70
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Toolkit for building modeling frameworks like Active Record
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS=	rubygem-activesupport70>=${PORTVERSION}:devel/rubygem-activesupport70
+
+USES=		gem
+USE_RUBY=	yes
+
+NO_ARCH=	yes
+
+PORTSCOUT=	limit:^7\.0\.
+
+.include <bsd.port.mk>
diff --git a/databases/rubygem-activemodel70/distinfo b/databases/rubygem-activemodel70/distinfo
new file mode 100644
index 000000000000..b70676836fe7
--- /dev/null
+++ b/databases/rubygem-activemodel70/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1641045754
+SHA256 (rubygem/activemodel-7.0.0.gem) = dce2fcbdbbe791b4b3168a9e46d0fdb1f25d36915b437e5296aa1aa2834120d5
+SIZE (rubygem/activemodel-7.0.0.gem) = 60928
diff --git a/databases/rubygem-activemodel70/pkg-descr b/databases/rubygem-activemodel70/pkg-descr
new file mode 100644
index 000000000000..caabee85c54f
--- /dev/null
+++ b/databases/rubygem-activemodel70/pkg-descr
@@ -0,0 +1,10 @@
+Active Model provides a known set of interfaces for usage in model classes. They
+allow for Action Pack helpers to interact with non-Active Record models, for
+example. Active Model also helps with building custom ORMs for use outside of
+the Rails framework.
+
+Active Model provides a default module that implements the basic API required to
+integrate with Action Pack out of the box: ActiveModel::API.
+
+WWW: https://rubyonrails.org/
+WWW: https://github.com/rails/rails/tree/main/activemodel
-- 
GitLab