Changeset 23548 for lang/perl/String-IRC
- Timestamp:
- 11/13/08 16:39:57 (8 weeks ago)
- Location:
- lang/perl/String-IRC/trunk
- Files:
-
- 6 modified
-
Changes (modified) (1 diff)
-
lib/String/IRC.pm (modified) (2 diffs)
-
t/01.color.t (modified) (2 diffs)
-
t/03.complex.t (modified) (1 diff)
-
t/04.bgcolor.t (modified) (1 diff)
-
t/09.op.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/String-IRC/trunk/Changes
r21566 r23548 1 1 Revision history for String-IRC 2 3 0.04 2008-11-13 4 * always using two-digit color codes. 5 http://rt.cpan.org/Ticket/Display.html?id=40736 2 6 3 7 0.03 2008-10-18 -
lang/perl/String-IRC/trunk/lib/String/IRC.pm
r21566 r23548 5 5 use Carp; 6 6 7 our $VERSION = '0.0 3';7 our $VERSION = '0.04'; 8 8 9 9 use overload ( … … 57 57 my $color_code = ""; 58 58 if ($_[1] && exists $color_name_table{ $_[1] }) { 59 $color_code .= "$code,$color_name_table{ $_[1] }";59 $color_code .= sprintf "%02d,%02d", $code, $color_name_table{ $_[1] }; 60 60 } else { 61 $color_code .= "$code";61 $color_code .= sprintf "%02d", $code; 62 62 } 63 63 $_[0]->_add_code_l("$color_code"); -
lang/perl/String-IRC/trunk/t/01.color.t
r10701 r23548 18 18 === red 19 19 --- input: hello 20 --- expect: 4hello20 --- expect: 04hello 21 21 === blue 22 22 --- input: hello 23 --- expect: 2hello23 --- expect: 02hello 24 24 === light_purple 25 25 --- input: hello … … 27 27 === red 28 28 --- input: 29 --- expect: 429 --- expect: 04 -
lang/perl/String-IRC/trunk/t/03.complex.t
r10701 r23548 18 18 === bold yellow 19 19 --- input: hello 20 --- expect: 8hello20 --- expect: 08hello 21 21 === bold yellow underline 22 22 --- input: hello 23 --- expect: 8hello23 --- expect: 08hello 24 24 === bold yellow underline inverse 25 25 --- input: hello 26 --- expect: 8hello26 --- expect: 08hello -
lang/perl/String-IRC/trunk/t/04.bgcolor.t
r10701 r23548 18 18 === yellow red 19 19 --- input: hello 20 --- expect: 8,4hello20 --- expect: 08,04hello 21 21 === red yellow 22 22 --- input: hello 23 --- expect: 4,8hello23 --- expect: 04,08hello 24 24 === red cyan 25 25 --- input: hello 26 --- expect: 4,11hello26 --- expect: 04,11hello -
lang/perl/String-IRC/trunk/t/09.op.t
r10701 r23548 21 21 === bold yellow 22 22 --- input: hello 23 --- expect: 8hello23 --- expect: 08hello
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)