Skip to content

gemspec should accept array as allowed_push_host #4484

@hadmut

Description

@hadmut

Hi,
a gemspec file can contain a line like
spec.metadata["allowed_push_host"] = "http://localhost:9292"
(and should) to restrict where a gem can be pushed to.

However, it accepts a single string only. But especially when using privat gem stores there's often reason to use more than one for the same gem, e.g. one at the regular office and one at home for home-office. So it would be practical, if the gemspec would allow an array of strings (or even regular expressions) as allowed_push_hosts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions