Couple nitpicks:

* The '+' at the beginning of this line breaks the build.
* A more idiomatic way to check the platform would be:
```ruby
if RUBY_PLATFORM =~ /darwin/
```
and then swap the if and else branches (having the positive branch first is usually clearer).