CocoaPods / cocoapods-downloader

A small library that provides downloaders for various source types (HTTP/SVN/Git/Mercurial)
MIT License
84 stars 72 forks source link

[HTTP] Support apple disk image (*.dmg) #45

Closed manicmaniac closed 8 years ago

manicmaniac commented 9 years ago

Add support for libraries distributed in dmg file.

orta commented 9 years ago

This looks cool @manicmaniac - can we get some tests + CHANGELOG entries please?

manicmaniac commented 9 years ago

@orta Okay, I will try it.

@kylef Well, should I fix all these problems in this commit? Or create another PR?

@segiddins Thank you for advise, I will fix it.

orta commented 9 years ago

@manicmaniac feel free to make new commits, and push them to this branch, we will help you out.

manicmaniac commented 9 years ago

I wrote up some specs and fixed the problems. Now it passes unit tests except for 2 lint errors.

lib/cocoapods-downloader/http.rb:56:7: C: Perceived complexity for type_with_url is too high. [8/7] lib/cocoapods-downloader/http.rb:96:7: C: Method has too many lines. [26/24]

I'm afraid that it needs more drastic refactor to pass those lints...

segiddins commented 9 years ago

@manicmaniac so sorry for letting this languish, but if you rebase this, RuboCop should pass again :)

segiddins commented 9 years ago

hdiutil seems not to be installed on travis?

neonichu commented 9 years ago

I think the issue is that the cp-downloader specs aren't run on Travis OS X VMs: https://travis-ci.org/CocoaPods/cocoapods-downloader/jobs/76123291#L1

manicmaniac commented 9 years ago

hmm... there are 3 choices:

I think running Travis CI on OSX is troublesome. I will try the last one.

kylef commented 9 years ago

If I recall correctly, the multi OS feature was enabled for the CocoaPods organisation a while back.

manicmaniac commented 9 years ago

@kylef Still It seems to be running on Linux. Misconfiguration or misunderstanding?

segiddins commented 8 years ago

@kylef can you review this please? Somehow it slipped by us

kylef commented 8 years ago

The code changes seem fine to me, providing we want to add support for dmg this is :+1:.

segiddins commented 8 years ago

Thanks @manicmaniac, sorry for the delay in getting this merged.