Changes | 15 |
LICENSE | 44 |
MANIFEST | 13 |
META.json | 68197 |
META.yml | 63158 |
Makefile.PL | 1822 |
README | 22 |
dist.ini | 22 |
lib/Sub/Exporter/Lexical.pm | 1732 |
t/000-report-versions-tiny.t | 076 |
t/release-pod-syntax.t | 150 |
xt/release/changes_has_content.t | 041 |
xt/release/pod-syntax.t | 07 |
13 files changed (This is a version diff) | 191549 |
@@ -1,4 +1,8 @@
-Revision history for 4331515032
+Revision history for 140426442310536
+
+0.092292 2013-11-24 13:59:03 America/New_York
+ - switch guts to Lexical:::Sub
+ - update bugtracker and repo URLs
0.092291 2011-10-15 18:18:35 Asia/Tokyo
repackage to add META.yml
@@ -1,4 +1,4 @@
-This software is copyright (c) 2011 by Ricardo Signes.
+This software is copyright (c) 2013 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@ b) the "Artistic License"
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2011 by Ricardo Signes.
+This software is Copyright (c) 2013 by Ricardo Signes.
This is free software, licensed under:
@@ -22,7 +22,7 @@ This is free software, licensed under:
Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -272,7 +272,7 @@ That's all there is to it!
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2011 by Ricardo Signes.
+This software is Copyright (c) 2013 by Ricardo Signes.
This is free software, licensed under:
@@ -8,6 +8,8 @@ README
dist.ini
lib/Sub/Exporter/Lexical.pm
snippet.pl
+t/000-report-versions-tiny.t
t/basic.t
t/lib/TestExporter.pm
-t/release-pod-syntax.t
+xt/release/changes_has_content.t
+xt/release/pod-syntax.t
@@ -4,7 +4,7 @@
"Ricardo Signes <rjbs@cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300002, CPAN::Meta::Converter version 2.112621",
+ "generated_by" : "Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.132830",
"license" : [
"perl_5"
],
@@ -19,147 +19,175 @@
"ExtUtils::MakeMaker" : "6.30"
}
},
+ "develop" : {
+ "requires" : {
+ "Test::Pod" : "1.41",
+ "version" : "0.9901"
+ }
+ },
"runtime" : {
"requires" : {
- "B::Hooks::EndOfScope" : 0,
+ "Lexical::Sub" : "0",
"Sub::Exporter" : "0.978",
- "namespace::clean" : 0,
- "strict" : 0,
- "warnings" : 0
+ "perl" : "v5.12.0",
+ "strict" : "0",
+ "warnings" : "0"
}
},
"test" : {
"requires" : {
- "Test::More" : "0.96"
+ "Test::More" : "0.96",
+ "lib" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
- "homepage" : "https://github.com/rjbs/sub-exporter-lexical",
+ "bugtracker" : {
+ "web" : "https://github.com/rjbs/Sub-Exporter-Lexical/issues"
+ },
+ "homepage" : "https://github.com/rjbs/Sub-Exporter-Lexical",
"repository" : {
"type" : "git",
- "url" : "https://github.com/rjbs/sub-exporter-lexical.git",
- "web" : "https://github.com/rjbs/sub-exporter-lexical"
+ "url" : "https://github.com/rjbs/Sub-Exporter-Lexical.git",
+ "web" : "https://github.com/rjbs/Sub-Exporter-Lexical"
}
},
- "version" : "0.092291",
+ "version" : "0.092292",
"x_Dist_Zilla" : {
+ "perl" : {
+ "version" : "5.018001"
+ },
"plugins" : [
{
+ "class" : "Dist::Zilla::Plugin::Git::GatherDir",
+ "name" : "@RJBS/Git::GatherDir",
+ "version" : "2.019"
+ },
+ {
"class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
"name" : "@RJBS/CheckPrereqsIndexed",
- "version" : "0.005"
+ "version" : "0.009"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::CheckExtraTests",
+ "name" : "@RJBS/CheckExtraTests",
+ "version" : "0.016"
},
{
- "class" : "Dist::Zilla::Plugin::GatherDir",
- "name" : "@RJBS/@Basic/GatherDir",
- "version" : "4.300002"
+ "class" : "Dist::Zilla::Plugin::PromptIfStale",
+ "name" : "@RJBS/RJBS-Outdated",
+ "version" : "0.013"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::PromptIfStale",
+ "name" : "@RJBS/CPAN-Outdated",
+ "version" : "0.013"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
- "name" : "@RJBS/@Basic/PruneCruft",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/PruneCruft",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
- "name" : "@RJBS/@Basic/ManifestSkip",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/ManifestSkip",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
- "name" : "@RJBS/@Basic/MetaYAML",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/MetaYAML",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::License",
- "name" : "@RJBS/@Basic/License",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/License",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
- "name" : "@RJBS/@Basic/Readme",
- "version" : "4.300002"
- },
- {
- "class" : "Dist::Zilla::Plugin::ExtraTests",
- "name" : "@RJBS/@Basic/ExtraTests",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/Readme",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
- "name" : "@RJBS/@Basic/ExecDir",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/ExecDir",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
- "name" : "@RJBS/@Basic/ShareDir",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/ShareDir",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
- "name" : "@RJBS/@Basic/MakeMaker",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/MakeMaker",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
- "name" : "@RJBS/@Basic/Manifest",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/Manifest",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
- "name" : "@RJBS/@Basic/TestRelease",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/TestRelease",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
- "name" : "@RJBS/@Basic/ConfirmRelease",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/ConfirmRelease",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
- "name" : "@RJBS/@Basic/UploadToCPAN",
- "version" : "4.300002"
+ "name" : "@RJBS/@Filter/UploadToCPAN",
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@RJBS/AutoPrereqs",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
"name" : "@RJBS/Git::NextVersion",
- "version" : "1.112510"
+ "version" : "2.019"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@RJBS/PkgVersion",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
- "version" : "4.300002"
+ "version" : "5.006"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent",
+ "name" : "@RJBS/Test::ChangesHasContent",
+ "version" : "0.006"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@RJBS/PodSyntaxTests",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
- "class" : "Dist::Zilla::Plugin::Repository",
- "name" : "@RJBS/Repository",
- "version" : "0.18"
+ "class" : "Dist::Zilla::Plugin::ReportVersions::Tiny",
+ "name" : "@RJBS/ReportVersions::Tiny",
+ "version" : "1.10"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -170,37 +198,138 @@
}
},
"name" : "@RJBS/TestMoreWithSubtests",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
+ "config" : {
+ "Dist::Zilla::Plugin::PodWeaver" : {
+ "config_plugin" : "@RJBS",
+ "finder" : [
+ ":InstallModules",
+ ":ExecFiles"
+ ],
+ "plugins" : [
+ {
+ "class" : "Pod::Weaver::Plugin::EnsurePod5",
+ "name" : "@CorePrep/EnsurePod5",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Plugin::H1Nester",
+ "name" : "@CorePrep/H1Nester",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Plugin::SingleEncoding",
+ "name" : "@RJBS/SingleEncoding",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Name",
+ "name" : "@RJBS/Name",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Version",
+ "name" : "@RJBS/Version",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Region",
+ "name" : "@RJBS/Prelude",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Generic",
+ "name" : "@RJBS/Synopsis",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Generic",
+ "name" : "@RJBS/Description",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Generic",
+ "name" : "@RJBS/Overview",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Generic",
+ "name" : "@RJBS/Stability",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "Attributes",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "Methods",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "Functions",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Leftovers",
+ "name" : "@RJBS/Leftovers",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Region",
+ "name" : "@RJBS/postlude",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Authors",
+ "name" : "@RJBS/Authors",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Legal",
+ "name" : "@RJBS/Legal",
+ "version" : "4.004"
+ },
+ {
+ "class" : "Pod::Weaver::Plugin::Transformer",
+ "name" : "@RJBS/List",
+ "version" : "4.004"
+ }
+ ]
+ }
+ },
"name" : "@RJBS/PodWeaver",
- "version" : "3.101641"
+ "version" : "4.002"
},
{
"class" : "Dist::Zilla::Plugin::GithubMeta",
"name" : "@RJBS/GithubMeta",
- "version" : "0.22"
+ "version" : "0.42"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@RJBS/@Git/Check",
- "version" : "1.112510"
+ "version" : "2.019"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"name" : "@RJBS/@Git/Commit",
- "version" : "1.112510"
+ "version" : "2.019"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@RJBS/@Git/Tag",
- "version" : "1.112510"
+ "version" : "2.019"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
"name" : "@RJBS/@Git/Push",
- "version" : "1.112510"
+ "version" : "2.019"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -211,37 +340,37 @@
}
},
"name" : "Prereqs",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.300002"
+ "version" : "5.006"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "4.300002"
+ "version" : "5.006"
}
],
"zilla" : {
@@ -249,7 +378,7 @@
"config" : {
"is_trial" : "0"
},
- "version" : "4.300002"
+ "version" : "5.006"
}
}
}
@@ -4,119 +4,135 @@ author:
- 'Ricardo Signes <rjbs@cpan.org>'
build_requires:
Test::More: 0.96
+ lib: 0
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300002, CPAN::Meta::Converter version 2.112621'
+generated_by: 'Dist::Zilla version 5.006, CPAN::Meta::Converter version 2.132830'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: Sub-Exporter-Lexical
requires:
- B::Hooks::EndOfScope: 0
+ Lexical::Sub: 0
Sub::Exporter: 0.978
- namespace::clean: 0
+ perl: v5.12.0
strict: 0
warnings: 0
resources:
- homepage: https://github.com/rjbs/sub-exporter-lexical
- repository: https://github.com/rjbs/sub-exporter-lexical.git
-version: 0.092291
+ bugtracker: https://github.com/rjbs/Sub-Exporter-Lexical/issues
+ homepage: https://github.com/rjbs/Sub-Exporter-Lexical
+ repository: https://github.com/rjbs/Sub-Exporter-Lexical.git
+version: 0.092292
x_Dist_Zilla:
+ perl:
+ version: 5.018001
plugins:
-
+ class: Dist::Zilla::Plugin::Git::GatherDir
+ name: '@RJBS/Git::GatherDir'
+ version: 2.019
+ -
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@RJBS/CheckPrereqsIndexed'
- version: 0.005
+ version: 0.009
+ -
+ class: Dist::Zilla::Plugin::CheckExtraTests
+ name: '@RJBS/CheckExtraTests'
+ version: 0.016
+ -
+ class: Dist::Zilla::Plugin::PromptIfStale
+ name: '@RJBS/RJBS-Outdated'
+ version: 0.013
-
- class: Dist::Zilla::Plugin::GatherDir
- name: '@RJBS/@Basic/GatherDir'
- version: 4.300002
+ class: Dist::Zilla::Plugin::PromptIfStale
+ name: '@RJBS/CPAN-Outdated'
+ version: 0.013
-
class: Dist::Zilla::Plugin::PruneCruft
- name: '@RJBS/@Basic/PruneCruft'
- version: 4.300002
+ name: '@RJBS/@Filter/PruneCruft'
+ version: 5.006
-
class: Dist::Zilla::Plugin::ManifestSkip
- name: '@RJBS/@Basic/ManifestSkip'
- version: 4.300002
+ name: '@RJBS/@Filter/ManifestSkip'
+ version: 5.006
-
class: Dist::Zilla::Plugin::MetaYAML
- name: '@RJBS/@Basic/MetaYAML'
- version: 4.300002
+ name: '@RJBS/@Filter/MetaYAML'
+ version: 5.006
-
class: Dist::Zilla::Plugin::License
- name: '@RJBS/@Basic/License'
- version: 4.300002
+ name: '@RJBS/@Filter/License'
+ version: 5.006
-
class: Dist::Zilla::Plugin::Readme
- name: '@RJBS/@Basic/Readme'
- version: 4.300002
- -
- class: Dist::Zilla::Plugin::ExtraTests
- name: '@RJBS/@Basic/ExtraTests'
- version: 4.300002
+ name: '@RJBS/@Filter/Readme'
+ version: 5.006
-
class: Dist::Zilla::Plugin::ExecDir
- name: '@RJBS/@Basic/ExecDir'
- version: 4.300002
+ name: '@RJBS/@Filter/ExecDir'
+ version: 5.006
-
class: Dist::Zilla::Plugin::ShareDir
- name: '@RJBS/@Basic/ShareDir'
- version: 4.300002
+ name: '@RJBS/@Filter/ShareDir'
+ version: 5.006
-
class: Dist::Zilla::Plugin::MakeMaker
- name: '@RJBS/@Basic/MakeMaker'
- version: 4.300002
+ name: '@RJBS/@Filter/MakeMaker'
+ version: 5.006
-
class: Dist::Zilla::Plugin::Manifest
- name: '@RJBS/@Basic/Manifest'
- version: 4.300002
+ name: '@RJBS/@Filter/Manifest'
+ version: 5.006
-
class: Dist::Zilla::Plugin::TestRelease
- name: '@RJBS/@Basic/TestRelease'
- version: 4.300002
+ name: '@RJBS/@Filter/TestRelease'
+ version: 5.006
-
class: Dist::Zilla::Plugin::ConfirmRelease
- name: '@RJBS/@Basic/ConfirmRelease'
- version: 4.300002
+ name: '@RJBS/@Filter/ConfirmRelease'
+ version: 5.006
-
class: Dist::Zilla::Plugin::UploadToCPAN
- name: '@RJBS/@Basic/UploadToCPAN'
- version: 4.300002
+ name: '@RJBS/@Filter/UploadToCPAN'
+ version: 5.006
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@RJBS/AutoPrereqs'
- version: 4.300002
+ version: 5.006
-
class: Dist::Zilla::Plugin::Git::NextVersion
name: '@RJBS/Git::NextVersion'
- version: 1.112510
+ version: 2.019
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
- version: 4.300002
+ version: 5.006
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
- version: 4.300002
+ version: 5.006
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
- version: 4.300002
+ version: 5.006
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
- version: 4.300002
+ version: 5.006
+ -
+ class: Dist::Zilla::Plugin::Test::ChangesHasContent
+ name: '@RJBS/Test::ChangesHasContent'
+ version: 0.006
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
- version: 4.300002
+ version: 5.006
-
- class: Dist::Zilla::Plugin::Repository
- name: '@RJBS/Repository'
- version: 0.18
+ class: Dist::Zilla::Plugin::ReportVersions::Tiny
+ name: '@RJBS/ReportVersions::Tiny'
+ version: 1.10
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -124,31 +140,110 @@ x_Dist_Zilla:
phase: test
type: requires
name: '@RJBS/TestMoreWithSubtests'
- version: 4.300002
+ version: 5.006
-
class: Dist::Zilla::Plugin::PodWeaver
+ config:
+ Dist::Zilla::Plugin::PodWeaver:
+ config_plugin: '@RJBS'
+ finder:
+ - ':InstallModules'
+ - ':ExecFiles'
+ plugins:
+ -
+ class: Pod::Weaver::Plugin::EnsurePod5
+ name: '@CorePrep/EnsurePod5'
+ version: 4.004
+ -
+ class: Pod::Weaver::Plugin::H1Nester
+ name: '@CorePrep/H1Nester'
+ version: 4.004
+ -
+ class: Pod::Weaver::Plugin::SingleEncoding
+ name: '@RJBS/SingleEncoding'
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Name
+ name: '@RJBS/Name'
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Version
+ name: '@RJBS/Version'
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Region
+ name: '@RJBS/Prelude'
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Generic
+ name: '@RJBS/Synopsis'
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Generic
+ name: '@RJBS/Description'
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Generic
+ name: '@RJBS/Overview'
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Generic
+ name: '@RJBS/Stability'
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Collect
+ name: Attributes
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Collect
+ name: Methods
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Collect
+ name: Functions
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Leftovers
+ name: '@RJBS/Leftovers'
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Region
+ name: '@RJBS/postlude'
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Authors
+ name: '@RJBS/Authors'
+ version: 4.004
+ -
+ class: Pod::Weaver::Section::Legal
+ name: '@RJBS/Legal'
+ version: 4.004
+ -
+ class: Pod::Weaver::Plugin::Transformer
+ name: '@RJBS/List'
+ version: 4.004
name: '@RJBS/PodWeaver'
- version: 3.101641
+ version: 4.002
-
class: Dist::Zilla::Plugin::GithubMeta
name: '@RJBS/GithubMeta'
- version: 0.22
+ version: 0.42
-
class: Dist::Zilla::Plugin::Git::Check
name: '@RJBS/@Git/Check'
- version: 1.112510
+ version: 2.019
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@RJBS/@Git/Commit'
- version: 1.112510
+ version: 2.019
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@RJBS/@Git/Tag'
- version: 1.112510
+ version: 2.019
-
class: Dist::Zilla::Plugin::Git::Push
name: '@RJBS/@Git/Push'
- version: 1.112510
+ version: 2.019
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -156,33 +251,33 @@ x_Dist_Zilla:
phase: runtime
type: requires
name: Prereqs
- version: 4.300002
+ version: 5.006
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.300002
+ version: 5.006
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: 4.300002
+ version: 5.006
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.300002
+ version: 5.006
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.300002
+ version: 5.006
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.300002
+ version: 5.006
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: 4.300002
+ version: 5.006
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
- version: 4.300002
+ version: 5.006
@@ -2,7 +2,7 @@
use strict;
use warnings;
-
+use 5.012000;
use ExtUtils::MakeMaker 6.30;
@@ -11,9 +11,7 @@ use ExtUtils::MakeMaker 6.30;
my %WriteMakefileArgs = (
"ABSTRACT" => "to export lexically-available subs with Sub::Exporter",
"AUTHOR" => "Ricardo Signes <rjbs\@cpan.org>",
- "BUILD_REQUIRES" => {
- "Test::More" => "0.96"
- },
+ "BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.30"
},
@@ -22,30 +20,36 @@ my %WriteMakefileArgs = (
"LICENSE" => "perl",
"NAME" => "Sub::Exporter::Lexical",
"PREREQ_PM" => {
- "B::Hooks::EndOfScope" => 0,
+ "Lexical::Sub" => 0,
"Sub::Exporter" => "0.978",
- "namespace::clean" => 0,
"strict" => 0,
"warnings" => 0
},
- "VERSION" => "0.092291",
+ "TEST_REQUIRES" => {
+ "Test::More" => "0.96",
+ "lib" => 0
+ },
+ "VERSION" => "0.092292",
"test" => {
"TESTS" => "t/*.t"
}
);
-unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
- my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
- my $pp = $WriteMakefileArgs{PREREQ_PM};
- for my $mod ( keys %$br ) {
- if ( exists $pp->{$mod} ) {
- $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
- }
- else {
- $pp->{$mod} = $br->{$mod};
- }
- }
+my %FallbackPrereqs = (
+ "Lexical::Sub" => 0,
+ "Sub::Exporter" => "0.978",
+ "Test::More" => "0.96",
+ "lib" => 0,
+ "strict" => 0,
+ "warnings" => 0
+);
+
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ delete $WriteMakefileArgs{TEST_REQUIRES};
+ delete $WriteMakefileArgs{BUILD_REQUIRES};
+ $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
@@ -1,11 +1,11 @@
This archive contains the distribution Sub-Exporter-Lexical,
-version 0.092291:
+version 0.092292:
to export lexically-available subs with Sub::Exporter
-This software is copyright (c) 2011 by Ricardo Signes.
+This software is copyright (c) 2013 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -6,6 +6,6 @@ copyright_holder = Ricardo Signes
[@RJBS]
[Prereqs]
+perl = 5.12.0 ; for Lexical::Sub
Sub::Exporter = 0.978 ; installer / generator stuff
-namespace::clean = 0
-B::Hooks::EndOfScope = 0
+Lexical::Sub = 0
@@ -2,22 +2,22 @@ use strict;
use warnings;
package Sub::Exporter::Lexical;
{
- $Sub::Exporter::Lexical::VERSION = '0.092291';
+ $Sub::Exporter::Lexical::VERSION = '0.092292';
}
# ABSTRACT: to export lexically-available subs with Sub::Exporter
-use namespace::clean ();
-use B::Hooks::EndOfScope ();
+use v5.12.0;
+
+use Lexical::Sub ();
use Sub::Exporter -setup => {
exports => [ qw(lexical_installer) ],
};
-
-sub lexical_installer {
- sub {
- my ($arg, $to_export) = @_;
+sub lexical_installer {
+ sub {
+ my ($arg, $to_export) = @_;
my $into = $arg->{into};
@@ -25,28 +25,42 @@ sub lexical_installer {
map { $to_export->[ $_ ] }
grep { not($_ % 2) and ! ref $to_export->[$_] } (0 .. $#$to_export);
- Sub::Exporter::default_installer($arg, $to_export);
- B::Hooks::EndOfScope::on_scope_end {
- namespace::clean->clean_subroutines($arg->{into}, @names);
- };
- };
-}
+ my @pairs = @$to_export;
+ while (my ($name, $code) = splice @pairs, 0, 2) {
+ if (ref $name) {
+ # We could implement this easily, but haven't. -- rjbs, 2013-11-24
+ Carp::cluck("can't import to variable with lexical installer (yet)");
+ next;
+ }
+ Lexical::Sub->import($name, $code);
+ }
+ };
+}
1;
__END__
+
=pod
+=encoding UTF-8
+
=head1 NAME
Sub::Exporter::Lexical - to export lexically-available subs with Sub::Exporter
=head1 VERSION
-version 0.092291
+version 0.092292
=head1 SYNOPSIS
+B<Achtung!> I don't know why I wrote this. I don't use it and never have.
+Originally, it was not lexical, but dynamic, despite the name. What was I
+thinking? Clearly this was a bad brain day. I have rewritten the code now to
+use L<Lexical::Sub>, which should make the behavior actually lexical, but I
+have not expanded the test suite. To continue...
+
In an exporting library:
package Some::Toolkit;
@@ -69,7 +83,7 @@ In an importing library:
{
use Some:::Toolkit { installer => lex }, qw(foo bar);
-
+
foo(1,2,3);
my $x = bar;
@@ -141,16 +155,17 @@ works:
foo(); # this does not die, even though you might expect it to
+Finally, you can't supply a C<< -as => \$var >> install destination yet.
+
=head1 AUTHOR
Ricardo Signes <rjbs@cpan.org>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2011 by Ricardo Signes.
+This software is copyright (c) 2013 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
-
@@ -0,0 +1,76 @@
+use strict;
+use warnings;
+use Test::More 0.88;
+# This is a relatively nice way to avoid Test::NoWarnings breaking our
+# expectations by adding extra tests, without using no_plan. It also helps
+# avoid any other test module that feels introducing random tests, or even
+# test plans, is a nice idea.
+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.10\n";
+
+eval { # no excuses!
+ # report our Perl details
+ my $want = 'v5.12.0';
+ $v .= "perl: $] (wanted $want) on $^O from $^X\n\n";
+};
+defined($@) and diag("$@");
+
+# Now, our module version dependencies:
+sub pmver {
+ my ($module, $wanted) = @_;
+ $wanted = " (want $wanted)";
+ my $pmver;
+ eval "require $module;";
+ if ($@) {
+ if ($@ =~ m/Can't locate .* in \@INC/) {
+ $pmver = 'module not found.';
+ } else {
+ diag("${module}: $@");
+ $pmver = 'died during require.';
+ }
+ } else {
+ my $version;
+ eval { $version = $module->VERSION; };
+ if ($@) {
+ diag("${module}: $@");
+ $pmver = 'died during VERSION check.';
+ } elsif (defined $version) {
+ $pmver = "$version";
+ } else {
+ $pmver = '<undef>';
+ }
+ }
+
+ # So, we should be good, right?
+ return sprintf('%-45s => %-10s%-15s%s', $module, $pmver, $wanted, "\n");
+}
+
+eval { $v .= pmver('ExtUtils::MakeMaker','6.30') };
+eval { $v .= pmver('Lexical::Sub','any version') };
+eval { $v .= pmver('Sub::Exporter','0.978') };
+eval { $v .= pmver('Test::More','0.96') };
+eval { $v .= pmver('lib','any version') };
+eval { $v .= pmver('strict','any version') };
+eval { $v .= pmver('warnings','any version') };
+
+
+# All done.
+$v .= <<'EOT';
+
+Thanks for using my code. I hope it works for you.
+If not, please try and include this output in the bug report.
+That will help me reproduce the issue and solve your problem.
+
+EOT
+
+diag($v);
+ok(1, "we really didn't test anything, just reporting data");
+$success = 1;
+
+# Work around another nasty module on CPAN. :/
+no warnings 'once';
+$Template::Test::NO_FLUSH = 1;
+exit 0;
@@ -1,15 +0,0 @@
-#!perl
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate testing');
- }
-}
-
-use Test::More;
-
-eval "use Test::Pod 1.41";
-plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
-
-all_pod_files_ok();
@@ -0,0 +1,41 @@
+#!perl
+
+use Test::More tests => 2;
+
+note 'Checking Changes';
+my $changes_file = 'Changes';
+my $newver = '0.092292';
+my $trial_token = '-TRIAL';
+
+SKIP: {
+ ok(-e $changes_file, "$changes_file file exists")
+ or skip 'Changes is missing', 1;
+
+ ok(_get_changes($newver), "$changes_file has content for $newver");
+}
+
+done_testing;
+
+# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit
+# by Jerome Quelin
+sub _get_changes
+{
+ my $newver = shift;
+
+ # parse changelog to find commit message
+ open(my $fh, '<', $changes_file) or die "cannot open $changes_file: $!";
+ my $changelog = join('', <$fh>);
+ close $fh;
+
+ my @content =
+ grep { /^$newver(?:$trial_token)?(?:\s+|$)/ ... /^\S/ } # from newver to un-indented
+ split /\n/, $changelog;
+ shift @content; # drop the version line
+
+ # drop unindented last line and trailing blank lines
+ pop @content while ( @content && $content[-1] =~ /^(?:\S|\s*$)/ );
+
+ # return number of non-blank lines
+ return scalar @content;
+}
+
@@ -0,0 +1,7 @@
+#!perl
+use Test::More;
+
+eval "use Test::Pod 1.41";
+plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
+
+all_pod_files_ok();