Skip to content

Conversation

endocrimes
Copy link
Member

Relates to #2729

Subsequent PRs will move the installer into a base installer and Xcode::Installer, then a Rome installer.


Pod::Xcode::PodsProjectGenerator.any_instance.stubs(:generate!)
Pod::Xcode::PodsProjectGenerator.any_instance.stubs(:share_development_pod_schemes)
Pod::Xcode::PodsProjectGenerator.any_instance.stubs(:write) do
Copy link
Member Author

Choose a reason for hiding this comment

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

@segiddins I don't think this is the right way to stub this, do you know of a better way?

Copy link
Member

Choose a reason for hiding this comment

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

just stub it and check @hook_called at the end of the spec?

private

def create_generator
Pod::Xcode::PodsProjectGenerator.new(aggregate_targets, sandbox, pod_targets, analysis_result, installation_options, config)
Copy link
Member

Choose a reason for hiding this comment

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

the Pod:: is uncessary

@segiddins
Copy link
Member

@dantoml the diff here is massive -- can you point us towards stuff you feel needs review (versus the stuff that's copy/pasted?)

@endocrimes
Copy link
Member Author

@segiddins Yeah, just working on fixing the build then will point to the changes 👍

@endocrimes endocrimes force-pushed the xcode_namespace branch 13 times, most recently from 816328d to 4cbf0c6 Compare June 9, 2016 13:30
UI.section 'Generating Pods project' do
prepare_pods_project
Copy link
Member Author

Choose a reason for hiding this comment

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

The changes here maintain the previous method call ordering, but inside PodsProjectGenerator

@@ -0,0 +1,393 @@
module Pod
Copy link
Member Author

Choose a reason for hiding this comment

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

This was moved into the Xcode namespace

endocrimes added a commit to endocrimes/CocoaPods that referenced this pull request Jun 9, 2016
Danger was crashing CocoaPods#5480 before I added a changelog entry because `pr` was undefined. From looking at Danger, it seems that this should be `pr_title`?
@endocrimes endocrimes changed the title [WIP] Move Pods Project Generation into an Xcode namespace Move Pods Project Generation into an Xcode namespace Jun 9, 2016
@@ -14,6 +14,9 @@ Documentation:

#- CocoaPods -----------------------------------------------------------------#

ParameterLists:
Copy link
Member

Choose a reason for hiding this comment

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

did you update this in the Shared repo as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

I moved this from .rubocop.yml because it was conflicting with .rubocop_todo.yml, where else should it be updated?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Shared PR CocoaPods/shared#7

* Fix Dangerfile Rubocop violations

* Update CHANGELOG.md

* Update docs

* Don't use Type = Type::Type in tests
@segiddins
Copy link
Member

So is this basically ready to merge, or is there anything that requires review?

@endocrimes
Copy link
Member Author

@segiddins I think this is ready to merge now.

@segiddins segiddins merged commit d6bf479 into CocoaPods:master Jun 14, 2016
@segiddins segiddins deleted the xcode_namespace branch June 14, 2016 02:40
#
# @return [void]
#
def create_dummy_source
Copy link

Choose a reason for hiding this comment

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

@endocrimes it's a long time past, do you still remember the reason for create the dummy files .

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.

3 participants