rubymotion/BubbleWrap — pull request #126 by kibiz0r (2012-08-23 01:22:21+00:00)
Title: BubbleWrap::String#to_color assumes MotionSupport-incompatible implementation of String#camelize

`'white'.to_color` yields an ArgumentError when BubbleWrap is used alongside MotionSupport.

Both [ActiveSupport](https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/string/inflections.rb#L89) and [MotionSupport](https://github.com/hookercookerman/motion_support/blob/master/motion/core_ext/string/inflections.rb#L72) expect String#camelize to take :upper or :lower, not true or false, which causes to_color to error out when using BubbleWrap alongside MotionSupport.

This patches BubbleWrap::String to handle both conventions. (Whether BubbleWrap should override MotionSupport if MotionSupport intends to provide these methods is another question.)