Add support for Big and Little Endian modifiers

This pull request also fixes encoding issues in existing tests caused by upgrading ruby from 1.8.7 to 1.9.3.
@Fryguy, @chessbyte please review.


Done.
On 7/16/14, 3:08 PM, Jason Frey wrote:
>
> In spec/endian_spec.rb:
>
> > +    'a',   nil,
> > +    'a2',  'bc',
> > +  ]
> > +  BIG_STRUCT_DEF_SIZE = 18
> > +
> > +  BIG_E_QUAD_STRUCT_DEF = [
> > +    'Q>2',  :quad,
> > +  ]
> > +  BIG_E_QUAD_DEF_SIZE = 16
> > +
> > +  BIG_STRUCT_DEF_STAR = ['i>*', :word]
> > +  BIG_STRUCT_DEF_STAR_SIZE = 0 # '*' is ignored
> > +
> > +  BIG_STRUCT_DEF_UNRECOG_ENDIAN_FMT   = ['Y>', nil]
> > +  BIG_STRUCT_DEF_UNSUPPORTED_ENDIAN_ATTRIBUTE = ['A>', nil]
> > +  BIG_STRUCT_DEF_INVALID_ENDIAN_MODIFIER = ['Q_', nil]
>
> Minor, but alignment on |=| might help readabilty here
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/ManageIQ/binary_struct/pull/3/files#r15020525>.
>

-- 
Jerry Keselman
Red Hat Virtualization R&D
jerryk@redhat.com | p. 212 530 7873