14 years agoMake initialize work
Dave Rolsky [Fri, 25 Dec 2009 15:35:27 +0000]
Make initialize work

14 years agoAdd tests for initialize actually working
Dave Rolsky [Fri, 25 Dec 2009 15:35:17 +0000]
Add tests for initialize actually working

14 years agoTidy code and use Test::Exception
Dave Rolsky [Fri, 25 Dec 2009 15:34:04 +0000]
Tidy code and use Test::Exception

14 years agoAdd a test that singletons are not destroyed (although this doesn't test the real...
Dave Rolsky [Thu, 24 Dec 2009 20:17:45 +0000]
Add a test that singletons are not destroyed (although this doesn't test the real bug report, which involved POE)

15 years agoRemove doubled up code
Dave Rolsky [Fri, 18 Sep 2009 20:41:08 +0000]
Remove doubled up code

15 years agoupdate changes and bump version to 0.21 0.21
Dave Rolsky [Sat, 12 Sep 2009 14:50:23 +0000]
update changes and bump version to 0.21

15 years agofix use lines to load roles, not old class names
Dave Rolsky [Sat, 12 Sep 2009 14:48:57 +0000]
fix use lines to load roles, not old class names

15 years agoupdate ChangeLog, bump version to 0.20 0.20
Dave Rolsky [Fri, 11 Sep 2009 14:28:42 +0000]
update ChangeLog, bump version to 0.20

15 years agoNo need to require the latest Moose
Dave Rolsky [Fri, 11 Sep 2009 14:28:19 +0000]
No need to require the latest Moose

15 years agoRemoving VERSION heading in POD, which we never keep up to dit
Dave Rolsky [Fri, 11 Sep 2009 14:23:42 +0000]
Removing VERSION heading in POD, which we never keep up to dit

15 years agoConverted this extension to use MetaRole
Dave Rolsky [Fri, 11 Sep 2009 14:20:32 +0000]
Converted this extension to use MetaRole

This is a bit gross, but it works, and it cooperates with MX::StrictConstructor, at least.

15 years agoBump to 0.19 0.19
Shawn M Moore [Thu, 9 Jul 2009 19:14:24 +0000]
Bump to 0.19

15 years agoChangelog entry
Shawn M Moore [Thu, 9 Jul 2009 19:14:07 +0000]
Changelog entry

15 years agoRemove README
Shawn M Moore [Thu, 9 Jul 2009 19:13:23 +0000]
Remove README

15 years agorequire the latest Moose 0.18
Dave Rolsky [Sun, 21 Jun 2009 20:24:37 +0000]
require the latest Moose

15 years agobump version to 0.18
Dave Rolsky [Sun, 21 Jun 2009 20:22:57 +0000]
bump version to 0.18

15 years agoAdd changes for next release
Dave Rolsky [Sun, 21 Jun 2009 20:17:42 +0000]
Add changes for next release

15 years agoGet rid of a pointless BEGIN block
Dave Rolsky [Sun, 21 Jun 2009 20:12:54 +0000]
Get rid of a pointless BEGIN block

15 years agos/\t/ /g;
Dave Rolsky [Fri, 24 Apr 2009 18:03:33 +0000]
s/\t/    /g;

15 years agoBegin 0.17 releng 0.17
Shawn M Moore [Fri, 24 Apr 2009 17:57:31 +0000]
Begin 0.17 releng

15 years ago_clear_instance and tests
Hans Dieter Pearcey [Fri, 24 Apr 2009 17:55:29 +0000]
_clear_instance and tests

15 years agopush to origin after tagging 0.16
Dave Rolsky [Fri, 24 Apr 2009 15:14:23 +0000]
push to origin after tagging

15 years agoAdd release date
Dave Rolsky [Fri, 24 Apr 2009 15:13:25 +0000]
Add release date

15 years agobump version to 0.16
Dave Rolsky [Fri, 24 Apr 2009 15:12:51 +0000]
bump version to 0.16

15 years agoAdd changes for 0.16
Dave Rolsky [Fri, 24 Apr 2009 15:06:08 +0000]
Add changes for 0.16

15 years agoAdd _expected_method_class for compat with latest CMOP
Dave Rolsky [Fri, 24 Apr 2009 15:05:02 +0000]
Add _expected_method_class for compat with latest CMOP

15 years agoFix skip list 0.15
Dave Rolsky [Tue, 7 Apr 2009 16:08:28 +0000]
Fix skip list

15 years agoIgnore .git
Dave Rolsky [Tue, 7 Apr 2009 16:08:06 +0000]
Ignore .git

15 years agoAdd skip list
Dave Rolsky [Tue, 7 Apr 2009 16:07:55 +0000]
Add skip list

15 years agoAdd ignore list
Dave Rolsky [Tue, 7 Apr 2009 16:07:01 +0000]
Add ignore list

15 years agoUpdate .shipit for git
Dave Rolsky [Tue, 7 Apr 2009 16:05:38 +0000]
Update .shipit for git

15 years agorequire latest Moose
Dave Rolsky [Tue, 7 Apr 2009 16:05:14 +0000]
require latest Moose

15 years agothis should be version 0.15
Dave Rolsky [Tue, 7 Apr 2009 16:04:18 +0000]
this should be version 0.15

15 years agoUpdate changes for next releaes
Dave Rolsky [Tue, 7 Apr 2009 16:04:03 +0000]
Update changes for next releaes

15 years agomake version 0.16 everywhere
Dave Rolsky [Tue, 7 Apr 2009 14:51:33 +0000]
make version 0.16 everywhere

15 years agoChanges for next version
Dave Rolsky [Sun, 5 Apr 2009 22:25:09 +0000]
Changes for next version

15 years agochanges to work with Moose 0.73_01+
Dave Rolsky [Sun, 5 Apr 2009 22:22:09 +0000]
changes to work with Moose 0.73_01+
modernized handling of constructor class, and modernized the constructor generation itself

15 years agoAdd tests and fix for implicit object construction skipping BUILD &
Dave Rolsky [Fri, 23 Jan 2009 18:19:26 +0000]
Add tests and fix for implicit object construction skipping BUILD &
BUILDARGS.

15 years agoRemoving what I'm pretty darn sure is a bogus "use metaclass" (since
Dave Rolsky [Fri, 23 Jan 2009 17:59:38 +0000]
Removing what I'm pretty darn sure is a bogus "use metaclass" (since
we already set the metaclass in MX::Singleton->init_meta)

15 years agobump version to 0.14 0.14
Dave Rolsky [Thu, 22 Jan 2009 23:09:33 +0000]
bump version to 0.14

15 years agoupdate changes and prereqs for next release
Dave Rolsky [Thu, 22 Jan 2009 22:41:11 +0000]
update changes and prereqs for next release

15 years agoGive ii copyright
Shawn M Moore [Mon, 8 Dec 2008 23:21:55 +0000]
Give ii copyright

15 years agoIt's now probably more Dave's code than my own :)
Shawn M Moore [Mon, 8 Dec 2008 23:21:42 +0000]
It's now probably more Dave's code than my own :)

