Skip to content

Add error handling around accessing the .netrc - #69

Open
orta wants to merge 1 commit into
masterfrom
netrc_error
Open

Add error handling around accessing the .netrc#69
orta wants to merge 1 commit into
masterfrom
netrc_error

Conversation

@orta

@orta orta commented May 28, 2016

Copy link
Copy Markdown
Member

Comment thread lib/pod/command/trunk.rb
def token
ENV['COCOAPODS_TRUNK_TOKEN'] ||
(netrc['trunk.cocoapods.org'] && netrc['trunk.cocoapods.org'].password)
ENV['COCOAPODS_TRUNK_TOKEN'] ||

Copy link
Copy Markdown
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
Copy Markdown

do you have fix it?

Comment thread lib/pod/command/trunk.rb
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
Copy Markdown

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
```~~

Comment thread lib/pod/command/trunk.rb
(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
Copy Markdown

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