* of the decoder before upgrading to version 3 of the *
* encoder! *
****************************************************************
+3.014 Dec 7 2015
+ * Fix builds under 5.8.9
+
+3.012 Dec 6 2015
+ * Yet another release related to broken META files.
+ ExtUtils::MakeMaker and CPAN::Meta need to be up to date
+ or the META files miss stuff.
+
+3.011 Dec 6 2015
+ * No significant changes. Doc typo fixes, and build tweaks.
+
+3.010 Dec 1 2015
+ * Build fixes.
+
3.009 Nov 30 2015
* Re-relase 3.008 with updated META files.
"Steffen Mueller <smueller@cpan.org>, Yves Orton <yves@cpan.org>"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150001",
+ "generated_by" : "ExtUtils::MakeMaker version 7.1, CPAN::Meta::Converter version 2.150005",
"license" : [
"perl_5"
],
"url" : "git://github.com/Sereal/Sereal.git"
}
},
- "version" : "3.009"
+ "version" : "3.014",
+ "x_serialization_backend" : "JSON::PP version 2.27300"
}
configure_requires:
ExtUtils::MakeMaker: '7.0'
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150001'
+generated_by: 'ExtUtils::MakeMaker version 7.1, CPAN::Meta::Converter version 2.150005'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
resources:
bugtracker: https://github.com/Sereal/Sereal/issues
repository: git://github.com/Sereal/Sereal.git
-version: '3.009'
+version: '3.014'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.012'
use Config;
my $shared_dir = "../shared";
-my $in_source_repo = -d "../../.git" and -d $shared_dir;
+my $its_our_repo_file= "../this_is_the_Sereal_repo.txt";
+my $in_source_repo =( -d "../../.git"
+ and -d $shared_dir
+ and -e "../this_is_the_Sereal_repo.txt"
+ );
-my $module = "Sereal::Encoder";
unshift @INC, ".", "./inc";
-unshift @INC, $shared_dir, "$shared_dir/inc" if $in_source_repo;
+unshift @INC, $shared_dir, "$shared_dir/inc"
+ if $in_source_repo;
+
+
+my $module = "Sereal::Encoder";
require inc::Sereal::BuildTools;
inc::Sereal::BuildTools::link_files($shared_dir) if $in_source_repo;
inc::Sereal::BuildTools::generate_constant_includes($module) if $in_source_repo;
use Carp qw/croak/;
use XSLoader;
-our $VERSION = '3.009'; # Don't forget to update the TestCompat set for testing against installed decoders!
+our $VERSION = '3.014'; # Don't forget to update the TestCompat set for testing against installed decoders!
our $XS_VERSION = $VERSION; $VERSION= eval $VERSION;
# not for public consumption, just for testing.
sub flag_names {
my ($self, $val)= @_;
- return $flags->($val // $self->flags, _FLAG_NAME);
+ return $flags->(defined $val ? $val : $self->flags, _FLAG_NAME);
}
1;
Do note that the setting is somewhat approximate. Setting it to 10000 may break at
somewhere between 9997 and 10003 nested structures depending on their types.
-=head3 canoncial
+=head3 canonical
Enable all options which are related to producing canonical output, so that
two strucutures with similar contents produce the same serialized form.
Normally C<Sereal::Encoder> will ARRAYREF and HASHREF tags when the item contains
less than 16 items, and and is not referenced more than once. This flag will
override this optimization and use a standard REFN ARRAY style tag output. This
-is primarily useful for producing canoncial output and for testing Sereal itself.
+is primarily useful for producing canonical output and for testing Sereal itself.
See L</CANONICAL REPRESENTATION> for why you might want to use this, and
for the various caveats involved.
require Exporter;
our @ISA= qw(Exporter);
-our $VERSION = '3.009'; # Don't forget to update the TestCompat set for testing against installed encoders!
+our $VERSION = '3.014'; # Don't forget to update the TestCompat set for testing against installed encoders!
our (@EXPORT_OK, %DEFINE, %TAG_INFO_HASH, @TAG_INFO_ARRAY);
use warnings;
use Sereal::Encoder qw(encode_sereal);
use Test::More;
-
+use version;
my %tests = (
# IMPORTANT: If you add new types of cases here please update the
# "CANONICAL REPRESENTATION" documentation.