grpc 1.2.1.pre1-universal-darwin → 1.2.1.pre2-universal-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/src/ruby/ext/grpc/rb_call.c +11 -7
- data/src/ruby/lib/grpc/2.0/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.1/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.2/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.3/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.4/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 9c8c57afcb1ac4db5dfce289b8559feb647fc0e8
         | 
| 4 | 
            +
              data.tar.gz: 02d60f48e6b0710f942d4e6ab3c6e0129711fdbd
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: a70dadd0e72a286d40461de4c2640b6e009b025b011470d0b546a5abbd5dd71f5f3225a4ce502fe519f1e629ab82649ce5975507b1fa07b6ef86ab1a96d71979
         | 
| 7 | 
            +
              data.tar.gz: 7bcc1e4f066805ff6e5a2096673e2b8bf0241933ec73777a1ed04a6f763bdc6610e4c19b80d4d697ed094fa8c9cc58221e43ddfa4e7201352303e28c672677c8
         | 
    
        data/src/ruby/ext/grpc/rb_call.c
    CHANGED
    
    | @@ -784,7 +784,7 @@ static VALUE grpc_run_batch_stack_build_result(run_batch_stack *st) { | |
| 784 784 | 
             
               Only one operation of each type can be active at once in any given
         | 
| 785 785 | 
             
               batch */
         | 
| 786 786 | 
             
            static VALUE grpc_rb_call_run_batch(VALUE self, VALUE ops_hash) {
         | 
| 787 | 
            -
              run_batch_stack st;
         | 
| 787 | 
            +
              run_batch_stack *st = NULL;
         | 
| 788 788 | 
             
              grpc_rb_call *call = NULL;
         | 
| 789 789 | 
             
              grpc_event ev;
         | 
| 790 790 | 
             
              grpc_call_error err;
         | 
| @@ -792,6 +792,7 @@ static VALUE grpc_rb_call_run_batch(VALUE self, VALUE ops_hash) { | |
| 792 792 | 
             
              VALUE rb_write_flag = rb_ivar_get(self, id_write_flag);
         | 
| 793 793 | 
             
              unsigned write_flag = 0;
         | 
| 794 794 | 
             
              void *tag = (void*)&st;
         | 
| 795 | 
            +
             | 
| 795 796 | 
             
              if (RTYPEDDATA_DATA(self) == NULL) {
         | 
| 796 797 | 
             
                rb_raise(grpc_rb_eCallError, "Cannot run batch on closed call");
         | 
| 797 798 | 
             
                return Qnil;
         | 
| @@ -806,14 +807,16 @@ static VALUE grpc_rb_call_run_batch(VALUE self, VALUE ops_hash) { | |
| 806 807 | 
             
              if (rb_write_flag != Qnil) {
         | 
| 807 808 | 
             
                write_flag = NUM2UINT(rb_write_flag);
         | 
| 808 809 | 
             
              }
         | 
| 809 | 
            -
               | 
| 810 | 
            -
               | 
| 810 | 
            +
              st = gpr_malloc(sizeof(run_batch_stack));
         | 
| 811 | 
            +
              grpc_run_batch_stack_init(st, write_flag);
         | 
| 812 | 
            +
              grpc_run_batch_stack_fill_ops(st, ops_hash);
         | 
| 811 813 |  | 
| 812 814 | 
             
              /* call grpc_call_start_batch, then wait for it to complete using
         | 
| 813 815 | 
             
               * pluck_event */
         | 
| 814 | 
            -
              err = grpc_call_start_batch(call->wrapped, st | 
| 816 | 
            +
              err = grpc_call_start_batch(call->wrapped, st->ops, st->op_num, tag, NULL);
         | 
| 815 817 | 
             
              if (err != GRPC_CALL_OK) {
         | 
| 816 | 
            -
                grpc_run_batch_stack_cleanup( | 
| 818 | 
            +
                grpc_run_batch_stack_cleanup(st);
         | 
| 819 | 
            +
                gpr_free(st);
         | 
| 817 820 | 
             
                rb_raise(grpc_rb_eCallError,
         | 
| 818 821 | 
             
                         "grpc_call_start_batch failed with %s (code=%d)",
         | 
| 819 822 | 
             
                         grpc_call_error_detail_of(err), err);
         | 
| @@ -826,8 +829,9 @@ static VALUE grpc_rb_call_run_batch(VALUE self, VALUE ops_hash) { | |
| 826 829 | 
             
              }
         | 
| 827 830 | 
             
              /* Build and return the BatchResult struct result,
         | 
| 828 831 | 
             
                 if there is an error, it's reflected in the status */
         | 
| 829 | 
            -
              result = grpc_run_batch_stack_build_result( | 
| 830 | 
            -
              grpc_run_batch_stack_cleanup( | 
| 832 | 
            +
              result = grpc_run_batch_stack_build_result(st);
         | 
| 833 | 
            +
              grpc_run_batch_stack_cleanup(st);
         | 
| 834 | 
            +
              gpr_free(st);
         | 
| 831 835 | 
             
              return result;
         | 
| 832 836 | 
             
            }
         | 
| 833 837 |  | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
| Binary file | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: grpc
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.2.1. | 
| 4 | 
            +
              version: 1.2.1.pre2
         | 
| 5 5 | 
             
            platform: universal-darwin
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - gRPC Authors
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: src/ruby/bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2017-03- | 
| 11 | 
            +
            date: 2017-03-27 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: google-protobuf
         |