Subject: | Patch to allow "use Mouse::Tiny VERSION" |
Currently "use Mouse::Tiny 0.49" dies with:
Mouse::Tiny does not define $Mouse::Tiny::VERSION--version check failed
at ...
Subject: | Mouse-Tiny-0.49.patch |
--- tool/generate-mouse-tiny.pl 2010-02-07 12:52:48.000000000 +0000
+++ tool/generate-mouse-tiny.pl 2010-02-07 13:00:49.000000000 +0000
@@ -93,9 +93,11 @@
} # unless Mouse.pm is loaded
EOF
-print { $handle } << 'EOF';
+print { $handle } << "EOF";
package Mouse::Tiny;
+our \$VERSION = '$Mouse::Spec::VERSION';
+
Mouse::Exporter->setup_import_methods(also => 'Mouse');
1;