grosser/bitfields — pull request #7 by jcwilk (2012-05-26 03:36:46+00:00)
Title: Add inheritance support

Hello, working on behalf of LumosLabs and we're using your bitfield library but noticed the inheritance didn't seem to be working with the attr_accesor so I figured I might as well just go into the library and fix it the right way rather than monkey patching :P

Let me know if you have any questions, below are the commit notes but you can find them in the commit message as well:

- Add in bitfield_original_args to store an array of all the args bitfield was called with for the class
- Extract the code which sets the :bitfields and :bitfield_options values out of the code that sets scopes, etc since scopes, etc inherit without problem
- Add in an inherited block to the class to trigger adding and populating the attr_accessors via bitfield_original_options
- Add in a few extra specs to cover inheritance situations