summaryrefslogtreecommitdiff
path: root/t/zzz-check-breaks.t
blob: 86e2f8855909ad2cf88f0d37cfe27d63aefb1778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
use strict;
use warnings;

# this test was generated with Dist::Zilla::Plugin::Test::CheckBreaks 0.012

use Test::More 0.88;

SKIP: {
    eval 'require Moose::Conflicts; Moose::Conflicts->check_conflicts';
    skip('no Moose::Conflicts module found', 1) if not $INC{'Moose/Conflicts.pm'};

    diag $@ if $@;
    pass 'conflicts checked via Moose::Conflicts';
}

my $breaks = {
  "Catalyst" => "<= 5.90049999",
  "Config::MVP" => "<= 2.200004",
  "Devel::REPL" => "<= 1.003020",
  "Dist::Zilla::Plugin::Git" => "<= 2.016",
  "Fey" => "<= 0.36",
  "Fey::ORM" => "<= 0.42",
  "File::ChangeNotify" => "<= 0.15",
  "HTTP::Throwable" => "<= 0.017",
  "KiokuDB" => "<= 0.51",
  "Markdent" => "<= 0.16",
  "Mason" => "<= 2.18",
  "MooseX::ABC" => "<= 0.05",
  "MooseX::Aliases" => "<= 0.08",
  "MooseX::AlwaysCoerce" => "<= 0.13",
  "MooseX::App" => "<= 1.22",
  "MooseX::Attribute::Deflator" => "<= 2.1.7",
  "MooseX::Attribute::Dependent" => "<= 1.1.0",
  "MooseX::Attribute::Prototype" => "<= 0.10",
  "MooseX::AttributeHelpers" => "<= 0.22",
  "MooseX::AttributeIndexes" => "<= 1.0.0",
  "MooseX::AttributeInflate" => "<= 0.02",
  "MooseX::CascadeClearing" => "<= 0.03",
  "MooseX::ClassAttribute" => "<= 0.26",
  "MooseX::Constructor::AllErrors" => "<= 0.021",
  "MooseX::Declare" => "<= 0.35",
  "MooseX::FollowPBP" => "<= 0.02",
  "MooseX::Getopt" => "<= 0.56",
  "MooseX::InstanceTracking" => "<= 0.04",
  "MooseX::LazyRequire" => "<= 0.06",
  "MooseX::Meta::Attribute::Index" => "<= 0.04",
  "MooseX::Meta::Attribute::Lvalue" => "<= 0.05",
  "MooseX::Method::Signatures" => "<= 0.44",
  "MooseX::MethodAttributes" => "<= 0.22",
  "MooseX::NonMoose" => "<= 0.24",
  "MooseX::Object::Pluggable" => "<= 0.0011",
  "MooseX::POE" => "<= 0.214",
  "MooseX::Params::Validate" => "<= 0.05",
  "MooseX::PrivateSetters" => "<= 0.03",
  "MooseX::Role::Cmd" => "<= 0.06",
  "MooseX::Role::Parameterized" => "<= 1.00",
  "MooseX::Role::WithOverloading" => "<= 0.14",
  "MooseX::Runnable" => "<= 0.03",
  "MooseX::Scaffold" => "<= 0.05",
  "MooseX::SemiAffordanceAccessor" => "<= 0.05",
  "MooseX::SetOnce" => "<= 0.100473",
  "MooseX::Singleton" => "<= 0.25",
  "MooseX::SlurpyConstructor" => "<= 1.1",
  "MooseX::Storage" => "<= 0.42",
  "MooseX::StrictConstructor" => "<= 0.12",
  "MooseX::Traits" => "<= 0.11",
  "MooseX::Types" => "<= 0.19",
  "MooseX::Types::Parameterizable" => "<= 0.05",
  "MooseX::Types::Set::Object" => "<= 0.03",
  "MooseX::Types::Signal" => "<= 1.101930",
  "MooseX::UndefTolerant" => "<= 0.11",
  "PRANG" => "<= 0.14",
  "Pod::Elemental" => "<= 0.093280",
  "Pod::Weaver" => "<= 3.101638",
  "Reaction" => "<= 0.002003",
  "Test::Able" => "<= 0.10",
  "Test::CleanNamespaces" => "<= 0.03",
  "Test::Moose::More" => "<= 0.022",
  "Test::TempDir" => "<= 0.05",
  "Throwable" => "<= 0.102080",
  "namespace::autoclean" => "<= 0.08"
};

use CPAN::Meta::Requirements;
my $reqs = CPAN::Meta::Requirements->new;
$reqs->add_string_requirement($_, $breaks->{$_}) foreach keys %$breaks;

use CPAN::Meta::Check 0.007 'check_requirements';
our $result = check_requirements($reqs, 'conflicts');

if (my @breaks = grep { defined $result->{$_} } keys %$result)
{
    diag 'Breakages found with Moose:';
    diag "$result->{$_}" for sort @breaks;
    diag "\n", 'You should now update these modules!';
}

done_testing;