Subject: | Minor spelling+style tweaks |
Hello,
I was staring at a bugreport that had your module's output in it ( yay!
) but noticed a few errors and wanted to fix them :)
1. Spelling error in the text block output after the test. Line 83 in
the code should say "solve your problem" not "solve you problem".
2. I was uncertain what version of this module was used to generate the
test, and thought it would be helpful if you could report this.
Attached is a patch which does this. Please let me know if you like
what I did :)
Thanks again!
--
~Apocalypse
Subject: | dzp_tiny.patch |
diff -urbd a/Tiny.pm b/Tiny.pm
--- a/Tiny.pm 2011-03-31 15:52:54.000000000 -0700
+++ b/Tiny.pm 2011-03-31 15:57:21.000000000 -0700
@@ -23,6 +23,9 @@
my $v = "\n";
+# List our own version used to generate this
+$v .= "Generated by {{$my_package}} v{{$my_version}}\n";
+
eval { # no excuses!
# report our Perl details
my $want = {{
@@ -80,7 +83,7 @@
Thanks for using my code. I hope it works for you.
If not, please try and include this output in the bug report.
-That will help me reproduce the issue and solve you problem.
+That will help me reproduce the issue and solve your problem.
EOT
@@ -127,7 +130,9 @@
sub generate_test_from_prereqs {
my ($self) = @_;
my $content = $self->fill_in_string($template, {
- modules => $self->applicable_modules
+ modules => $self->applicable_modules,
+ my_version => __PACKAGE__->VERSION,
+ my_package => __PACKAGE__,
});
return $content;