diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-02 00:44:04 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-02 00:46:42 +1300 |
commit | b8885a3fd86d4e2a67c7956bb9f7ba99f72ae285 (patch) | |
tree | 7554b24a4e53eaf2bc42ecbae26b944570ab6e43 | |
parent | Replace fat comma in test file (diff) | |
download | Music-Lyrics-LRC-b8885a3fd86d4e2a67c7956bb9f7ba99f72ae285.tar.gz Music-Lyrics-LRC-b8885a3fd86d4e2a67c7956bb9f7ba99f72ae285.zip |
Bump version numberv0.04
-rw-r--r-- | Changes | 4 | ||||
-rw-r--r-- | Makefile.PL | 2 | ||||
-rw-r--r-- | README.markdown | 25 | ||||
-rw-r--r-- | lib/Music/Lyrics/LRC.pm | 4 | ||||
-rw-r--r-- | t/basic.t | 2 |
5 files changed, 22 insertions, 15 deletions
@@ -1,5 +1,9 @@ Revision history for Music-Lyrics-LRC +0.04 2017-11-02 + + - Documentation corrections and fixed parameter validation. + 0.03 2017-11-01 - First CPAN release, with some documentation and a very simple and not yet diff --git a/Makefile.PL b/Makefile.PL index a5398a2..31aef35 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -25,7 +25,7 @@ WriteMakefile( 'meta-spec' => { version => 2 }, provides => { 'Music::Lyrics::LRC' => { - version => '0.03', + version => '0.04', file => 'lib/Music/Lyrics/LRC.pm', }, }, diff --git a/README.markdown b/README.markdown index f7e5662..7417110 100644 --- a/README.markdown +++ b/README.markdown @@ -4,7 +4,7 @@ Music::Lyrics::LRC - Manipulate LRC karaoke timed lyrics files # VERSION -Version 0.02 +Version 0.04 # DESCRIPTION @@ -21,12 +21,13 @@ For details on the LRC file format, please see Wikipedia: ... my $lrc = Music::Lyrics::LRC->new(); open my $rfh, '<', 'mylyrics.lrc'; + $lrc->load($rfh); ... my $lyrics = $lrc->lyrics(); # arrayref of hashrefs: time (msec), text my $tags = $lrc->tags(); # hashref, name => value ... - $rfh->add_lyric(5500, q(Now I'm singin' at exactly 5.5 seconds...)); - $rfh->add_tag('author', 'Justin A. Perlhacker'); + $lrc->add_lyric(5500, q(Now I'm singin' at exactly 5.5 seconds...)); + $lrc->add_tag('author', 'Justin A. Perlhacker'); ... open my $wfh, '>', 'savelyrics.lrc'; $lrc->save($wfh); @@ -42,15 +43,17 @@ Constructor; no arguments. Retrieve an arrayref of hashrefs representing lyric lines, sorted by time ascending. Each one has `time` and `text` keys. The time is in milliseconds. - { - time => 5500, - text => 'Now I\'m singin\' at exactly 5.5 seconds...', - }, - { - time => 6001, - text => 'And now a moment after the sixth...', - }, + [ + { + time => 5500, + text => 'Now I\'m singin\' at exactly 5.5 seconds...', + }, + { + time => 6001, + text => 'And now a moment after the sixth...', + }, ... + ] ## `tags()` diff --git a/lib/Music/Lyrics/LRC.pm b/lib/Music/Lyrics/LRC.pm index 5d1f309..f94eb46 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.03'; +our $VERSION = '0.04'; # Patterns to match elements of the LRC file; these are somewhat tolerant our %RE = ( @@ -264,7 +264,7 @@ Music::Lyrics::LRC - Manipulate LRC karaoke timed lyrics files =head1 VERSION -Version 0.03 +Version 0.04 =head1 DESCRIPTION @@ -8,7 +8,7 @@ use Test::More tests => 9; use Music::Lyrics::LRC; -our $VERSION = '0.03'; +our $VERSION = '0.04'; my $lrc = Music::Lyrics::LRC->new(); ok( defined $lrc, 'constructed' ); |