Changes | 03 |
LICENSE | 11 |
MANIFEST | 11 |
META.json | 58189 |
META.yml | 67169 |
README | 13 |
lib/Email/Valid.pm | 9221 |
t/00-compile.t | 390 |
t/000-report-versions-tiny.t | 51 |
xt/release/changes_has_content.t | 11 |
xt/release/pod-syntax.t | 32 |
11 files changed (This is a version diff) | 185591 |
@@ -1,5 +1,8 @@
Revision history for Perl extension Email::Valid.
+1.193 2014-03-26 22:29:28-04:00 America/New_York
+ - improve behavior on CNAME MX records
+
1.192 2013-09-07 21:00:55 America/New_York
if Net::DNS is not available, do not test null mx validity
@@ -22,7 +22,7 @@ This is free software, licensed under:
Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
- 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -1,3 +1,4 @@
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.014.
Changes
LICENSE
MANIFEST
@@ -7,7 +8,6 @@ Makefile.PL
README
dist.ini
lib/Email/Valid.pm
-t/00-compile.t
t/000-report-versions-tiny.t
t/resolver.t
t/utf-8.t
@@ -4,7 +4,7 @@
"Maurice Aubrey <maurice@hevanet.com>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300037, CPAN::Meta::Converter version 2.132140",
+ "generated_by" : "Dist::Zilla version 5.014, CPAN::Meta::Converter version 2.140640",
"license" : [
"perl_5"
],
@@ -37,9 +37,7 @@
},
"test" : {
"requires" : {
- "Capture::Tiny" : "0",
- "Test::More" : "0.96",
- "blib" : "0"
+ "Test::More" : "0.96"
}
}
},
@@ -55,111 +53,141 @@
"web" : "https://github.com/rjbs/Email-Valid"
}
},
- "version" : "1.192",
+ "version" : "1.193",
"x_Dist_Zilla" : {
"perl" : {
- "version" : "5.019003"
+ "version" : "5.019010"
},
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::Git::GatherDir",
"name" : "@Filter/Git::GatherDir",
- "version" : "2.014"
+ "version" : "2.020"
},
{
"class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
"name" : "@Filter/CheckPrereqsIndexed",
- "version" : "0.009"
+ "version" : "0.011"
},
{
"class" : "Dist::Zilla::Plugin::CheckExtraTests",
"name" : "@Filter/CheckExtraTests",
- "version" : "0.011"
+ "version" : "0.021"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::PromptIfStale",
+ "config" : {
+ "Dist::Zilla::Plugin::PromptIfStale" : {
+ "check_all_plugins" : 0,
+ "check_all_prereqs" : 0,
+ "modules" : [
+ "Dist::Zilla::PluginBundle::RJBS"
+ ],
+ "phase" : "build",
+ "skip" : []
+ }
+ },
+ "name" : "@Filter/RJBS-Outdated",
+ "version" : "0.021"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::PromptIfStale",
+ "config" : {
+ "Dist::Zilla::Plugin::PromptIfStale" : {
+ "check_all_plugins" : "1",
+ "check_all_prereqs" : 0,
+ "modules" : [],
+ "phase" : "release",
+ "skip" : []
+ }
+ },
+ "name" : "@Filter/CPAN-Outdated",
+ "version" : "0.021"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@Filter/@Filter/PruneCruft",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@Filter/@Filter/ManifestSkip",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@Filter/@Filter/MetaYAML",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@Filter/@Filter/License",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@Filter/@Filter/Readme",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@Filter/@Filter/ExecDir",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@Filter/@Filter/ShareDir",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@Filter/@Filter/Manifest",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@Filter/@Filter/TestRelease",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@Filter/@Filter/ConfirmRelease",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@Filter/@Filter/UploadToCPAN",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@Filter/AutoPrereqs",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
"name" : "@Filter/Git::NextVersion",
- "version" : "2.014"
+ "version" : "2.020"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@Filter/PkgVersion",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@Filter/MetaConfig",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@Filter/MetaJSON",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@Filter/NextRelease",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::Test::ChangesHasContent",
@@ -169,27 +197,12 @@
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@Filter/PodSyntaxTests",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::ReportVersions::Tiny",
"name" : "@Filter/ReportVersions::Tiny",
- "version" : "1.09"
- },
- {
- "class" : "Dist::Zilla::Plugin::Test::Compile",
- "config" : {
- "Dist::Zilla::Plugin::Test::Compile" : {
- "module_finder" : [
- ":InstallModules"
- ],
- "script_finder" : [
- ":ExecFiles"
- ]
- }
- },
- "name" : "@Filter/Test::Compile",
- "version" : "2.018"
+ "version" : "1.10"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -200,72 +213,190 @@
}
},
"name" : "@Filter/TestMoreWithSubtests",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
+ "config" : {
+ "Dist::Zilla::Plugin::PodWeaver" : {
+ "config_plugins" : [
+ "@RJBS"
+ ],
+ "finder" : [
+ ":InstallModules",
+ ":ExecFiles"
+ ],
+ "plugins" : [
+ {
+ "class" : "Pod::Weaver::Plugin::EnsurePod5",
+ "name" : "@CorePrep/EnsurePod5",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Plugin::H1Nester",
+ "name" : "@CorePrep/H1Nester",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Plugin::SingleEncoding",
+ "name" : "@RJBS/SingleEncoding",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Name",
+ "name" : "@RJBS/Name",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Version",
+ "name" : "@RJBS/Version",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Region",
+ "name" : "@RJBS/Prelude",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Generic",
+ "name" : "@RJBS/Synopsis",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Generic",
+ "name" : "@RJBS/Description",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Generic",
+ "name" : "@RJBS/Overview",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Generic",
+ "name" : "@RJBS/Stability",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "Attributes",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "Methods",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "Functions",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Leftovers",
+ "name" : "@RJBS/Leftovers",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Region",
+ "name" : "@RJBS/postlude",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Authors",
+ "name" : "@RJBS/Authors",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Legal",
+ "name" : "@RJBS/Legal",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Plugin::Transformer",
+ "name" : "@RJBS/List",
+ "version" : "4.006"
+ }
+ ]
+ }
+ },
"name" : "@Filter/PodWeaver",
- "version" : "3.101642"
+ "version" : "4.005"
},
{
"class" : "Dist::Zilla::Plugin::GithubMeta",
"name" : "@Filter/GithubMeta",
- "version" : "0.30"
+ "version" : "0.42"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@Filter/@Git/Check",
- "version" : "2.014"
+ "version" : "2.020"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"name" : "@Filter/@Git/Commit",
- "version" : "2.014"
+ "version" : "2.020"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@Filter/@Git/Tag",
- "version" : "2.014"
+ "version" : "2.020"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
"name" : "@Filter/@Git/Push",
- "version" : "2.014"
+ "version" : "2.020"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker::Runner",
+ "config" : {
+ "Dist::Zilla::Role::TestRunner" : {
+ "default_jobs" : 1
+ }
+ },
"name" : "MakeMaker::Runner",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.300037"
+ "version" : "5.014"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "4.300037"
+ "version" : "5.014"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":AllFiles",
+ "version" : "5.014"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":NoFiles",
+ "version" : "5.014"
}
],
"zilla" : {
@@ -273,7 +404,7 @@
"config" : {
"is_trial" : "0"
},
- "version" : "4.300037"
+ "version" : "5.014"
}
}
}
@@ -3,139 +3,150 @@ abstract: 'Check validity of Internet email addresses'
author:
- 'Maurice Aubrey <maurice@hevanet.com>'
build_requires:
- Capture::Tiny: 0
- Test::More: 0.96
- blib: 0
+ Test::More: '0.96'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300037, CPAN::Meta::Converter version 2.132140'
+generated_by: 'Dist::Zilla version 5.014, CPAN::Meta::Converter version 2.140640'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ version: '1.4'
name: Email-Valid
requires:
- Carp: 0
- File::Spec: 0
- IO::CaptureOutput: 0
- IO::File: 0
- Mail::Address: 0
- Net::DNS: 0
- Net::Domain::TLD: 1.65
- Scalar::Util: 0
- perl: 5.006
- strict: 0
- warnings: 0
+ Carp: '0'
+ File::Spec: '0'
+ IO::CaptureOutput: '0'
+ IO::File: '0'
+ Mail::Address: '0'
+ Net::DNS: '0'
+ Net::Domain::TLD: '1.65'
+ Scalar::Util: '0'
+ perl: '5.006'
+ strict: '0'
+ warnings: '0'
resources:
bugtracker: https://github.com/rjbs/Email-Valid/issues
homepage: https://github.com/rjbs/Email-Valid
repository: https://github.com/rjbs/Email-Valid.git
-version: 1.192
+version: '1.193'
x_Dist_Zilla:
perl:
- version: 5.019003
+ version: '5.019010'
plugins:
-
class: Dist::Zilla::Plugin::Git::GatherDir
name: '@Filter/Git::GatherDir'
- version: 2.014
+ version: '2.020'
-
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@Filter/CheckPrereqsIndexed'
- version: 0.009
+ version: '0.011'
-
class: Dist::Zilla::Plugin::CheckExtraTests
name: '@Filter/CheckExtraTests'
- version: 0.011
+ version: '0.021'
+ -
+ class: Dist::Zilla::Plugin::PromptIfStale
+ config:
+ Dist::Zilla::Plugin::PromptIfStale:
+ check_all_plugins: 0
+ check_all_prereqs: 0
+ modules:
+ - Dist::Zilla::PluginBundle::RJBS
+ phase: build
+ skip: []
+ name: '@Filter/RJBS-Outdated'
+ version: '0.021'
+ -
+ class: Dist::Zilla::Plugin::PromptIfStale
+ config:
+ Dist::Zilla::Plugin::PromptIfStale:
+ check_all_plugins: '1'
+ check_all_prereqs: 0
+ modules: []
+ phase: release
+ skip: []
+ name: '@Filter/CPAN-Outdated'
+ version: '0.021'
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@Filter/@Filter/PruneCruft'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@Filter/@Filter/ManifestSkip'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@Filter/@Filter/MetaYAML'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::License
name: '@Filter/@Filter/License'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::Readme
name: '@Filter/@Filter/Readme'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@Filter/@Filter/ExecDir'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@Filter/@Filter/ShareDir'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::Manifest
name: '@Filter/@Filter/Manifest'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::TestRelease
name: '@Filter/@Filter/TestRelease'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@Filter/@Filter/ConfirmRelease'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@Filter/@Filter/UploadToCPAN'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@Filter/AutoPrereqs'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::Git::NextVersion
name: '@Filter/Git::NextVersion'
- version: 2.014
+ version: '2.020'
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@Filter/PkgVersion'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@Filter/MetaConfig'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@Filter/MetaJSON'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::NextRelease
name: '@Filter/NextRelease'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::Test::ChangesHasContent
name: '@Filter/Test::ChangesHasContent'
- version: 0.006
+ version: '0.006'
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@Filter/PodSyntaxTests'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::ReportVersions::Tiny
name: '@Filter/ReportVersions::Tiny'
- version: 1.09
- -
- class: Dist::Zilla::Plugin::Test::Compile
- config:
- Dist::Zilla::Plugin::Test::Compile:
- module_finder:
- - ':InstallModules'
- script_finder:
- - ':ExecFiles'
- name: '@Filter/Test::Compile'
- version: 2.018
+ version: '1.10'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -143,61 +154,152 @@ x_Dist_Zilla:
phase: test
type: requires
name: '@Filter/TestMoreWithSubtests'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::PodWeaver
+ config:
+ Dist::Zilla::Plugin::PodWeaver:
+ config_plugins:
+ - '@RJBS'
+ finder:
+ - ':InstallModules'
+ - ':ExecFiles'
+ plugins:
+ -
+ class: Pod::Weaver::Plugin::EnsurePod5
+ name: '@CorePrep/EnsurePod5'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Plugin::H1Nester
+ name: '@CorePrep/H1Nester'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Plugin::SingleEncoding
+ name: '@RJBS/SingleEncoding'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Name
+ name: '@RJBS/Name'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Version
+ name: '@RJBS/Version'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Region
+ name: '@RJBS/Prelude'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Generic
+ name: '@RJBS/Synopsis'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Generic
+ name: '@RJBS/Description'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Generic
+ name: '@RJBS/Overview'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Generic
+ name: '@RJBS/Stability'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: Attributes
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: Methods
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: Functions
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Leftovers
+ name: '@RJBS/Leftovers'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Region
+ name: '@RJBS/postlude'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Authors
+ name: '@RJBS/Authors'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Legal
+ name: '@RJBS/Legal'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Plugin::Transformer
+ name: '@RJBS/List'
+ version: '4.006'
name: '@Filter/PodWeaver'
- version: 3.101642
+ version: '4.005'
-
class: Dist::Zilla::Plugin::GithubMeta
name: '@Filter/GithubMeta'
- version: 0.30
+ version: '0.42'
-
class: Dist::Zilla::Plugin::Git::Check
name: '@Filter/@Git/Check'
- version: 2.014
+ version: '2.020'
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@Filter/@Git/Commit'
- version: 2.014
+ version: '2.020'
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@Filter/@Git/Tag'
- version: 2.014
+ version: '2.020'
-
class: Dist::Zilla::Plugin::Git::Push
name: '@Filter/@Git/Push'
- version: 2.014
+ version: '2.020'
-
class: Dist::Zilla::Plugin::MakeMaker::Runner
+ config:
+ Dist::Zilla::Role::TestRunner:
+ default_jobs: 1
name: MakeMaker::Runner
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.300037
+ version: '5.014'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: 4.300037
+ version: '5.014'
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':AllFiles'
+ version: '5.014'
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':NoFiles'
+ version: '5.014'
zilla:
class: Dist::Zilla::Dist::Builder
config:
- is_trial: 0
- version: 4.300037
+ is_trial: '0'
+ version: '5.014'
@@ -1,7 +1,7 @@
This archive contains the distribution Email-Valid,
-version 1.192:
+version 1.193:
Check validity of Internet email addresses
@@ -11,3 +11,5 @@ This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
+This README file was generated by Dist::Zilla::Plugin::Readme v5.014.
+
@@ -2,9 +2,7 @@ require 5.006;
use strict;
use warnings;
package Email::Valid;
-{
- $Email::Valid::VERSION = '1.192';
-}
+$Email::Valid::VERSION = '1.193';
# ABSTRACT: Check validity of Internet email addresses
our (
$RFC822PAT,
@@ -19,6 +17,7 @@ use File::Spec;
use Scalar::Util 'blessed';
our %AUTOLOAD = (
+ allow_ip => 1,
fqdn => 1,
fudge => 1,
mxcheck => 1,
@@ -147,11 +146,14 @@ sub _net_dns_query {
my $packet = $Resolver->send($host, 'MX') or croak $Resolver->errorstring;
if ($packet->header->ancount) {
- my $mx = ($packet->answer)[0]->exchange;
- if ($mx eq '.' or $mx eq '') {
- return $self->details('mx'); # Null MX
- } else {
- return 1;
+ my @mx_entries = grep { $_->{'type'} eq 'MX' } $packet->answer;
+ if(@mx_entries) {
+ my $mx = ($mx_entries[0])->exchange;
+ if ($mx eq '.' or $mx eq '') {
+ return $self->details('mx'); # Null MX
+ } else {
+ return 1;
+ }
}
}
@@ -497,17 +499,227 @@ $RFC822PAT =~ s/\n//g;
1;
+
+#pod =head1 SYNOPSIS
+#pod
+#pod use Email::Valid;
+#pod my $address = Email::Valid->address('maurice@hevanet.com');
+#pod print ($address ? 'yes' : 'no');
+#pod
+#pod =head1 DESCRIPTION
+#pod
+#pod This module determines whether an email address is well-formed, and
+#pod optionally, whether a mail host exists for the domain.
+#pod
+#pod Please note that there is no way to determine whether an
+#pod address is deliverable without attempting delivery (for details, see
+#pod perlfaq 9).
+#pod
+#pod =head1 PREREQUISITES
+#pod
+#pod This module requires perl 5.004 or later and the Mail::Address module.
+#pod Either the Net::DNS module or the nslookup utility is required
+#pod for DNS checks. The Net::Domain::TLD module is required to check the
+#pod validity of top level domains.
+#pod
+#pod =head1 METHODS
+#pod
+#pod Every method which accepts an <ADDRESS> parameter may
+#pod be passed either a string or an instance of the Mail::Address
+#pod class. All errors raise an exception.
+#pod
+#pod =over 4
+#pod
+#pod =item new ( [PARAMS] )
+#pod
+#pod This method is used to construct an Email::Valid object.
+#pod It accepts an optional list of named parameters to
+#pod control the behavior of the object at instantiation.
+#pod
+#pod The following named parameters are allowed. See the
+#pod individual methods below of details.
+#pod
+#pod -mxcheck
+#pod -tldcheck
+#pod -fudge
+#pod -fqdn
+#pod -allow_ip
+#pod -local_rules
+#pod
+#pod =item mx ( <ADDRESS>|<DOMAIN> )
+#pod
+#pod This method accepts an email address or domain name and determines
+#pod whether a DNS record (A or MX) exists for it.
+#pod
+#pod The method returns true if a record is found and undef if not.
+#pod
+#pod Either the Net::DNS module or the nslookup utility is required for
+#pod DNS checks. Using Net::DNS is the preferred method since error
+#pod handling is improved. If Net::DNS is available, you can modify
+#pod the behavior of the resolver (e.g. change the default tcp_timeout
+#pod value) by manipulating the global Net::DNS::Resolver instance stored in
+#pod $Email::Valid::Resolver.
+#pod
+#pod =item rfc822 ( <ADDRESS> )
+#pod
+#pod This method determines whether an address conforms to the RFC822
+#pod specification (except for nested comments). It returns true if it
+#pod conforms and undef if not.
+#pod
+#pod =item fudge ( <TRUE>|<FALSE> )
+#pod
+#pod Specifies whether calls to address() should attempt to correct
+#pod common addressing errors. Currently, this results in the removal of
+#pod spaces in AOL addresses, and the conversion of commas to periods in
+#pod Compuserve addresses. The default is false.
+#pod
+#pod =item allow_ip ( <TRUE>|<FALSE> )
+#pod
+#pod Specifies whether a "domain literal" is acceptable as the domain part. That
+#pod means addresses like: C<rjbs@[1.2.3.4]>
+#pod
+#pod The checking for the domain literal is stricter than the RFC and looser than
+#pod checking for a valid IP address, I<but this is subject to change>.
+#pod
+#pod The default is true.
+#pod
+#pod =item fqdn ( <TRUE>|<FALSE> )
+#pod
+#pod Species whether addresses passed to address() must contain a fully
+#pod qualified domain name (FQDN). The default is true.
+#pod
+#pod B<Please note!> FQDN checks only occur for non-domain-literals. In other
+#pod words, if you have set C<allow_ip> and the address ends in a bracketed IP
+#pod address, the FQDN check will not occur.
+#pod
+#pod =item tld ( <ADDRESS> )
+#pod
+#pod This method determines whether the domain part of an address is in a
+#pod recognized top-level domain.
+#pod
+#pod B<Please note!> TLD checks only occur for non-domain-literals. In other
+#pod words, if you have set C<allow_ip> and the address ends in a bracketed IP
+#pod address, the TLD check will not occur.
+#pod
+#pod =item local_rules ( <TRUE>|<FALSE> )
+#pod
+#pod Specifies whether addresses passed to address() should be tested
+#pod for domain specific restrictions. Currently, this is limited to
+#pod certain AOL restrictions that I'm aware of. The default is false.
+#pod
+#pod =item mxcheck ( <TRUE>|<FALSE> )
+#pod
+#pod Specifies whether addresses passed to address() should be checked
+#pod for a valid DNS entry. The default is false.
+#pod
+#pod =item tldcheck ( <TRUE>|<FALSE> )
+#pod
+#pod Specifies whether addresses passed to address() should be checked
+#pod for a valid top level domains. The default is false.
+#pod
+#pod =item address ( <ADDRESS> )
+#pod
+#pod This is the primary method which determines whether an email
+#pod address is valid. It's behavior is modified by the values of
+#pod mxcheck(), tldcheck(), local_rules(), fqdn(), and fudge(). If the address
+#pod passes all checks, the (possibly modified) address is returned as
+#pod a string. Otherwise, the undefined value is returned.
+#pod In a list context, the method also returns an instance of the
+#pod Mail::Address class representing the email address.
+#pod
+#pod =item details ()
+#pod
+#pod If the last call to address() returned undef, you can call this
+#pod method to determine why it failed. Possible values are:
+#pod
+#pod rfc822
+#pod localpart
+#pod local_rules
+#pod fqdn
+#pod mxcheck
+#pod tldcheck
+#pod
+#pod If the class is not instantiated, you can get the same information
+#pod from the global $Email::Valid::Details.
+#pod
+#pod =back
+#pod
+#pod =head1 EXAMPLES
+#pod
+#pod Let's see if the address 'maurice@hevanet.com' conforms to the
+#pod RFC822 specification:
+#pod
+#pod print (Email::Valid->address('maurice@hevanet.com') ? 'yes' : 'no');
+#pod
+#pod Additionally, let's make sure there's a mail host for it:
+#pod
+#pod print (Email::Valid->address( -address => 'maurice@hevanet.com',
+#pod -mxcheck => 1 ) ? 'yes' : 'no');
+#pod
+#pod Let's see an example of how the address may be modified:
+#pod
+#pod $addr = Email::Valid->address('Alfred Neuman <Neuman @ foo.bar>');
+#pod print "$addr\n"; # prints Neuman@foo.bar
+#pod
+#pod Now let's add the check for top level domains:
+#pod
+#pod $addr = Email::Valid->address( -address => 'Neuman@foo.bar',
+#pod -tldcheck => 1 );
+#pod print "$addr\n"; # doesn't print anything
+#pod
+#pod Need to determine why an address failed?
+#pod
+#pod unless(Email::Valid->address('maurice@hevanet')) {
+#pod print "address failed $Email::Valid::Details check.\n";
+#pod }
+#pod
+#pod If an error is encountered, an exception is raised. This is really
+#pod only possible when performing DNS queries. Trap any exceptions by
+#pod wrapping the call in an eval block:
+#pod
+#pod eval {
+#pod $addr = Email::Valid->address( -address => 'maurice@hevanet.com',
+#pod -mxcheck => 1 );
+#pod };
+#pod warn "an error was encountered: $@" if $@;
+#pod
+#pod =head1 CREDITS
+#pod
+#pod Significant portions of this module are based on the ckaddr program
+#pod written by Tom Christiansen and the RFC822 address pattern developed
+#pod by Jeffrey Friedl. Neither were involved in the construction of this
+#pod module; all errors are mine.
+#pod
+#pod Thanks very much to the following people for their suggestions and
+#pod bug fixes:
+#pod
+#pod Otis Gospodnetic <otis@DOMINIS.com>
+#pod Kim Ryan <kimaryan@ozemail.com.au>
+#pod Pete Ehlke <pde@listserv.music.sony.com>
+#pod Lupe Christoph
+#pod David Birnbaum
+#pod Achim
+#pod Elizabeth Mattijsen (liz@dijkmat.nl)
+#pod
+#pod =head1 SEE ALSO
+#pod
+#pod Mail::Address, Net::DNS, Net::Domain::TLD, perlfaq9
+#pod
+#pod =cut
+
__END__
=pod
+=encoding UTF-8
+
=head1 NAME
Email::Valid - Check validity of Internet email addresses
=head1 VERSION
-version 1.192
+version 1.193
=head1 SYNOPSIS
@@ -1,39 +0,0 @@
-use strict;
-use warnings;
-
-# This test was generated via Dist::Zilla::Plugin::Test::Compile 2.018
-
-use Test::More 0.88;
-
-
-
-use Capture::Tiny qw{ capture };
-
-my @module_files = qw(
-Email/Valid.pm
-);
-
-my @scripts = qw(
-
-);
-
-# no fake home requested
-
-my @warnings;
-for my $lib (@module_files)
-{
- my ($stdout, $stderr, $exit) = capture {
- system($^X, '-Mblib', '-e', qq{require q[$lib]});
- };
- is($?, 0, "$lib loaded ok");
- warn $stderr if $stderr;
- push @warnings, $stderr if $stderr;
-}
-
-
-
-is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
-
-
-
-done_testing;
@@ -9,7 +9,7 @@ our $success = 0;
END { $success && done_testing; }
# List our own version used to generate this
-my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.09\n";
+my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10\n";
eval { # no excuses!
# report our Perl details
@@ -48,7 +48,6 @@ sub pmver {
return sprintf('%-45s => %-10s%-15s%s', $module, $pmver, $wanted, "\n");
}
-eval { $v .= pmver('Capture::Tiny','any version') };
eval { $v .= pmver('Carp','any version') };
eval { $v .= pmver('File::Spec','any version') };
eval { $v .= pmver('IO::CaptureOutput','any version') };
@@ -58,10 +57,7 @@ eval { $v .= pmver('Net::DNS','any version') };
eval { $v .= pmver('Net::Domain::TLD','1.65') };
eval { $v .= pmver('Scalar::Util','any version') };
eval { $v .= pmver('Test::More','0.96') };
-eval { $v .= pmver('Test::Pod','1.41') };
-eval { $v .= pmver('blib','any version') };
eval { $v .= pmver('strict','any version') };
-eval { $v .= pmver('version','0.9901') };
eval { $v .= pmver('warnings','any version') };
@@ -4,7 +4,7 @@ use Test::More tests => 2;
note 'Checking Changes';
my $changes_file = 'Changes';
-my $newver = '1.192';
+my $newver = '1.193';
my $trial_token = '-TRIAL';
SKIP: {
@@ -1,7 +1,6 @@
#!perl
+# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
use Test::More;
-
-eval "use Test::Pod 1.41";
-plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
+use Test::Pod 1.41;
all_pod_files_ok();