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.


Hokie Dokie.
On 7/16/14, 3:12 PM, Jason Frey wrote:
>
> In spec/endian_spec.rb:
>
> > +    s2.should_not equal(s)
> > +  end
> > +
> > +  it '.new with another little BinaryStruct should ==' do
> > +    s = BinaryStruct.new(BIG_STRUCT_DEF)
> > +    s2 = BinaryStruct.new(LIL_STRUCT_DEF)
> > +    s2.should_not == s
> > +  end
> > +  it '.new with another little BinaryStruct should not equal' do
> > +    s = BinaryStruct.new(BIG_STRUCT_DEF)
> > +    s2 = BinaryStruct.new(LIL_STRUCT_DEF)
> > +    s2.should_not equal(s)
> > +  end
> > +
> > +  it('.new with unrecognized big e format') do
> > +    ->() { BinaryStruct.new(BIG_STRUCT_DEF_UNRECOG_ENDIAN_FMT) }.should
>
> The empty parens on the lambda syntax are not necessary and should 
> probably be removed.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/ManageIQ/binary_struct/pull/3/files#r15020737>.
>

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