15 years agobump version to 0.13 0.13
Dave Rolsky [Mon, 8 Dec 2008 17:10:45 +0000]
bump version to 0.13

15 years agoAdd release date
Dave Rolsky [Mon, 8 Dec 2008 17:10:24 +0000]
Add release date

15 years agoThis shuts up a warning I see in my code that uses
Dave Rolsky [Fri, 5 Dec 2008 17:09:30 +0000]
This shuts up a warning I see in my code that uses
MX::Singleton. Unfortunately, I cannot really diagnose why I see it
there and not in the MX::Singleton tests, so I can't add a test. I'm
lame.

15 years agoUpdate changelog
Dave Rolsky [Thu, 4 Dec 2008 21:44:33 +0000]
Update changelog

15 years agosome changes to work the next Moose, making constructor inlining work
Dave Rolsky [Thu, 4 Dec 2008 21:44:13 +0000]
some changes to work the next Moose, making constructor inlining work

16 years agoAdd release date 0.12
Dave Rolsky [Sat, 20 Sep 2008 14:36:06 +0000]
Add release date

16 years agoIncorporate the throw_error bits from Moose turnk
Dave Rolsky [Thu, 18 Sep 2008 15:11:20 +0000]
Incorporate the throw_error bits from Moose turnk

16 years agoprepping for next release
Dave Rolsky [Thu, 18 Sep 2008 15:09:39 +0000]
prepping for next release

16 years agoWill require the next Moose
Dave Rolsky [Mon, 15 Sep 2008 17:08:57 +0000]
Will require the next Moose

16 years agoFixes to work with latest Moose.
Dave Rolsky [Sat, 13 Sep 2008 02:39:42 +0000]
Fixes to work with latest Moose.

16 years agoRequire Moose 0.57 0.11
Dave Rolsky [Fri, 5 Sep 2008 13:18:15 +0000]
Require Moose 0.57

16 years agobump version and updates changes
Dave Rolsky [Fri, 5 Sep 2008 13:17:49 +0000]
bump version and updates changes

16 years agoI'm not sure what changed here but we need to get confess into scope
Dave Rolsky [Fri, 5 Sep 2008 13:16:38 +0000]
I'm not sure what changed here but we need to get confess into scope
or else the constructor blows up.

This may need to change again with the next release.

16 years agobumper version to 0.10 and depend on Moose 0.56 0.10
Dave Rolsky [Mon, 1 Sep 2008 16:43:48 +0000]
bumper version to 0.10 and depend on Moose 0.56

16 years agoFix changelog file name 0.09_02
Dave Rolsky [Fri, 22 Aug 2008 18:38:28 +0000]
Fix changelog file name

16 years agoBump version and add changes for 0.09_02 (just a dependency fix)
Dave Rolsky [Fri, 22 Aug 2008 18:38:04 +0000]
Bump version and add changes for 0.09_02 (just a dependency fix)

16 years agoDoh, forgot to increment the required Moose version before the latest release
Dave Rolsky [Fri, 22 Aug 2008 02:51:54 +0000]
Doh, forgot to increment the required Moose version before the latest release

16 years agoFix date for last release
Dave Rolsky [Thu, 21 Aug 2008 15:05:17 +0000]
Fix date for last release

16 years agoUpdates to work with the latest dev release of Moose
Dave Rolsky [Thu, 21 Aug 2008 14:37:23 +0000]
Updates to work with the latest dev release of Moose

16 years agoFix immutability work with latest Moose (0.51), and require said Moose
Dave Rolsky [Fri, 27 Jun 2008 04:00:12 +0000]
Fix immutability work with latest Moose (0.51), and require said Moose

16 years agoEliminate tabs from ChangeLog
Shawn M Moore [Sat, 24 May 2008 19:23:21 +0000]
Eliminate tabs from ChangeLog

16 years agoUpdate README.
Shawn M Moore [Sat, 24 May 2008 17:30:23 +0000]
Update README.
This is going out as 0.08

16 years agoIgnore auto-generated files
Shawn M Moore [Sat, 24 May 2008 17:25:36 +0000]
Ignore auto-generated files

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

16 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.

16 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)

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

16 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.

17 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