Increase the maximum number of open files on the system:
ulimit -n 10480
Run:
gulp clean
You could try a different method to install Ruby. Checkout rbenv. Instructions:
Install rbenv
brew install rbenv ruby-build
Add eval "$(rbenv init -)"
to the end of your .bash_profile
:
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
Install a version of ruby
and set it to your local version:
rbenv install 2.0.0-p647 rbenv local 2.0.0-p647
Please ask for help on the Slack channel. Join at slack.cordova.io