Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specification module name #730

Open
tcamin opened this issue Jun 30, 2022 · 1 comment
Open

Specification module name #730

tcamin opened this issue Jun 30, 2022 · 1 comment

Comments

@tcamin
Copy link

tcamin commented Jun 30, 2022

Can someone confirm that the implementation of Pod::Specification#module_name is the expected one for subspecs?

The current implementation is the following:

    def module_name
      attributes_hash['module_name'] ||
        c99ext_identifier(attributes_hash['header_dir']) ||
        c99ext_identifier(attributes_hash['name'])
    end

In the case of a subspec the module_name doesn't seem to be correct since it returns the name of the subspec. For example a specification of a pod PodName/SubspecName returns SubspecName as module_name whether I would expect it to be PodName.

Should this be rewritten as

    def module_name
      attributes_hash['module_name'] ||
        c99ext_identifier(attributes_hash['header_dir']) ||
        c99ext_identifier(Pod::Specification::root_name(name))
    end

?

@Sulxl
Copy link

Sulxl commented Mar 6, 2023

Mega

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@tcamin @Sulxl and others