google-protobuf 4.27.1 → 4.27.2
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/ruby-upb.c +11 -11
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ed0702b2b37613a87f420424018e9f4ac5f04c8ecd24bbbe8eef896742165146
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: a0fe013361c732b9dcb6430dc92444869303426b4670921a8dc08f4178528bc9
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 9f908beee8408e633869c417a2397d319acc629fc5255f18da568647d76fc680711280be57055a4bbf1444fe0789dc730416e8f17142044102ac90d6dad2fe23
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 032c01bfe89544c82f9028468e8db1a22129dfa2dc0132d52a39b1b5b2bbe4481b610484c4df7510d0c0df117027ad5171fa67efabc94e364d8ec69034bb8139
         
     | 
| 
         @@ -13212,8 +13212,7 @@ bool _upb_FieldDef_ValidateUtf8(const upb_FieldDef* f) { 
     | 
|
| 
       13212 
13212 
     | 
    
         | 
| 
       13213 
13213 
     | 
    
         
             
            bool _upb_FieldDef_IsGroupLike(const upb_FieldDef* f) {
         
     | 
| 
       13214 
13214 
     | 
    
         
             
              // Groups are always tag-delimited.
         
     | 
| 
       13215 
     | 
    
         
            -
              if ( 
     | 
| 
       13216 
     | 
    
         
            -
                  UPB_DESC(FeatureSet_DELIMITED)) {
         
     | 
| 
      
 13215 
     | 
    
         
            +
              if (f->type_ != kUpb_FieldType_Group) {
         
     | 
| 
       13217 
13216 
     | 
    
         
             
                return false;
         
     | 
| 
       13218 
13217 
     | 
    
         
             
              }
         
     | 
| 
       13219 
13218 
     | 
    
         | 
| 
         @@ -13647,12 +13646,6 @@ static void _upb_FieldDef_Create(upb_DefBuilder* ctx, const char* prefix, 
     | 
|
| 
       13647 
13646 
     | 
    
         
             
                  UPB_DESC(FieldDescriptorProto_has_type_name)(field_proto);
         
     | 
| 
       13648 
13647 
     | 
    
         | 
| 
       13649 
13648 
     | 
    
         
             
              f->type_ = (int)UPB_DESC(FieldDescriptorProto_type)(field_proto);
         
     | 
| 
       13650 
     | 
    
         
            -
              if (f->type_ == kUpb_FieldType_Message &&
         
     | 
| 
       13651 
     | 
    
         
            -
                  // TODO: remove once we can deprecate kUpb_FieldType_Group.
         
     | 
| 
       13652 
     | 
    
         
            -
                  UPB_DESC(FeatureSet_message_encoding)(f->resolved_features) ==
         
     | 
| 
       13653 
     | 
    
         
            -
                      UPB_DESC(FeatureSet_DELIMITED)) {
         
     | 
| 
       13654 
     | 
    
         
            -
                f->type_ = kUpb_FieldType_Group;
         
     | 
| 
       13655 
     | 
    
         
            -
              }
         
     | 
| 
       13656 
13649 
     | 
    
         | 
| 
       13657 
13650 
     | 
    
         
             
              if (has_type) {
         
     | 
| 
       13658 
13651 
     | 
    
         
             
                switch (f->type_) {
         
     | 
| 
         @@ -13673,7 +13666,7 @@ static void _upb_FieldDef_Create(upb_DefBuilder* ctx, const char* prefix, 
     | 
|
| 
       13673 
13666 
     | 
    
         
             
                }
         
     | 
| 
       13674 
13667 
     | 
    
         
             
              }
         
     | 
| 
       13675 
13668 
     | 
    
         | 
| 
       13676 
     | 
    
         
            -
              if (!has_type && has_type_name) {
         
     | 
| 
      
 13669 
     | 
    
         
            +
              if ((!has_type && has_type_name) || f->type_ == kUpb_FieldType_Message) {
         
     | 
| 
       13677 
13670 
     | 
    
         
             
                f->type_ =
         
     | 
| 
       13678 
13671 
     | 
    
         
             
                    UPB_FIELD_TYPE_UNSPECIFIED;  // We'll assign this in resolve_subdef()
         
     | 
| 
       13679 
13672 
     | 
    
         
             
              } else {
         
     | 
| 
         @@ -13823,8 +13816,15 @@ static void resolve_subdef(upb_DefBuilder* ctx, const char* prefix, 
     | 
|
| 
       13823 
13816 
     | 
    
         
             
                      break;
         
     | 
| 
       13824 
13817 
     | 
    
         
             
                    case UPB_DEFTYPE_MSG:
         
     | 
| 
       13825 
13818 
     | 
    
         
             
                      f->sub.msgdef = def;
         
     | 
| 
       13826 
     | 
    
         
            -
                      f->type_ = kUpb_FieldType_Message; 
     | 
| 
       13827 
     | 
    
         
            -
             
     | 
| 
      
 13819 
     | 
    
         
            +
                      f->type_ = kUpb_FieldType_Message;
         
     | 
| 
      
 13820 
     | 
    
         
            +
                      // TODO: remove once we can deprecate
         
     | 
| 
      
 13821 
     | 
    
         
            +
                      // kUpb_FieldType_Group.
         
     | 
| 
      
 13822 
     | 
    
         
            +
                      if (UPB_DESC(FeatureSet_message_encoding)(f->resolved_features) ==
         
     | 
| 
      
 13823 
     | 
    
         
            +
                              UPB_DESC(FeatureSet_DELIMITED) &&
         
     | 
| 
      
 13824 
     | 
    
         
            +
                          !upb_MessageDef_IsMapEntry(def) &&
         
     | 
| 
      
 13825 
     | 
    
         
            +
                          !(f->msgdef && upb_MessageDef_IsMapEntry(f->msgdef))) {
         
     | 
| 
      
 13826 
     | 
    
         
            +
                        f->type_ = kUpb_FieldType_Group;
         
     | 
| 
      
 13827 
     | 
    
         
            +
                      }
         
     | 
| 
       13828 
13828 
     | 
    
         
             
                      f->has_presence = !upb_FieldDef_IsRepeated(f);
         
     | 
| 
       13829 
13829 
     | 
    
         
             
                      break;
         
     | 
| 
       13830 
13830 
     | 
    
         
             
                    default:
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: google-protobuf
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 4.27. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 4.27.2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Protobuf Authors
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2024-06- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-06-25 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rake-compiler-dock
         
     | 
| 
         @@ -188,7 +188,7 @@ homepage: https://developers.google.com/protocol-buffers 
     | 
|
| 
       188 
188 
     | 
    
         
             
            licenses:
         
     | 
| 
       189 
189 
     | 
    
         
             
            - BSD-3-Clause
         
     | 
| 
       190 
190 
     | 
    
         
             
            metadata:
         
     | 
| 
       191 
     | 
    
         
            -
              source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.27. 
     | 
| 
      
 191 
     | 
    
         
            +
              source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.27.2/ruby
         
     | 
| 
       192 
192 
     | 
    
         
             
            post_install_message: 
         
     | 
| 
       193 
193 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       194 
194 
     | 
    
         
             
            require_paths:
         
     |