Skip to content

Commit 5780c6c

Browse files
committed
Move from File::Slurp to File::Slurper
1 parent 064f718 commit 5780c6c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Makefile.PL

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ my %WriteMakefileArgs = (
2525
"DateTime::Format::XSD" => 0,
2626
"DateTime::HiRes" => 0,
2727
"Exporter" => 0,
28-
"File::Slurp" => 0,
28+
"File::Slurper" => 0,
2929
"HTTP::Request::Common" => 0,
3030
"IO::Compress::RawDeflate" => 0,
3131
"IO::Uncompress::RawInflate" => 0,
@@ -66,7 +66,7 @@ my %WriteMakefileArgs = (
6666
"URI::URL" => 0,
6767
"XML::LibXML::XPathContext" => 0
6868
},
69-
"VERSION" => "0.49",
69+
"VERSION" => "0.50",
7070
"test" => {
7171
"TESTS" => "t/*.t t/author/*.t"
7272
}
@@ -83,7 +83,7 @@ my %FallbackPrereqs = (
8383
"DateTime::Format::XSD" => 0,
8484
"DateTime::HiRes" => 0,
8585
"Exporter" => 0,
86-
"File::Slurp" => 0,
86+
"File::Slurper" => 0,
8787
"HTTP::Request::Common" => 0,
8888
"IO::Compress::RawDeflate" => 0,
8989
"IO::Uncompress::RawInflate" => 0,

README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NAME
22
Net::SAML2 - SAML2 bindings and protocol implementation
33

44
VERSION
5-
version 0.49
5+
version 0.50
66

77
SYNOPSIS
88
See TUTORIAL.md for implementation documentation and
@@ -114,7 +114,7 @@ AUTHOR
114114
Chris Andrews <chrisa@cpan.org>
115115

116116
COPYRIGHT AND LICENSE
117-
This software is copyright (c) 2021 by Chris Andrews and Others, see the
117+
This software is copyright (c) 2022 by Chris Andrews and Others, see the
118118
git log.
119119

120120
This is free software; you can redistribute it and/or modify it under

cpanfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ requires "DateTime" => "0";
99
requires "DateTime::Format::XSD" => "0";
1010
requires "DateTime::HiRes" => "0";
1111
requires "Exporter" => "0";
12-
requires "File::Slurp" => "0";
12+
requires "File::Slurper" => "0";
1313
requires "HTTP::Request::Common" => "0";
1414
requires "IO::Compress::RawDeflate" => "0";
1515
requires "IO::Uncompress::RawInflate" => "0";

lib/Net/SAML2/Binding/Redirect.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use URI;
3838
use URI::QueryParam;
3939
use Crypt::OpenSSL::RSA;
4040
use Crypt::OpenSSL::X509;
41-
use File::Slurp qw/ read_file /;
41+
use File::Slurper qw/ read_text /;
4242
use URI::Encode qw/uri_decode/;
4343

4444
=head2 new( ... )
@@ -127,7 +127,7 @@ sub sign {
127127
$u->query_param($self->param, $req);
128128
$u->query_param('RelayState', $relaystate) if defined $relaystate;
129129

130-
my $key_string = read_file($self->key);
130+
my $key_string = read_text($self->key);
131131
my $rsa_priv = Crypt::OpenSSL::RSA->new_private_key($key_string);
132132

133133
if ( exists $self->{ sig_hash } && grep { $_ eq $self->{ sig_hash } } ('sha224', 'sha256', 'sha384', 'sha512'))

0 commit comments

Comments
 (0)