{"id":19640332,"url":"https://github.com/kentnl/dist-zilla-plugin-prereqs-matchinstalled","last_synced_at":"2025-02-26T22:44:40.596Z","repository":{"id":9812221,"uuid":"11794329","full_name":"kentnl/Dist-Zilla-Plugin-Prereqs-MatchInstalled","owner":"kentnl","description":" Depend on versions of modules the same as you have installed","archived":false,"fork":false,"pushed_at":"2017-03-03T08:41:52.000Z","size":344,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-09T18:56:39.433Z","etag":null,"topics":["dist-zilla","perl"],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kentnl.png","metadata":{"files":{"readme":"README.mkdn","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-31T15:36:03.000Z","updated_at":"2017-03-03T08:16:59.000Z","dependencies_parsed_at":"2022-09-13T08:40:29.975Z","dependency_job_id":null,"html_url":"https://github.com/kentnl/Dist-Zilla-Plugin-Prereqs-MatchInstalled","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnl%2FDist-Zilla-Plugin-Prereqs-MatchInstalled","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnl%2FDist-Zilla-Plugin-Prereqs-MatchInstalled/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnl%2FDist-Zilla-Plugin-Prereqs-MatchInstalled/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnl%2FDist-Zilla-Plugin-Prereqs-MatchInstalled/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentnl","download_url":"https://codeload.github.com/kentnl/Dist-Zilla-Plugin-Prereqs-MatchInstalled/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240947649,"owners_count":19883030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dist-zilla","perl"],"created_at":"2024-11-11T14:05:24.966Z","updated_at":"2025-02-26T22:44:40.575Z","avatar_url":"https://github.com/kentnl.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nDist::Zilla::Plugin::Prereqs::MatchInstalled - Depend on versions of modules the same as you have installed\n\n# VERSION\n\nversion 1.001004\n\n# SYNOPSIS\n\nThis is based on the code of\n[`[Author::KENTNL::Prereqs::Latest::Selective]`](https://metacpan.org/pod/Dist::Zilla::Plugin::Author::KENTNL::Prereqs::Latest::Selective),\nbut intended for a wider audience.\n\n    [Prereqs::MatchInstalled]\n    module = My::Module\n\nIf you want to automatically add **all** modules that are `prereqs`, perhaps instead look at\n[`[Prereqs::MatchInstalled::All]`](https://metacpan.org/pod/Dist::Zilla::Plugin::Prereqs::MatchInstalled::All)\n\n**NOTE:** Dependencies will only be upgraded to match the _Installed_ version if they're found elsewhere in the dependency tree.\n\nThis is designed so that it integrates with other automated version provisioning.\n\nIf you're hard-coding module dependencies instead, you will want to place this module _after_ other modules that declare\ndependencies.\n\nFor instance:\n\n    [Prereqs]\n    Foo = 0\n\n    [Prereqs::MatchInstalled]\n    module = Foo\n\n^^ `Foo` will be upgraded to the version installed.\n\nBy default, dependencies that match values of `module` will be upgraded when they are found in:\n\n    phase: build, test, runtime, configure, develop\n    relation: depends, suggests, recommends\n\nTo change this behavior, specify one or more of the following parameters:\n\n    applyto_phase = build\n    applyto_phase = configure\n\n    applyto_relation = requires\n\netc.\n\nFor more complex demands, this also works:\n\n    applyto = build.requires\n    applyto = configure.recommends\n\nAnd that should hopefully be sufficient to cover any conceivable use-case.\n\nAlso note, we don't do any sort of sanity checking on the module list you provide.\n\nFor instance,\n\n    module = strict\n    module = warning\n\nWill both upgrade the strict and warnings dependencies on your module, regardless of how daft an idea that may be.\n\nAnd with a little glue\n\n    module = perl\n\nDoes what you want, but you probably shouldn't rely on that :).\n\n# METHODS\n\n## mvp\\_multivalue\\_args\n\nThe following properties can be specified multiple times:\n\n- `applyto`\n- `applyto_relation`\n- `applyto_phase`\n- `modules`\n\n## `mvp_aliases`\n\nThe `module` is an alias for `modules`\n\n## `current_version_of`\n\n    $self-\u003ecurrent_version_of($package);\n\nAttempts to find the current version of `$package`.\n\nReturns `undef` if something went wrong.\n\n## `register_prereqs`\n\nThis is for [`Dist::Zilla::Role::PrereqSource`](https://metacpan.org/pod/Dist::Zilla::Role::PrereqSource), which gets new prerequisites\nfrom this module.\n\n# ATTRIBUTES\n\n## `applyto_phase`\n\nDetermines which phases will be checked for module dependencies to upgrade.\n\n    [Prereqs::MatchInstalled]\n    applyto_phase = build\n    applyto_phase = test\n\nDefaults to:\n\n    build test runtime configure develop\n\n## `applyto_relation`\n\nDetermines which relations will be checked for module dependencies to upgrade.\n\n    [Prereqs::MatchInstalled]\n    applyto_relation = requires\n\nDefaults to:\n\n    requires suggests recommends\n\n## `applyto`\n\nDetermines the total list of `phase`/`relation` combinations which will be checked for dependencies to upgrade.\n\nIf not specified, is built from [`applyto_phase`](#applyto_phase) and [`applyto_relation`](#applyto_relation)\n\n    [Prereqs::MatchInstalled]\n    applyto = runtime.requires\n    applyto = configure.requires\n\n## `modules`\n\nContains the list of modules that will be searched for in the existing `Prereqs` stash to upgrade.\n\n    [Prereqs::MatchInstalled]\n    module = Foo\n    module = Bar\n    modules = Baz ; this is the same as the previous 2\n\nIf you want to automatically add **all** modules that are `prereqs`, perhaps instead look at\n[`[Prereqs::MatchInstalled::All]`](https://metacpan.org/pod/Dist::Zilla::Plugin::Prereqs::MatchInstalled::All)\n\n# PRIVATE ATTRIBUTES\n\n## `_applyto_list`\n\n**Internal.**\n\nContains the contents of [`applyto`](#applyto) represented as an `ArrayRef[ArrayRef[Str]]`\n\n## `_modules_hash`\n\nContains a copy of [`modules`](#modules) as a hash for easy look-up.\n\n# PRIVATE METHODS\n\n## \\_build\\_applyto\n\n## \\_build\\_applyto\\_list\n\n## \\_build\\_\\_modules\\_hash\n\n## \\_user\\_wants\\_upgrade\\_on\n\n# AUTHOR\n\nKent Fredric \u003ckentnl@cpan.org\u003e\n\n# COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2017 by Kent Fredric \u003ckentfredric@gmail.com\u003e.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentnl%2Fdist-zilla-plugin-prereqs-matchinstalled","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentnl%2Fdist-zilla-plugin-prereqs-matchinstalled","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentnl%2Fdist-zilla-plugin-prereqs-matchinstalled/lists"}