Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Way to exclude paths in paths specifications in .podspec #65

Closed
darvin opened this Issue · 9 comments

3 participants

@darvin

May be use Ruby's Find expressions in paths fields of .podspecs?
I need to set clean_paths to all paths in project, except one, how I should do this?

@alloy
Owner

You can glob in clean_paths, but this still won’t allow you to exclude one path from everything. So, I think we should allow the use of the FileList class from Rake, which amongst others allows you to add extra conditions such as exclude.

In your case this would then look like:

  s.clean_paths = FileList['*'].exclude('iphone')

PS: You should not clean files such as README and especially LICENSE.

@darvin

of course, thanks

@darvin darvin closed this
@alloy
Owner

You can’t yet use the FileList class, I need to add support for it. It’s almost done, but I might not release it yet until tomorrow when I’ve had a bit more time to check it all works.

@alloy
Owner

I’ve just pushed out version 0.3.2, with that version you can do:

s.clean_paths = FileList['*'].exclude(/iphone$/)
@groue

Hi. How do we do, now that FileList is deprecated?

@groue

Thanks @alloy.

This is the line that won't lint (https://github.com/CocoaPods/Specs/blob/master/GRMustache/6.4.1/GRMustache.podspec#L10):

spec.public_header_files = FileList['src/classes/*.h'].exclude(/_private/)

exclude_files is described as "A list of file patterns that should be excluded from the other file patterns."

However my xxx_private headers should be removed only from the public header files. Not from all other file patterns (particularly, not for compilation header files).

Do I see a problem where there is no one? Or did I just spot a blind spot in the new API?

@alloy
Owner

@groue Ah I see, no that’s because of #998.

@groue

You're right, @allloy, thanks for spotting #998 for me. I'll add my two cents in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.