15 years agoUpdate version and release date
Shawn M Moore [Sat, 24 May 2008 17:25:21 +0000]
Update version and release date

15 years agoReplicate spelling fix for initalize_body here.
Dave Rolsky [Sat, 24 May 2008 17:16:24 +0000]
Replicate spelling fix for initalize_body here.

Require Moose 0.41 since that's the first one with the right spelling
of the method.

15 years agoReplicate triggers fix from Moose.pm (gah, this immutable stuff is
Dave Rolsky [Sat, 24 May 2008 16:26:29 +0000]
Replicate triggers fix from Moose.pm (gah, this immutable stuff is
gross)

15 years agoChangeLog entry for make_immutable keyword
Shawn M Moore [Tue, 13 May 2008 06:57:04 +0000]
ChangeLog entry for make_immutable keyword

15 years agomake_immutable keyword was removed
Shawn M Moore [Tue, 13 May 2008 06:43:22 +0000]
make_immutable keyword was removed

16 years agoBump Moose dep to 0.37, release as 0.07
Shawn M Moore [Fri, 7 Mar 2008 10:30:56 +0000]
Bump Moose dep to 0.37, release as 0.07

16 years ago0.06 release
Shawn M Moore [Wed, 5 Mar 2008 16:42:22 +0000]
0.06 release

16 years agoSingleton objects were not singletons when made immutable. We need to
Dave Rolsky [Wed, 5 Mar 2008 04:23:57 +0000]
Singleton objects were not singletons when made immutable. We need to
provide a custom Meta::Method::Constructor so the generated immtable
new() method respects singleton-ness.

This test implements this, along with tests.

Finally, it adds no Moose at the end of all the classes to prevent any
conflicts between Moose's exports and the class's methods. This was a
problem in Meta::Class, where the exported make_immutable was
overriding the one provided by Moose::Meta::Class.

16 years agoupdate ver
Ricardo SIGNES [Sun, 3 Feb 2008 16:10:17 +0000]
update ver

16 years agoreturn existing instances more efficiently
Ricardo SIGNES [Sun, 3 Feb 2008 16:06:51 +0000]
return existing instances more efficiently

16 years agoBump the minimum Moose version to 0.28, because we had a test failure from some guy...
Shawn M Moore [Sat, 26 Jan 2008 15:39:07 +0000]
Bump the minimum Moose version to 0.28, because we had a test failure from some guy running grandpa Moose

16 years agochangelog entry
Ricardo SIGNES [Sat, 26 Jan 2008 15:04:50 +0000]
changelog entry

16 years agoinitialize method
Ricardo SIGNES [Sat, 26 Jan 2008 15:02:25 +0000]
initialize method

16 years agoupdate credits, changelog, version
Ricardo SIGNES [Sat, 26 Jan 2008 14:53:01 +0000]
update credits, changelog, version

16 years agodo not allow double initialization
Ricardo SIGNES [Sat, 26 Jan 2008 14:49:33 +0000]
do not allow double initialization

16 years agoDocumentation and little fixes. This one (0.03) is heading to CPAN
Shawn M Moore [Sun, 16 Dec 2007 19:21:20 +0000]
Documentation and little fixes. This one (0.03) is heading to CPAN

16 years agoDon't use the instance method directly from Object -- use meta->construct_instance
Shawn M Moore [Sun, 16 Dec 2007 19:21:05 +0000]
Don't use the instance method directly from Object -- use meta->construct_instance

16 years agoOptimization: it's really slow to go through new_object for every access so
Shawn M Moore [Sun, 16 Dec 2007 19:11:16 +0000]
Optimization: it's really slow to go through new_object for every access so
return the singleton if we see it already exists, which it will every
single except the first.

It's not particularly Moosey but it'll do for a first CPAN release.

16 years agoMove actual singleton logic out of MooseX::Singleton::Object and into MooseX::Singlet...
Shawn M Moore [Sun, 16 Dec 2007 16:23:23 +0000]
Move actual singleton logic out of MooseX::Singleton::Object and into MooseX::Singleton::Meta::Class.

16 years agoRename Meta::Instance->instantiate to Meta::Instance->get_singleton_instance.
Shawn M Moore [Sun, 16 Dec 2007 16:18:54 +0000]
Rename Meta::Instance->instantiate to Meta::Instance->get_singleton_instance.
Test that default values are set.
Meta::Instance->clone_instance (which is more or less a no-op)

16 years agoRe-implementation. This uses a bit of Moose meta magic to get real singletons.
Shawn M Moore [Sun, 16 Dec 2007 15:21:03 +0000]
Re-implementation. This uses a bit of Moose meta magic to get real singletons.
The basic idea is you can now do:

package Moofty;
use MooseX::Singleton;
has 'config' => (is => 'rw', isa => 'HashRef');

package main;
my $moofty = Moofty->instance;
Moofty->config->{min_frob} = 10; # !!
print $moofty->config->{min_frob}; # 10

16 years agoDo a bit of fixing. instance and new are one and the same. More tests to ensure that...
Shawn M Moore [Sun, 16 Dec 2007 14:01:01 +0000]
Do a bit of fixing. instance and new are one and the same. More tests to ensure that this is so.

16 years agofuck Build.PL
Jonathan Rockway [Sat, 17 Nov 2007 05:47:06 +0000]
fuck Build.PL

17 years agoInitial commit of MooseX::Singleton and MooseX::Service
Anders Nor Berle [Fri, 20 Apr 2007 17:17:04 +0000]
Initial commit of MooseX::Singleton and MooseX::Service