Skip to content

Commit

Permalink
Merge pull request #2 from jdhedden/develop
Browse files Browse the repository at this point in the history
4.04 Fix for threads::shared < 0.96
  • Loading branch information
jdhedden authored Apr 11, 2017
2 parents 69a4827 + 7615398 commit 234dc2c
Show file tree
Hide file tree
Showing 20 changed files with 40 additions and 33 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Revision history for Perl extension Object::InsideOut.
-
-

4.04 Wed Mar 1 04:59:11 2017
- Fix for threads::shared < 0.96

4.03 Sun Feb 26 17:14:40 2017
- Update to use threads::shared::is_shared

Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Object-InsideOut version 4.03
Object-InsideOut version 4.04
=============================

This module provides comprehensive support for implementing classes using the
Expand Down
4 changes: 2 additions & 2 deletions examples/YAPI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Term::YAPI; {
use strict;
use warnings;

our $VERSION = '4.03';
our $VERSION = '4.04';

#####
#
Expand All @@ -22,7 +22,7 @@ package Term::YAPI; {
$threaded_okay = !$@;
}

use Object::InsideOut 4.03;
use Object::InsideOut 4.04;

# Default progress indicator is a twirling bar
my @yapi :Field
Expand Down
8 changes: 4 additions & 4 deletions lib/Bundle/Object/InsideOut.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package Bundle::Object::InsideOut;
use strict;
use warnings;

our $VERSION = '4.03';
our $VERSION = '4.04';
$VERSION = eval $VERSION;

1;
Expand Down Expand Up @@ -42,9 +42,9 @@ Pod::Coverage 0.23 - Used by Test::Pod::Coverage
Test::Pod::Coverage 1.10 - Tests POD coverage
threads 2.12 - Support for threads
threads 2.15 - Support for threads
threads::shared 1.54 - Support for sharing objects between threads
threads::shared 1.55 - Support for sharing objects between threads
Want 0.29 - :lvalue accessor support
Expand All @@ -58,7 +58,7 @@ Class::Data::Inheritable 0.08 - Used by Exception::Class
Exception::Class 1.42 - Error handling
Object::InsideOut 4.03 - Inside-out object support
Object::InsideOut 4.04 - Inside-out object support
URI 1.71 - Used by LWP::UserAgent
Expand Down
12 changes: 8 additions & 4 deletions lib/Object/InsideOut.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ require 5.006;
use strict;
use warnings;

our $VERSION = '4.03';
our $VERSION = '4.04';
$VERSION = eval $VERSION;

use Object::InsideOut::Exception 4.03;
use Object::InsideOut::Util 4.03 qw(create_object hash_re is_it make_shared);
use Object::InsideOut::Metadata 4.03;
use Object::InsideOut::Exception 4.04;
use Object::InsideOut::Util 4.04 qw(create_object hash_re is_it make_shared);
use Object::InsideOut::Metadata 4.04;

require B;

Expand Down Expand Up @@ -114,6 +114,10 @@ if (! exists($GBL{'GBL_SET'})) {
'disinherit' => {'restricted' => 1},
'heritage' => {'restricted' => 1},
};

if ($threads::shared::threads_shared && ($threads::shared::VERSION lt '0.96')) {
*threads::shared::is_shared = \&threads::shared::_id;
}
}


Expand Down
2 changes: 1 addition & 1 deletion lib/Object/InsideOut.pod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Object::InsideOut - Comprehensive inside-out object support module

=head1 VERSION

This document describes Object::InsideOut version 4.03
This document describes Object::InsideOut version 4.04

=head1 SYNOPSIS

Expand Down
2 changes: 1 addition & 1 deletion lib/Object/InsideOut/Autoload.pm
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ sub AUTOLOAD


# Ensure correct versioning
($Object::InsideOut::VERSION eq '4.03')
($Object::InsideOut::VERSION eq '4.04')
or die("Version mismatch\n");

# EOF
2 changes: 1 addition & 1 deletion lib/Object/InsideOut/Chained.pm
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ sub create_CHAINED :Sub(Private)


# Ensure correct versioning
($Object::InsideOut::VERSION eq '4.03')
($Object::InsideOut::VERSION eq '4.04')
or die("Version mismatch\n");

