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

Add error handling around accessing the .netrc #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

orta
Copy link
Member

@orta orta commented May 28, 2016

end

def token
ENV['COCOAPODS_TRUNK_TOKEN'] ||
(netrc['trunk.cocoapods.org'] && netrc['trunk.cocoapods.org'].password)
ENV['COCOAPODS_TRUNK_TOKEN'] ||
Copy link
Member

Choose a reason for hiding this comment

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

Why the alignment change?

@gb-6k-house
Copy link

do you have fix it?

ENV['COCOAPODS_TRUNK_TOKEN'] ||
(netrc['trunk.cocoapods.org'] && netrc['trunk.cocoapods.org'].password)
ENV['COCOAPODS_TRUNK_TOKEN'] ||
(netrc['trunk.cocoapods.org'] && netrc['trunk.cocoapods.org'].password)
Copy link

Choose a reason for hiding this comment

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

Suggested change
(netrc['trunk.cocoapods.org'] && netrc['trunk.cocoapods.org'].password)
(Net trace I['trunk.cocoapods.org'] && netrc['trunk.cocoapods.org'].password
```~~

ENV['COCOAPODS_TRUNK_TOKEN'] ||
(netrc['trunk.cocoapods.org'] && netrc['trunk.cocoapods.org'].password)
ENV['COCOAPODS_TRUNK_TOKEN'] ||
(netrc['trunk.cocoapods.org'] && netrc['trunk.cocoapods.org'].password)
end
Copy link

Choose a reason for hiding this comment

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

~~end```

end

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.

4 participants