Skip to content

Commit

Permalink
Lose one more useless dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi committed Sep 23, 2012
1 parent 2b4cfb0 commit b5bd458
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ my $deps = {
requires => {
'Digest::SHA' => '0',
'Carp::Clan' => '0',
'IO::Scalar' => '2.110',
'Parse::RecDescent' => '1.967009',
'DBI' => '0',
'File::ShareDir' => '1.0',
Expand Down
5 changes: 2 additions & 3 deletions lib/SQL/Translator/Producer/XML/SQLFairy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ use Exporter;
use base qw(Exporter);
@EXPORT_OK = qw(produce);

use IO::Scalar;
use SQL::Translator::Utils qw(header_comment debug);
BEGIN {
# Will someone fix XML::Writer already?
Expand All @@ -176,14 +175,14 @@ sub produce {
$PArgs = $translator->producer_args;
my $newlines = defined $PArgs->{newlines} ? $PArgs->{newlines} : 1;
my $indent = defined $PArgs->{indent} ? $PArgs->{indent} : 2;
my $io = IO::Scalar->new;

# Setup the XML::Writer and set the namespace
my $io;
my $prefix = "";
$prefix = $Name if $PArgs->{add_prefix};
$prefix = $PArgs->{prefix} if $PArgs->{prefix};
my $xml = XML::Writer->new(
OUTPUT => $io,
OUTPUT => \$io,
NAMESPACES => 1,
PREFIX_MAP => { $Namespace => $prefix },
DATA_MODE => $newlines,
Expand Down
6 changes: 3 additions & 3 deletions t/60roundtrip.t
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ sub check_roundtrip {

# the two sql strings should be identical
my $msg = "$args->{name} SQL roundtrip successful - SQL statements match";
$ENV{SQLTTEST_RT_DEBUG} #stringify below because IO::Scalar does not behave nice
? eq_or_diff ("$rt_out", "$base_out", $msg)
: ok ("$rt_out" eq "$base_out", $msg)
$ENV{SQLTTEST_RT_DEBUG}
? eq_or_diff ($rt_out, $base_out, $msg)
: ok ($rt_out eq $base_out, $msg)
;
}

Expand Down

0 comments on commit b5bd458

Please sign in to comment.