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, 2:57 PM, Jason Frey wrote:
>
> In lib/binary_struct.rb:
>
> > @@ -174,14 +183,32 @@ def self.validate_definition_entry_count(count)
> >      raise "unsupported count: #{count}" if count < 0
> >    end
> >
> > +  def self.validate_definition_entry_modifier(modifier)
> > +    return true if MODIFIERS.include? modifier
> > +    false
>
> We might want to rename this to |valid_definition_entry_modifier?| The 
> validate methods are named as such because they raise exceptions, 
> which this does not.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/ManageIQ/binary_struct/pull/3/files#r15019865>.
>

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