summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/ruby-globalid/DESCR12
-rw-r--r--devel/ruby-globalid/Makefile14
-rw-r--r--devel/ruby-globalid/PLIST14
-rw-r--r--devel/ruby-globalid/distinfo6
4 files changed, 46 insertions, 0 deletions
diff --git a/devel/ruby-globalid/DESCR b/devel/ruby-globalid/DESCR
new file mode 100644
index 00000000000..b4360639129
--- /dev/null
+++ b/devel/ruby-globalid/DESCR
@@ -0,0 +1,12 @@
+A Global ID is an app wide URI that uniquely identifies a model
+instance. This is helpful when you need a single identifier to
+reference different classes of objects. One example is job
+scheduling. We need to reference a model object rather than serialize
+the object itself. We can pass a Global ID that can be used to locate
+the model when it's time to perform the job. The job scheduler doesn't
+need to know the details of model naming and IDs, just that it has a
+global identifier that references a model. Another example is a
+drop-down list of options, consisting of both Users and
+Groups. Normally we'd need to come up with our own ad hoc scheme to
+reference them. With Global IDs, we have a universal identifier that
+works for objects of both classes.
diff --git a/devel/ruby-globalid/Makefile b/devel/ruby-globalid/Makefile
new file mode 100644
index 00000000000..304df4b14ac
--- /dev/null
+++ b/devel/ruby-globalid/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2017/04/21 21:07:09 minskim Exp $
+
+DISTNAME= globalid-0.4.0
+CATEGORIES= devel
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://www.rubyonrails.org/
+COMMENT= Reference models by URI
+LICENSE= mit
+
+DEPENDS+= ${RUBY_PKGPREFIX}-activesupport>=4.2.0:../../devel/ruby-activesupport42
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby-globalid/PLIST b/devel/ruby-globalid/PLIST
new file mode 100644
index 00000000000..e66634a30c3
--- /dev/null
+++ b/devel/ruby-globalid/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2017/04/21 21:07:09 minskim Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/MIT-LICENSE
+${GEM_LIBDIR}/README.md
+${GEM_LIBDIR}/lib/global_id.rb
+${GEM_LIBDIR}/lib/global_id/global_id.rb
+${GEM_LIBDIR}/lib/global_id/identification.rb
+${GEM_LIBDIR}/lib/global_id/locator.rb
+${GEM_LIBDIR}/lib/global_id/railtie.rb
+${GEM_LIBDIR}/lib/global_id/signed_global_id.rb
+${GEM_LIBDIR}/lib/global_id/uri/gid.rb
+${GEM_LIBDIR}/lib/global_id/verifier.rb
+${GEM_LIBDIR}/lib/globalid.rb
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff --git a/devel/ruby-globalid/distinfo b/devel/ruby-globalid/distinfo
new file mode 100644
index 00000000000..83f208ef69f
--- /dev/null
+++ b/devel/ruby-globalid/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/04/21 21:07:09 minskim Exp $
+
+SHA1 (globalid-0.4.0.gem) = 14070326d38485285bab9909c96b39aa6b6ddffc
+RMD160 (globalid-0.4.0.gem) = 61741bdb7ed6e09385c49f6a98ba8e7afe140193
+SHA512 (globalid-0.4.0.gem) = 7ec40db55495c374c9051a816a74cabff35aa1f24ec17f19950174b498ddaad60dcd26236d76d340e0b7dd885237bf5a9e71040cafe51dd8ab193eae43d2adc1
+Size (globalid-0.4.0.gem) = 12800 bytes