- fix "can I haz XS?" logic precedence in Makefile.PL
- added the ':all' export tag
+ - removed dependency on Safe::Isa
1.002004 - 2014-10-11
- support use of PUREPERL_ONLY in Makefile.PL to avoid adding an XS
},
runtime => {
requires => {
- 'Safe::Isa' => '0',
+ 'Scalar::Util' => '0',
'JSON::PP' => '2.27202',
# we may also add a runtime prereq for Cpanel::JSON::XS, on the
# installer's machine
return $new;
}
-use Safe::Isa;
+use Scalar::Util ();
sub is_bool {
die 'is_bool is not a method' if $_[1];
- $_[0]->$_isa('JSON::XS::Boolean')
- or $_[0]->$_isa('JSON::PP::Boolean');
+ Scalar::Util::blessed($_[0])
+ and ($_[0]->isa('JSON::XS::Boolean')
+ or $_[0]->isa('JSON::PP::Boolean'));
}
1;