Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{$NEXT}}

- Really made it possible to force Specio to use only pure Perl dependencies. The changes in 0.51
were incomplete, so lots of places still loaded the Clone (XS) module. Fixed by @arodland (Andrew
Rodland). GH #23.


0.51 2025-06-19

- Made it possible to force Specio to only use pure Perl dependencies by setting the
Expand Down
4 changes: 2 additions & 2 deletions lib/Specio/Constraint/Enum.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ use warnings;

our $VERSION = '0.52';

use Clone ();
use Role::Tiny::With;
use Scalar::Util qw( refaddr );
use Specio::Library::Builtins;
use Specio qw( _clone );
use Specio::OO;

use Specio::Constraint::Role::Interface;
with 'Specio::Constraint::Role::Interface';

{
## no critic (Subroutines::ProtectPrivateSubs)
my $attrs = Clone::clone( Specio::Constraint::Role::Interface::_attrs() );
my $attrs = _clone( Specio::Constraint::Role::Interface::_attrs() );
## use critic

for my $name (qw( parent _inline_generator )) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Specio/Constraint/Intersection.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ use warnings;

our $VERSION = '0.52';

use Clone ();
use List::Util 1.33 qw( all );
use Role::Tiny::With;
use Specio qw( _clone );
use Specio::OO;

use Specio::Constraint::Role::Interface;
with 'Specio::Constraint::Role::Interface';

{
## no critic (Subroutines::ProtectPrivateSubs)
my $attrs = Clone::clone( Specio::Constraint::Role::Interface::_attrs() );
my $attrs = _clone( Specio::Constraint::Role::Interface::_attrs() );
## use critic

for my $name (qw( _constraint _inline_generator )) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Specio/Constraint/Parameterized.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ use warnings;

our $VERSION = '0.52';

use Clone ();
use Role::Tiny::With;
use Specio qw( _clone );
use Specio::OO;

use Specio::Constraint::Role::Interface;
with 'Specio::Constraint::Role::Interface';

{
## no critic (Subroutines::ProtectPrivateSubs)
my $attrs = Clone::clone( Specio::Constraint::Role::Interface::_attrs() );
my $attrs = _clone( Specio::Constraint::Role::Interface::_attrs() );
## use critic

$attrs->{parent}{isa} = 'Specio::Constraint::Parameterizable';
Expand Down
4 changes: 2 additions & 2 deletions lib/Specio/Constraint/Role/CanType.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use warnings;

our $VERSION = '0.52';

use Clone ();
use Scalar::Util qw( blessed );
use Specio qw( _clone );
use Specio::PartialDump qw( partial_dump );

use Role::Tiny;
Expand All @@ -16,7 +16,7 @@ with 'Specio::Constraint::Role::Interface';

{
## no critic (Subroutines::ProtectPrivateSubs)
my $attrs = Clone::clone( Specio::Constraint::Role::Interface::_attrs() );
my $attrs = _clone( Specio::Constraint::Role::Interface::_attrs() );
## use critic

for my $name (qw( parent _inline_generator )) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Specio/Constraint/Role/DoesType.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use warnings;

our $VERSION = '0.52';

use Clone ();
use Scalar::Util qw( blessed );
use Specio qw( _clone );
use Specio::PartialDump qw( partial_dump );

use Role::Tiny;
Expand All @@ -16,7 +16,7 @@ with 'Specio::Constraint::Role::Interface';

{
## no critic (Subroutines::ProtectPrivateSubs)
my $attrs = Clone::clone( Specio::Constraint::Role::Interface::_attrs() );
my $attrs = _clone( Specio::Constraint::Role::Interface::_attrs() );
## use critic

for my $name (qw( parent _inline_generator )) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Specio/Constraint/Role/IsaType.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use warnings;

our $VERSION = '0.52';

use Clone ();
use Scalar::Util qw( blessed );
use Specio qw( _clone );
use Specio::PartialDump qw( partial_dump );

use Role::Tiny;
Expand All @@ -16,7 +16,7 @@ with 'Specio::Constraint::Role::Interface';

{
## no critic (Subroutines::ProtectPrivateSubs)
my $attrs = Clone::clone( Specio::Constraint::Role::Interface::_attrs() );
my $attrs = _clone( Specio::Constraint::Role::Interface::_attrs() );
## use critic

for my $name (qw( parent _inline_generator )) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Specio/Constraint/Structured.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use warnings;

our $VERSION = '0.52';

use Clone ();
use List::Util 1.33 qw( all );
use Role::Tiny::With;
use Specio qw( _clone );
use Specio::OO;
use Specio::TypeChecks qw( does_role );

Expand All @@ -16,7 +16,7 @@ with 'Specio::Constraint::Role::Interface';

{
## no critic (Subroutines::ProtectPrivateSubs)
my $attrs = Clone::clone( Specio::Constraint::Role::Interface::_attrs() );
my $attrs = _clone( Specio::Constraint::Role::Interface::_attrs() );
## use critic

$attrs->{parent}{isa} = 'Specio::Constraint::Structurable';
Expand Down
4 changes: 2 additions & 2 deletions lib/Specio/Constraint/Union.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ use warnings;

our $VERSION = '0.52';

use Clone;
use List::Util 1.33 qw( all any );
use Role::Tiny::With;
use Specio qw( _clone );
use Specio::OO;

use Specio::Constraint::Role::Interface;
with 'Specio::Constraint::Role::Interface';

{
## no critic (Subroutines::ProtectPrivateSubs)
my $attrs = Clone::clone( Specio::Constraint::Role::Interface::_attrs() );
my $attrs = _clone( Specio::Constraint::Role::Interface::_attrs() );
## use critic

for my $name (qw( _constraint _inline_generator )) {
Expand Down
3 changes: 1 addition & 2 deletions lib/Specio/OO.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ package Specio::OO;
use strict;
use warnings;

use Carp qw( confess );
use Clone::Choose ();
use Carp qw( confess );
use List::Util 1.33 qw( all );
use MRO::Compat;
use Role::Tiny;
Expand Down