We just flipped the switch on our new OS X image which brings you a Ruby version manager in the form of chruby and ruby-install.
Out of the box the system installed Ruby v2.0.0 is selected so if you want the latest and greatest version please specify it in your circle.yml like so:
dependencies:
pre:
- echo "2.3.1" > .ruby-version
or checking a .ruby-version file into your repo. You can easily create one by running the same command in your repos directory with echo "2.3.1" > .ruby-version and then check it in with git add .ruby-version && git commit -am "Added .ruby-version file"
hi @anon47539524, i started getting a similar error last night on my OS X machine. seems unrelated to any code changes we made. Can I be updated on the results as well?
If you are using rvm and your project includes a .ruby-version file, you can also do chruby $(cat .ruby-version | cut -d '-' -f 2) rather than having to hardcode the value in your circle.yml file.
Could this update have impacted the way OSX installs code signing credentials? We are currently not finding the valid identities even though our last build yesterday found it no problem.
Did anyone test this? Because every line in circle.yml runs in its own shell, I had to prefix every step of ours that used ruby with chruby 2.3.1; export PATH; and then it worked
It’s pretty disappointing to have a feature like this counted as shipped and a blog post written about how to use it, when it doesn’t work and breaks all our builds and deployments. Maybe test this and do an opt-in roll out rather than breaking everything next time