# EOF
8 changes: 4 additions & 4 deletions lib/Object/InsideOut/Cumulative.pm
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ package Object::InsideOut::Results; {
use strict;
use warnings;

our $VERSION = '4.03';
our $VERSION = '4.04';
$VERSION = eval $VERSION;

use Object::InsideOut 4.03;
use Object::InsideOut::Metadata 4.03;
use Object::InsideOut 4.04;
use Object::InsideOut::Metadata 4.04;

my @VALUES :Field :Arg(VALUES);
my @CLASSES :Field :Arg(CLASSES);
Expand Down Expand Up @@ -260,7 +260,7 @@ add_meta('Object::InsideOut::Results', {


# Ensure correct versioning
($Object::InsideOut::VERSION eq '4.03')
($Object::InsideOut::VERSION eq '4.04')
or die("Version mismatch\n");

# EOF
2 changes: 1 addition & 1 deletion lib/Object/InsideOut/Dump.pm
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ sub dump


# Ensure correct versioning
($Object::InsideOut::VERSION eq '4.03')
($Object::InsideOut::VERSION eq '4.04')
or die("Version mismatch\n");

# EOF
2 changes: 1 addition & 1 deletion lib/Object/InsideOut/Dynamic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ sub create_field


# Ensure correct versioning
($Object::InsideOut::VERSION eq '4.03')
($Object::InsideOut::VERSION eq '4.04')
or die("Version mismatch\n");

# EOF
2 changes: 1 addition & 1 deletion lib/Object/InsideOut/Exception.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package Object::InsideOut::Exception; {
use strict;
use warnings;

our $VERSION = '4.03';
our $VERSION = '4.04';
$VERSION = eval $VERSION;

# Exceptions generated by this module
Expand Down
2 changes: 1 addition & 1 deletion lib/Object/InsideOut/Foreign.pm
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ sub inherit


# Ensure correct versioning
($Object::InsideOut::VERSION eq '4.03')
($Object::InsideOut::VERSION eq '4.04')
or die("Version mismatch\n");

# EOF
6 changes: 3 additions & 3 deletions lib/Object/InsideOut/Metadata.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package Object::InsideOut::Metadata; {
use strict;
use warnings;

our $VERSION = '4.03';
our $VERSION = '4.04';
$VERSION = eval $VERSION;

# Stores method metadata
Expand Down Expand Up @@ -99,7 +99,7 @@ __DATA__
### Object Interface ###
use Object::InsideOut 4.03;
use Object::InsideOut 4.04;
my @CLASSES :Field;
my @FOREIGN :Field;
Expand Down Expand Up @@ -268,7 +268,7 @@ Object::InsideOut::Metadata - Introspection for Object::InsideOut classes
=head1 VERSION
This document describes Object::InsideOut::Metadata version 4.03
This document describes Object::InsideOut::Metadata version 4.04
=head1 SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion lib/Object/InsideOut/Overload.pm
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ sub generate_OVERLOAD :Sub(Private)


# Ensure correct versioning
($Object::InsideOut::VERSION eq '4.03')
($Object::InsideOut::VERSION eq '4.04')
or die("Version mismatch\n");

# EOF
4 changes: 2 additions & 2 deletions lib/Object/InsideOut/Secure.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package Object::InsideOut::Secure; {
use strict;
use warnings;

our $VERSION = '4.03';
our $VERSION = '4.04';
$VERSION = eval $VERSION;

use Object::InsideOut 4.03 ':hash_only';
use Object::InsideOut 4.04 ':hash_only';

# Holds used IDs
my %used :Field = ( 0 => undef );
Expand Down
2 changes: 1 addition & 1 deletion lib/Object/InsideOut/Universal.pm
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ sub install_UNIVERSAL


# Ensure correct versioning
($Object::InsideOut::VERSION eq '4.03')
($Object::InsideOut::VERSION eq '4.04')
or die("Version mismatch\n");

# EOF
4 changes: 2 additions & 2 deletions lib/Object/InsideOut/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ require 5.006;
use strict;
use warnings;

our $VERSION = '4.03';
our $VERSION = '4.04';
$VERSION = eval $VERSION;

use Object::InsideOut::Metadata 4.03;
use Object::InsideOut::Metadata 4.04;

### Module Initialization ###

Expand Down
2 changes: 1 addition & 1 deletion lib/Object/InsideOut/attributes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sub FETCH_CODE_ATTRIBUTES :Sub { return (FETCH_ATTRS('CODE', @_)); }


# Ensure correct versioning
($Object::InsideOut::VERSION eq '4.03')
($Object::InsideOut::VERSION eq '4.04')
or die("Version mismatch\n");

# EOF
2 changes: 1 addition & 1 deletion lib/Object/InsideOut/lvalue.pm
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ _PRE_


# Ensure correct versioning
($Object::InsideOut::VERSION eq '4.03')
($Object::InsideOut::VERSION eq '4.04')
or die("Version mismatch\n");

# EOF

0 comments on commit 234dc2c

Please sign in to comment.