aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorMichael Moll <mmoll@FreeBSD.org>2015-11-30 05:04:36 +0800
committerMichael Moll <mmoll@FreeBSD.org>2015-11-30 05:04:36 +0800
commitc14f991164011fe2e74482c09541042f84dc500e (patch)
treed5a5aa35932147f20f41ddd03f13121092f251e0 /devel
parent51f8b3adae26e6943a615940fc1c4ed9da1d5e66 (diff)
downloadfreebsd-ports-gnome-c14f991164011fe2e74482c09541042f84dc500e.tar.gz
freebsd-ports-gnome-c14f991164011fe2e74482c09541042f84dc500e.tar.zst
freebsd-ports-gnome-c14f991164011fe2e74482c09541042f84dc500e.zip
new port: devel/rubygem-titlecase
A set of methods added to the String class to allow title casing of strings: - capitalize each word - downcase each of the small_words - words with capitals after the first character are left alone - words with periods are left alone - first and last word always capitalized - small words after colons are capitalized WWW: https://github.com/samsouder/titlecase
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/rubygem-titlecase/Makefile18
-rw-r--r--devel/rubygem-titlecase/distinfo2
-rw-r--r--devel/rubygem-titlecase/pkg-descr9
4 files changed, 30 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 4ef4f71dff7b..2b92c44f8976 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5045,6 +5045,7 @@
SUBDIR += rubygem-timers
SUBDIR += rubygem-tins
SUBDIR += rubygem-tins0
+ SUBDIR += rubygem-titlecase
SUBDIR += rubygem-toml
SUBDIR += rubygem-transaction-simple
SUBDIR += rubygem-travis
diff --git a/devel/rubygem-titlecase/Makefile b/devel/rubygem-titlecase/Makefile
new file mode 100644
index 000000000000..244b082cbcf1
--- /dev/null
+++ b/devel/rubygem-titlecase/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+PORTNAME= titlecase
+PORTVERSION= 0.1.1
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+
+MAINTAINER= ruby@FreeBSD.org
+COMMENT= Ruby string extensions to add title case support
+
+LICENSE= MIT
+
+NO_ARCH= yes
+USE_RUBY= yes
+USE_RUBYGEMS= yes
+RUBYGEM_AUTOPLIST= yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-titlecase/distinfo b/devel/rubygem-titlecase/distinfo
new file mode 100644
index 000000000000..9fc7a007f090
--- /dev/null
+++ b/devel/rubygem-titlecase/distinfo
@@ -0,0 +1,2 @@
+SHA256 (rubygem/titlecase-0.1.1.gem) = 513fc4233f1f03ee96a8fa149c1c7001fb032f95899c95c1420c6f1547235dda
+SIZE (rubygem/titlecase-0.1.1.gem) = 5632
diff --git a/devel/rubygem-titlecase/pkg-descr b/devel/rubygem-titlecase/pkg-descr
new file mode 100644
index 000000000000..263ad151333b
--- /dev/null
+++ b/devel/rubygem-titlecase/pkg-descr
@@ -0,0 +1,9 @@
+A set of methods added to the String class to allow title casing of strings:
+- capitalize each word
+- downcase each of the small_words
+- words with capitals after the first character are left alone
+- words with periods are left alone
+- first and last word always capitalized
+- small words after colons are capitalized
+
+WWW: https://github.com/samsouder/titlecase