Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

v0.02 release

  • Loading branch information...
commit befa6a6b52aacab6e21608e915ffdd889e786455 1 parent d9fa318
sshaw authored
Showing with 13 additions and 1 deletion.
  1. +4 −0 Changes
  2. +4 −0 README.pod
  3. +5 −1 lib/Mojolicious/Command/secret.pm
View
4 Changes
@@ -0,0 +1,4 @@
+-------------------------
+2012-08-12 v0.02
+-------------------------
+* Added Mojolicious 3.0 support and version requirement
View
4 README.pod
@@ -34,6 +34,10 @@ the C<-p> option and the secret will be printed to C<STDOUT> instead:
Default options can be added to the C<MOJO_SECRET_OPTIONS> environment variable.
+=head1 SEE ALSO
+
+L<Crypt::URandom>, L<Crypt::OpenSSL::Random>
+
=head1 AUTHOR
(c) 2012 Skye Shaw
View
6 lib/Mojolicious/Command/secret.pm
@@ -42,7 +42,7 @@ sub run
my $path = $filename eq 'Mojolicious/Lite.pm' ? $0 : File::Spec->catdir('lib', $filename);
# If we're called as `mojo` just print the secret
- my $base = join '/', (File::Spec->splitdir($path))[-2,-1];
+ my $base = join '/', (File::Spec->splitdir($path))[-2,-1]; # Warning if perl ./app.pl secret
if($print || $base eq 'bin/mojo') {
print "$secret\n";
return;
@@ -156,6 +156,10 @@ the C<-p> option and the secret will be printed to C<STDOUT> instead:
Default options can be added to the C<MOJO_SECRET_OPTIONS> environment variable.
+=head1 SEE ALSO
+
+L<Crypt::URandom>, L<Crypt::OpenSSL::Random>
+
=head1 AUTHOR
(c) 2012 Skye Shaw
Please sign in to comment.
Something went wrong with that request. Please try again.