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

PBXNativeTarget.add_dependency support for subproject targets #101

Merged
merged 3 commits into from
Oct 17, 2013

Conversation

per-gron
Copy link

This part of my work on CocoaPods/CocoaPods#1024.

I do this in order to sanely be able to make the Pod target depend sanely on the subproject target(s).

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling b398b08 on pereckerdal:reference_for_path into 137c227 on CocoaPods:master.

end

it "does not find references by relative path" do
lambda { @project.reference_for_path(@project.path.basename) }.should.raise ArgumentError
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We tend to implement this as:

should.raise ArgumentError do
  @project.reference_for_path(@project.path.basename)
end.message.should.match /not this project/

@fabiopelosin
Copy link
Member

This patch looks great! Could you update the changelog crediting yourself?

@per-gron
Copy link
Author

Thanks for reviewing! I added the style fixes as a separate commit. I can amend them into the original two commits if you prefer.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling e45f4da on pereckerdal:reference_for_path into 137c227 on CocoaPods:master.

Per Eckerdal added 3 commits October 17, 2013 12:43
It mirrors the functionality of the method with
the same name in CocoaPod's Pod::Project class
(which after this patch will override it). The
differences are 1) CocoaPod's implementation is
constant time but this is linear wrt the number
of objects, 2) CocoaPod's implementation does not
work when you load a previously existing file.
Previously, the behavior was simply to silently create an invalid
Xcode project file that Xcode UI showed as if the dependency wasn't
added.
@per-gron
Copy link
Author

Nevermind I found that I forgot a fix anyway. I have now rebased my commits so that they are nice and clean and force pushed the new branch. I'm not too familiar with the GitHub workflow, I hope that this doesn't mess things up.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling b3ead03 on pereckerdal:reference_for_path into 137c227 on CocoaPods:master.

@alloy
Copy link
Member

alloy commented Oct 17, 2013

Looks great. Thank you!

alloy added a commit that referenced this pull request Oct 17, 2013
PBXNativeTarget.add_dependency support for subproject targets
@alloy alloy merged commit c2e05a6 into CocoaPods:master Oct 17, 2013
@fabiopelosin
Copy link
Member

👍

@per-gron per-gron deleted the reference_for_path branch October 19, 2013 07:42
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

Successfully merging this pull request may close these issues.

6 participants