Commits on Dec 19, 2012
  1. @codekitchen
  2. @codekitchen

    fix typo in docs

    codekitchen committed Dec 18, 2012
Commits on Dec 18, 2012
  1. @codekitchen
  2. @codekitchen

    implement utf-8 validation of string fields

    only on ruby 1.9+, since it uses the new Encoding features
    codekitchen committed Dec 13, 2012
Commits on Apr 25, 2012
  1. @codekitchen
  2. @codekitchen
  3. @codekitchen

    validate sub-messages

    fixes #14
    codekitchen committed Apr 24, 2012
  4. @codekitchen

    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 24, 2012
  5. @codekitchen
Commits on Jan 21, 2012
  1. @codekitchen

    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. @codekitchen

    remove stray puts in specs

    codekitchen committed Jan 16, 2012
  2. @codekitchen

    Merge pull request #17 from iseatz/master

    Fix a few bugs. Thanks Mark!
    codekitchen committed Jan 16, 2012
Commits on Jan 9, 2012
  1. @mherman-iseatz
Commits on Jan 4, 2012
  1. @mherman-iseatz
  2. @mherman-iseatz

    Merge branch 'nil_fix'

    mherman-iseatz committed Jan 4, 2012
  3. @mherman-iseatz
Commits on Jan 3, 2012
  1. @mherman-iseatz

    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. @mherman-iseatz

    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. @mherman-iseatz

    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. @mherman-iseatz

    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. @mherman-iseatz

    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 27, 2011
Commits on Dec 23, 2011
  1. @mherman-iseatz

    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 22, 2011
Commits on Dec 22, 2011
  1. @codekitchen

    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. @mherman-iseatz

    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. @beckel-iseatz

    removing some old cruft

    beckel-iseatz committed Dec 4, 2011
  2. @beckel-iseatz

    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. @beckel-iseatz

    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. @codekitchen

    version 1.2.1

    codekitchen committed Oct 1, 2011
  2. @codekitchen
  3. @codekitchen

    version 1.2.0

    codekitchen committed Oct 1, 2011
  4. @codekitchen

    fix ruby 1.8.7 compat

    codekitchen committed Sep 30, 2011
  5. @rmarable-iseatz @codekitchen

    underscores and dots in package names

    camelcase according to the common rails convention for underscores, and
    treat dots as a new submodule,
    
    e.g. package.sub_package -> Package::SubPackage
    
    Squashed commit of the following:
    
    commit 5279440
    Author: Rob Marable <rmarable@iseatz.com>
    Date:   Fri Sep 30 18:25:25 2011 -0500
    
        Fixed my slopdoodle
    
    commit 7492656
    Author: Rob Marable <rmarable@iseatz.com>
    Date:   Fri Sep 30 17:03:44 2011 -0500
    
        Added another test
    
    commit 9da5970
    Author: Rob Marable <rmarable@iseatz.com>
    Date:   Fri Sep 30 15:49:03 2011 -0500
    
        Tweak to #field_typename
    
    commit 9fe22e8
    Author: Rob Marable <rmarable@iseatz.com>
    Date:   Fri Sep 30 14:44:19 2011 -0500
    
        Simplified camelize
    
    commit 852c3b9
    Author: Rob Marable <rmarable@iseatz.com>
    Date:   Fri Sep 30 14:21:08 2011 -0500
    
        Adding compiler support for underscores and dots in package declarations
    
    Signed-off-by: Brian Palmer <brian@codekitchen.net>
    rmarable-iseatz committed with codekitchen Sep 30, 2011
  6. @codekitchen

    don't automatically include proto file dirs as -I options

    This can cause errors in protoc in certain situations, and doesn't match
    the behavior of protoc very well anyway
    codekitchen committed Sep 30, 2011
Commits on Sep 30, 2011
  1. @codekitchen

    Merge pull request #12 from pcasaretto/master

    Fixing #11
    codekitchen committed Sep 29, 2011