summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorobache <obache>2014-01-17 13:01:09 +0000
committerobache <obache>2014-01-17 13:01:09 +0000
commiteab9357a66a50c23acf2fd52c6781cfcd61c45da (patch)
tree00fb91c5aeed40a7b09f1413c9785070722eadde /misc
parent1aca9c4cf38a3365e1abdfbc456d29b9f75f88fe (diff)
downloadpkgsrc-eab9357a66a50c23acf2fd52c6781cfcd61c45da.tar.gz
Import ruby-memoizable-0.4.0 as misc/ruby-memoizable.
part of PR pkg/48447 Memoization is an optimization that saves the return value of a method so it doesn't need to be re-computed every time that method is called.
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-memoizable/DESCR2
-rw-r--r--misc/ruby-memoizable/Makefile17
-rw-r--r--misc/ruby-memoizable/PLIST30
-rw-r--r--misc/ruby-memoizable/distinfo5
4 files changed, 54 insertions, 0 deletions
diff --git a/misc/ruby-memoizable/DESCR b/misc/ruby-memoizable/DESCR
new file mode 100644
index 00000000000..e3a07d83c3e
--- /dev/null
+++ b/misc/ruby-memoizable/DESCR
@@ -0,0 +1,2 @@
+Memoization is an optimization that saves the return value of a method
+so it doesn't need to be re-computed every time that method is called.
diff --git a/misc/ruby-memoizable/Makefile b/misc/ruby-memoizable/Makefile
new file mode 100644
index 00000000000..120a50b72de
--- /dev/null
+++ b/misc/ruby-memoizable/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2014/01/17 13:01:09 obache Exp $
+#
+
+DISTNAME= memoizable-0.4.0
+CATEGORIES= misc
+
+MAINTAINER= tsutsui@NetBSD.org
+HOMEPAGE= https://github.com/dkubb/memoizable
+COMMENT= Memoize method return values
+LICENSE= mit
+
+DEPENDS+= ${RUBY_PKGPREFIX}-thread_safe>=0.1.3:../../misc/ruby-thread_safe
+
+USE_LANGUAGES= # none
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/ruby-memoizable/PLIST b/misc/ruby-memoizable/PLIST
new file mode 100644
index 00000000000..acddd6bcc9a
--- /dev/null
+++ b/misc/ruby-memoizable/PLIST
@@ -0,0 +1,30 @@
+@comment $NetBSD: PLIST,v 1.1 2014/01/17 13:01:09 obache Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/CONTRIBUTING.md
+${GEM_LIBDIR}/LICENSE.md
+${GEM_LIBDIR}/README.md
+${GEM_LIBDIR}/Rakefile
+${GEM_LIBDIR}/lib/memoizable.rb
+${GEM_LIBDIR}/lib/memoizable/instance_methods.rb
+${GEM_LIBDIR}/lib/memoizable/memory.rb
+${GEM_LIBDIR}/lib/memoizable/method_builder.rb
+${GEM_LIBDIR}/lib/memoizable/module_methods.rb
+${GEM_LIBDIR}/lib/memoizable/version.rb
+${GEM_LIBDIR}/memoizable.gemspec
+${GEM_LIBDIR}/spec/integration/serializable_spec.rb
+${GEM_LIBDIR}/spec/shared/call_super_shared_spec.rb
+${GEM_LIBDIR}/spec/shared/command_method_behavior.rb
+${GEM_LIBDIR}/spec/spec_helper.rb
+${GEM_LIBDIR}/spec/unit/memoizable/class_methods/included_spec.rb
+${GEM_LIBDIR}/spec/unit/memoizable/fixtures/classes.rb
+${GEM_LIBDIR}/spec/unit/memoizable/instance_methods/freeze_spec.rb
+${GEM_LIBDIR}/spec/unit/memoizable/instance_methods/memoize_spec.rb
+${GEM_LIBDIR}/spec/unit/memoizable/memory_spec.rb
+${GEM_LIBDIR}/spec/unit/memoizable/method_builder/call_spec.rb
+${GEM_LIBDIR}/spec/unit/memoizable/method_builder/class_methods/new_spec.rb
+${GEM_LIBDIR}/spec/unit/memoizable/method_builder/original_method_spec.rb
+${GEM_LIBDIR}/spec/unit/memoizable/module_methods/included_spec.rb
+${GEM_LIBDIR}/spec/unit/memoizable/module_methods/memoize_spec.rb
+${GEM_LIBDIR}/spec/unit/memoizable/module_methods/memoized_predicate_spec.rb
+${GEM_LIBDIR}/spec/unit/memoizable/module_methods/unmemoized_instance_method_spec.rb
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff --git a/misc/ruby-memoizable/distinfo b/misc/ruby-memoizable/distinfo
new file mode 100644
index 00000000000..72185c47292
--- /dev/null
+++ b/misc/ruby-memoizable/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/01/17 13:01:09 obache Exp $
+
+SHA1 (memoizable-0.4.0.gem) = 38e0ed64c68974cc7c6bb14e321428b235aa7ab8
+RMD160 (memoizable-0.4.0.gem) = a5dec95e22ccab01e5cf45aa1549a755998cbbf5
+Size (memoizable-0.4.0.gem) = 12288 bytes