Permalink
Commits on Jan 18, 2013
  1. add rake to dev dependencies

    codekitchen committed Jan 18, 2013
  2. bump version to 1.3.0

    codekitchen committed Jan 18, 2013
Commits on Dec 19, 2012
  1. README updates

    Reorganize a bit to hopefully make some things clearer.
    
    Added a section describing how to declare and use Message subclasses
    without using the .proto compiler at all, using the same DSL that
    ruby-protoc outputs internally.
    codekitchen committed Dec 19, 2012
  2. fix typo in docs

    codekitchen committed Dec 19, 2012
Commits on Dec 18, 2012
  1. implement utf-8 validation of string fields

    only on ruby 1.9+, since it uses the new Encoding features
    codekitchen committed Dec 14, 2012
Commits on Apr 25, 2012
  1. validate sub-messages

    fixes #14
    codekitchen committed Apr 25, 2012
  2. remove the no-longer-used gen_methods! call in .pb.rb files

    the method is left on the Message class, so that already-generated
    .pb.rb files don't break
    codekitchen committed Apr 25, 2012
Commits on Jan 21, 2012
  1. Merge pull request #18 from mculp/master

    add an attr_reader for proxy_class in message fields
    codekitchen committed Jan 21, 2012
Commits on Jan 16, 2012
  1. remove stray puts in specs

    codekitchen committed Jan 16, 2012
  2. Merge pull request #17 from iseatz/master

    Fix a few bugs. Thanks Mark!
    codekitchen committed Jan 16, 2012
Commits on Jan 9, 2012
Commits on Jan 4, 2012
  1. Merge branch 'nil_fix'

    mherman-iseatz committed Jan 4, 2012
Commits on Jan 3, 2012
  1. Adds Rspec tests to demonstrate various bugs in the protobuffer

    library.
    
    On code without the fixes, certain of these tests are expected to
    fail.  All tests should pass after merging in the fix branch.
    mherman-iseatz committed Jan 3, 2012
  2. Fixes Ruby 1.9 encoding on returned Strings.

    Ruby 1.9 associates an Encoding object with each string.  Strings were getting an ASCII Encoding before.  Protobuffers are only supposed to return UTF-8 strings.
    mherman-iseatz committed Jan 3, 2012
  3. Uses bytesize to determine string length in encoder rather than length.

    The length function on Ruby 1.9 Strings returns the number of characters rather than the number of bytes.  Ruby 1.8 and 1.9 Strings both have a bytesize function that returns the number of bytes.  This makes the encoder use bytesize.
    
    It should fix decoding errors on UTF-8 strings that contain multi-byte characters.
    mherman-iseatz committed Jan 3, 2012
Commits on Dec 28, 2011
  1. Better yet, a one-line negative fix. This preserves max range checking.

    If an int32 exceeds it's proper max range, the 64-bit max is subtracted
    from it.
    mherman-iseatz committed Dec 28, 2011
  2. Fixes bugs in previously committed negative number handling fix.

    After further evaluation, I found that my new encoder was making the
    numbers one bit too small.  The problem with negative number decoding
    wasn't that either the encoder or decoder was not working.  The
    negative number problem turned out to be specifically for 32-bit numbers.
    Negative int32 numbers encode to a full 64-bits.  The deserializer was
    assuming they were 32-bit.  This commit assumes all negative int32/64
    numbers are 64-bit.
    mherman-iseatz committed Dec 28, 2011
Commits on Dec 23, 2011
  1. Fixes handling of negative numbers in int32 fields.

    Fixes handling of negative numbers in int32 fields.  I'm sure this can be optimized, but it should at least give direction on how things should work.
    mherman-iseatz committed Dec 23, 2011
Commits on Dec 22, 2011
  1. Merge pull request #15 from iseatz/master

    More Descriptive Error Handling On Encoding Failures
    codekitchen committed Dec 22, 2011
Commits on Dec 21, 2011
  1. Fixes bug in handling of nil fields

    Fixes a bug that was causing the encoder to skip fields after other fields were set to nil.
    mherman-iseatz committed Dec 21, 2011
Commits on Dec 4, 2011
  1. removing some old cruft

    beckel-iseatz committed Dec 4, 2011
  2. Bubble up the invalid field in the EncodeError

    We often get invalid messages and the error does not say anything about
    which field was invalid. This patch adds a validate! method to Message
    and Message's instance variables that throws an exception rather than
    returning false like Message#valid? . It also adds the invalid field to
    the EncodeError so that it can be inspected.
    beckel-iseatz committed Dec 4, 2011
  3. Bubble up the invalid field in the EncodeError

    We often get invalid messages and the error does not say anything about
    which field was invalid. This patch adds a validate! method to Message
    and Message's instance variables that throws an exception rather than
    returning false like Message#valid? . It also adds the invalid field to
    the EncodeError so that it can be inspected.
    beckel-iseatz committed Dec 4, 2011
Commits on Oct 1, 2011
  1. version 1.2.1

    codekitchen committed Oct 1, 2011
  2. version 1.2.0

    codekitchen committed Oct 1, 2011
  3. fix ruby 1.8.7 compat

    codekitchen committed Oct 1, 2011