better CamelCASE support for naming=v8
authorRafael Kitover <rkitover@cpan.org>
Sat, 29 Oct 2011 17:29:27 +0000 (13:29 -0400)
committerRafael Kitover <rkitover@cpan.org>
Sat, 29 Oct 2011 17:36:19 +0000 (13:36 -0400)
commitea3b8f030cb1cd0c41558e757c9d6f0081f8bc05
tree7123426b961411803957d7b4f50cb6a82f526849
parent461637965b8c5b80fd3581c2968e13f0f8a97b8d
better CamelCASE support for naming=v8

The previous method of splitting CamelCase identifiers did not work
identifiers containing words in all caps, such as 'VLANValidID'.

Use 'wordsplit' from String::CamelCase which handles these types of
identifiers correctly for naming=v8 mode, while preserving the old
behavior for v7 mode for monikers, column accessors and relationship
names.

New features related to multischema support also use the v8 mode
implicitly.

Add t/80split_name.t to test the 'split_name' utility sub from ::Utils,
at the heart of this change; for both v8 and v7 modes.
Makefile.PL
lib/DBIx/Class/Schema/Loader/Base.pm
lib/DBIx/Class/Schema/Loader/RelBuilder.pm
lib/DBIx/Class/Schema/Loader/Utils.pm
t/70schema_base_dispatched.t
t/80split_name.t [new file with mode: 0644]