Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

schwern (1528)

schwern
  (email not shown publicly)
http://schwern.net/
AOL IM: MichaelSchwern (Add Buddy, Send Message)
Jabber: schwern@gmail.com

Schwern can destroy CPAN at his whim.

Journal of schwern (1528)

Thursday October 16, 2008
07:54 PM

Contributing to Method::Signatures

[ #37680 ]

I'm a bit worn out on Method::Signatures for the moment. I want to let things gel a bit, see if Devel::Declare can solve the debugger problem.

Meanwhile, I'm getting lots of feedback from people about features they'd like to see, bugs they've found, etc... The bestest way to contribute to Method::Signatures right now is to write TODO tests. Here's an example, Method::Sigantures currently chokes when there's a comma in the default value because the signature parser just splits on commas.

{
    package Bar;
    use Test::More;
    use Method::Signatures;
 
    TODO: {
        local $TODO = "Cannot handle a default with a comma in it";
 
        ok eval q{
            method hello($msg = "Hello, world!") {
                return $msg;
            }
 
            is( Bar->hello,               "Hello, word!" );
            is( Bar->hello("Greetings!"), "Greetings!" );
        };
        is $@, '';
    }
}

You can mail these to me, or use RT, but the best way to submit them is using the Method-Signatures repository on Github. Fork your own copy of the project via github (which is not as radical as it sounds, its like getting your own branch), make your edits, then make a pull request and I'll integrate it in.

This is about as close to my ideal repository management system as I've yet seen.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.