diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-02 09:20:24 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-02 09:20:24 +1300 |
commit | 1785a1d8b39e8435c195c3be7067085f0dc527e7 (patch) | |
tree | 77d9ab586783aba7a5d4d703fcc2eebfa503eed6 | |
parent | Merge branch 'release/v0.05' (diff) | |
parent | Use correct fractional second separator (diff) | |
download | Music-Lyrics-LRC-1785a1d8b39e8435c195c3be7067085f0dc527e7.tar.gz Music-Lyrics-LRC-1785a1d8b39e8435c195c3be7067085f0dc527e7.zip |
Merge branch 'hotfix/v0.06'v0.06
* hotfix/v0.06:
Use correct fractional second separator
Bump version number
-rw-r--r-- | Changes | 5 | ||||
-rw-r--r-- | Makefile.PL | 2 | ||||
-rw-r--r-- | lib/Music/Lyrics/LRC.pm | 6 | ||||
-rw-r--r-- | t/basic.t | 2 |
4 files changed, 10 insertions, 5 deletions
@@ -1,5 +1,10 @@ Revision history for Music-Lyrics-LRC +0.06 2017-11-02 + + - Correct syntax of output file: the format uses a period for the fractional + second separator, not a colon + 0.05 2017-11-02 - Documentation corrections diff --git a/Makefile.PL b/Makefile.PL index 172e64c..2707497 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -25,7 +25,7 @@ WriteMakefile( 'meta-spec' => { version => 2 }, provides => { 'Music::Lyrics::LRC' => { - version => '0.05', + version => '0.06', file => 'lib/Music/Lyrics/LRC.pm', }, }, diff --git a/lib/Music/Lyrics/LRC.pm b/lib/Music/Lyrics/LRC.pm index 5035187..10204d0 100644 --- a/lib/Music/Lyrics/LRC.pm +++ b/lib/Music/Lyrics/LRC.pm @@ -13,7 +13,7 @@ use English '-no_match_vars'; use 5.006; # Declare package version -our $VERSION = '0.05'; +our $VERSION = '0.06'; # Patterns to match elements of the LRC file; these are somewhat tolerant our %RE = ( @@ -211,7 +211,7 @@ sub save { my %ts = %{ $self->msec_to_ts($msec) }; # Write the line to the file, counting the lines - $lines += printf {$fh} "[%02u:%02u:%02u]%s\n", + $lines += printf {$fh} "[%02u:%02u.%02u]%s\n", @ts{qw(min sec csec)}, $lyric->{text} or die "Failed lyric write: $ERRNO\n"; } @@ -264,7 +264,7 @@ Music::Lyrics::LRC - Manipulate LRC karaoke timed lyrics files =head1 VERSION -Version 0.05 +Version 0.06 =head1 DESCRIPTION @@ -8,7 +8,7 @@ use Test::More tests => 9; use Music::Lyrics::LRC; -our $VERSION = '0.05'; +our $VERSION = '0.06'; my $lrc = Music::Lyrics::LRC->new(); ok( defined $lrc, 'constructed' ); |