Locale-MO-File

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

- moved from Moose to Moo

0.03  Fri Jan 11 16:25:26 2013
- https://rt.cpan.org/Ticket/Display.html?id=82555
  thanks to ANDK
- Build.PL no longer in distribution

0.02  Tue Mar 13 18:59:50 2012
- POD typos corrected
- control chars in strings are not allowed
- use Test::Hex::Differences for tests

0.01  Wed Apr 27 12:37:44 2011
- first version

META.json  view on Meta::CPAN

   ],
   "meta-spec" : {
      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
      "version" : "2"
   },
   "name" : "Locale-MO-File",
   "prereqs" : {
      "build" : {
         "requires" : {
            "Hash::Util" : "0",
            "Test::Differences" : "0.60",
            "Test::Exception" : "0",
            "Test::HexDifferences" : "0",
            "Test::More" : "0",
            "Test::NoWarnings" : "0"
         }
      },
      "runtime" : {
         "recommends" : {
            "Test::Pod" : "1.14",
            "Test::Pod::Coverage" : "1.04"
         },
         "requires" : {

META.yml  view on Meta::CPAN

---
abstract: 'Locale::MO::File - Write or read gettext MO files.'
author:
  - 'Steffen Winkler <steffenw at cpan.org>'
build_requires:
  Hash::Util: '0'
  Test::Differences: '0.60'
  Test::Exception: '0'
  Test::HexDifferences: '0'
  Test::More: '0'
  Test::NoWarnings: '0'
dynamic_config: 1
generated_by: 'Module::Build version 0.4218, CPAN::Meta::Converter version 2.150005'
license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: Locale-MO-File
provides:

Makefile.PL  view on Meta::CPAN

require 5.006001;
use ExtUtils::MakeMaker;
WriteMakefile
(
  'PREREQ_PM' => {
                   'Test::More' => 0,
                   'IO::File' => 0,
                   'namespace::autoclean' => 0,
                   'Const::Fast' => 0,
                   'Test::Exception' => 0,
                   'Test::HexDifferences' => 0,
                   'charnames' => 0,
                   'MooX::StrictConstructor' => 0,
                   'Encode' => 0,
                   'Params::Validate' => 0,
                   'Hash::Util' => 0,
                   'Test::NoWarnings' => 0,
                   'MooX::Types::MooseLike::Base' => 0,
                   'Test::Differences' => '0.60',
                   'Moo' => '1.003001',
                   'English' => 0
                 },
  'INSTALLDIRS' => 'site',
  'EXE_FILES' => [],
  'PL_FILES' => {},
  'VERSION_FROM' => 'lib/Locale/MO/File.pm',
  'NAME' => 'Locale::MO::File'
)
;

t/02_exceptions.t  view on Meta::CPAN

use strict;
use warnings;

use Carp qw(confess);
use English qw(-no_match_vars $OS_ERROR);
require IO::File;

use Test::More tests => 8;
use Test::NoWarnings;
use Test::Exception;
use Test::Differences;

BEGIN {
    require_ok 'Locale::MO::File';
}

my $filename = '02_exceptions.mo';

throws_ok
    sub {
        Locale::MO::File->new->write_file;

t/10_simple_data.t  view on Meta::CPAN


use strict;
use warnings;

use Carp qw(confess);
use English qw(-no_match_vars $OS_ERROR $INPUT_RECORD_SEPARATOR);
require IO::File;

use Test::More tests => 7;
use Test::NoWarnings;
use Test::Differences;
use Test::Exception;
use Test::HexDifferences;

BEGIN {
    require_ok 'Locale::MO::File';
}

my @messages = (
    { msgid  => 'I2', msgstr => 'S2' },
    { msgid  => 'I1', msgstr => 'S1' },
);

t/11_little_endian.t  view on Meta::CPAN

use strict;
use warnings;

use Carp qw(confess);
use English qw(-no_match_vars $OS_ERROR $INPUT_RECORD_SEPARATOR);
use Hash::Util qw(lock_hash);
use IO::File qw(SEEK_SET);

use Test::More tests => 10;
use Test::NoWarnings;
use Test::Differences;
use Test::Exception;
use Test::HexDifferences;

BEGIN {
    require_ok 'Locale::MO::File';
}

my @messages = (
    {
        msgid  => q{},
        msgstr => <<'EOT',
MIME-Version: 1.0

t/12_big_endian.t  view on Meta::CPAN

use strict;
use warnings;

use Carp qw(confess);
use English qw(-no_match_vars $OS_ERROR $INPUT_RECORD_SEPARATOR);
use Hash::Util qw(lock_hash);
use IO::File qw(SEEK_SET);

use Test::More tests => 10;
use Test::NoWarnings;
use Test::Differences;
use Test::Exception;
use Test::HexDifferences;

BEGIN {
    require_ok 'Locale::MO::File';
}

my @messages = (
    {
        msgid  => q{},
        msgstr => <<'EOT',
MIME-Version: 1.0

t/13_little_endian_utf-8.t  view on Meta::CPAN

use warnings;
use charnames ':full';

use Carp qw(confess);
use English qw(-no_match_vars $OS_ERROR $INPUT_RECORD_SEPARATOR);
use Hash::Util qw(lock_hash);
use IO::File qw(SEEK_SET);

use Test::More tests => 10;
use Test::NoWarnings;
use Test::Differences;
use Test::Exception;
use Test::HexDifferences;

BEGIN {
    require_ok 'Locale::MO::File';
}

my $CRLF = "\r\n";

my @messages = (
    {
        msgid  => q{},

t/14_big_endian_utf-8.t  view on Meta::CPAN

use warnings;
use charnames ':full';

use Carp qw(confess);
use English qw(-no_match_vars $OS_ERROR $INPUT_RECORD_SEPARATOR);
use Hash::Util qw(lock_hash);
use IO::File qw(SEEK_SET);

use Test::More tests => 10;
use Test::NoWarnings;
use Test::Differences;
use Test::Exception;
use Test::HexDifferences;

BEGIN {
    require_ok 'Locale::MO::File';
}

my $CRLF = "\r\n";

my @messages = (
    {
        msgid  => q{},

t/21_test_examples.t  view on Meta::CPAN

#!perl

use strict;
use warnings;

use Test::More;
use Test::Differences;
use Cwd qw(getcwd chdir);
use English qw(-no_match_vars $CHILD_ERROR);

$ENV{AUTHOR_TESTING}
    or plan skip_all => 'Set $ENV{AUTHOR_TESTING} to run this test.';

my @data = (
    {
        test   => '11_little_endian',
        path   => 'example',

t/22_test_examples_utf-8.t  view on Meta::CPAN

#!perl

use strict;
use warnings;
use utf8;

use Test::More;
use Test::Differences;
use Cwd qw(getcwd chdir);
use Encode qw(decode_utf8);
use English qw(-no_match_vars $CHILD_ERROR);

$ENV{AUTHOR_TESTING}
    or plan skip_all => 'Set $ENV{AUTHOR_TESTING} to run this test.';

my @data = (
    {
        test   => '13_little_endian_utf-8',



( run in 1.540 second using v1.01-cache-2.11-cpan-131fc08a04b )