google-protobuf 3.19.0 → 3.19.6
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 google-protobuf might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/message.c +2 -1
- data/ext/google/protobuf_c/ruby-upb.c +1 -1
- data/tests/basic.rb +8 -0
- metadata +6 -12
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: f7b469a8a336dd06c05787cea409469c2b0ab764fbef0d64c76d6ce94616aff5
         | 
| 4 | 
            +
              data.tar.gz: 4f18e96626a5fb8568b8f014cc04685ae2ecb918fb6841101012fd1e77a60c08
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 913e16862bb7575bd041b70661b34325b9bdf981f53a021cac733f9982ab7057ae41a9ae5aad8024b506aade4e3e3937a19bbaacae379660d571fecf2f5320b7
         | 
| 7 | 
            +
              data.tar.gz: b61d0363640988643e1654962c08c236a2d667acc662d08fb57a5d04d2edc8eb1f48a2604d055f552a4a1cfd839f990a06b5a8a8252363d3881d57396aba8e2f
         | 
| @@ -1012,7 +1012,6 @@ static VALUE Message_decode_json(int argc, VALUE* argv, VALUE klass) { | |
| 1012 1012 | 
             
             */
         | 
| 1013 1013 | 
             
            static VALUE Message_encode(VALUE klass, VALUE msg_rb) {
         | 
| 1014 1014 | 
             
              Message* msg = ruby_to_Message(msg_rb);
         | 
| 1015 | 
            -
              upb_arena *arena = upb_arena_new();
         | 
| 1016 1015 | 
             
              const char *data;
         | 
| 1017 1016 | 
             
              size_t size;
         | 
| 1018 1017 |  | 
| @@ -1020,6 +1019,8 @@ static VALUE Message_encode(VALUE klass, VALUE msg_rb) { | |
| 1020 1019 | 
             
                rb_raise(rb_eArgError, "Message of wrong type.");
         | 
| 1021 1020 | 
             
              }
         | 
| 1022 1021 |  | 
| 1022 | 
            +
              upb_arena *arena = upb_arena_new();
         | 
| 1023 | 
            +
             | 
| 1023 1024 | 
             
              data = upb_encode(msg->msg, upb_msgdef_layout(msg->msgdef), arena,
         | 
| 1024 1025 | 
             
                                &size);
         | 
| 1025 1026 |  | 
| @@ -5583,7 +5583,7 @@ static void make_layout(symtab_addctx *ctx, const upb_msgdef *m) { | |
| 5583 5583 | 
             
              }
         | 
| 5584 5584 |  | 
| 5585 5585 | 
             
              /* Account for space used by hasbits. */
         | 
| 5586 | 
            -
              l->size = div_round_up(hasbit, 8);
         | 
| 5586 | 
            +
              l->size = div_round_up(hasbit + 1, 8);
         | 
| 5587 5587 |  | 
| 5588 5588 | 
             
              /* Allocate non-oneof fields. */
         | 
| 5589 5589 | 
             
              for (upb_msg_field_begin(&it, m); !upb_msg_field_done(&it);
         | 
    
        data/tests/basic.rb
    CHANGED
    
    | @@ -71,6 +71,14 @@ module BasicTest | |
| 71 71 | 
             
                  TestMessage.encode(msg)
         | 
| 72 72 | 
             
                end
         | 
| 73 73 |  | 
| 74 | 
            +
                def test_issue_9440
         | 
| 75 | 
            +
                  msg = HelloRequest.new
         | 
| 76 | 
            +
                  msg.id = 8
         | 
| 77 | 
            +
                  assert_equal 8, msg.id
         | 
| 78 | 
            +
                  msg.version = '1'
         | 
| 79 | 
            +
                  assert_equal 8, msg.id
         | 
| 80 | 
            +
                end
         | 
| 81 | 
            +
             | 
| 74 82 | 
             
                def test_has_field
         | 
| 75 83 | 
             
                  m = TestSingularFields.new
         | 
| 76 84 | 
             
                  assert !m.has_singular_msg?
         | 
    
        metadata
    CHANGED
    
    | @@ -1,35 +1,29 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-protobuf
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.19. | 
| 4 | 
            +
              version: 3.19.6
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Protobuf Authors
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2022-09-29 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rake-compiler-dock
         | 
| 15 15 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 16 | 
             
                requirements:
         | 
| 17 | 
            -
                - -  | 
| 17 | 
            +
                - - '='
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 19 | 
             
                    version: 1.1.0
         | 
| 20 | 
            -
                - - "<"
         | 
| 21 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 22 | 
            -
                    version: '2.0'
         | 
| 23 20 | 
             
              type: :development
         | 
| 24 21 | 
             
              prerelease: false
         | 
| 25 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 26 23 | 
             
                requirements:
         | 
| 27 | 
            -
                - -  | 
| 24 | 
            +
                - - '='
         | 
| 28 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 29 26 | 
             
                    version: 1.1.0
         | 
| 30 | 
            -
                - - "<"
         | 
| 31 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 32 | 
            -
                    version: '2.0'
         | 
| 33 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 34 28 | 
             
              name: rake-compiler
         | 
| 35 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -110,7 +104,7 @@ homepage: https://developers.google.com/protocol-buffers | |
| 110 104 | 
             
            licenses:
         | 
| 111 105 | 
             
            - BSD-3-Clause
         | 
| 112 106 | 
             
            metadata:
         | 
| 113 | 
            -
              source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.19. | 
| 107 | 
            +
              source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.19.6/ruby
         | 
| 114 108 | 
             
            post_install_message: 
         | 
| 115 109 | 
             
            rdoc_options: []
         | 
| 116 110 | 
             
            require_paths:
         | 
| @@ -126,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 126 120 | 
             
                - !ruby/object:Gem::Version
         | 
| 127 121 | 
             
                  version: '0'
         | 
| 128 122 | 
             
            requirements: []
         | 
| 129 | 
            -
            rubygems_version: 3. | 
| 123 | 
            +
            rubygems_version: 3.0.3.1
         | 
| 130 124 | 
             
            signing_key: 
         | 
| 131 125 | 
             
            specification_version: 4
         | 
| 132 126 | 
             
            summary: Protocol Buffers
         |