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.


I assume you mean that last line, and yes.  Removed.
On 7/16/14, 3:12 PM, Jason Frey wrote:
>
> In spec/endian_spec.rb:
>
> > +  it('.new with invalid endian modifier') do
> > +    ->() { BinaryStruct.new(BIG_STRUCT_DEF_INVALID_ENDIAN_MODIFIER) }.should
> > +    raise_error(RuntimeError)
> > +  end
> > +
> > +  it('.new with unrecognized little e format') do
> > +    ->() { BinaryStruct.new(LIL_STRUCT_DEF_UNRECOG_ENDIAN_FMT) }.should
> > +    raise_error(RuntimeError)
> > +  end
> > +
> > +  it('.new with unsupported little e attribute') do
> > +    ->() { BinaryStruct.new(LIL_STRUCT_DEF_UNSUPPORTED_ENDIAN_ATTRIBUTE) }.should
> > +    raise_error(RuntimeError)
> > +  end
> > +
> > +  it('.new') { ->() { BinaryStruct.new }.should_not raise_error }
>
> Isn't this a duplicate spec?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/ManageIQ/binary_struct/pull/3/files#r15020761>.
>

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