stringio 3.1.5 → 3.1.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.
- checksums.yaml +4 -4
- data/NEWS.md +11 -0
- data/ext/stringio/stringio.c +4 -2
- 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: 144b6bb8aaa29ad8b3447e979841af712093bdfe19623f26d46a595740541da6
         | 
| 4 | 
            +
              data.tar.gz: a0936d98e00b6dec96769e8189b564fee83d922a7d7f2787fa58b15e648ff22f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 3c49d46b584a010121a0c20a176a1e389178f8e53810d9898107c28154116519caf8883d68339a69a580b684f236854c36eecd4562182bf1724e67d951351a05
         | 
| 7 | 
            +
              data.tar.gz: 69189970d83c1093020071a1c86c7eb60067b06e0500b112aa55c82ad97a95ad4ba66ce7f08c018ae58312a662a9cc55de59129c5d6ebcad93c2ec9c5927ed98
         | 
    
        data/NEWS.md
    CHANGED
    
    | @@ -1,5 +1,16 @@ | |
| 1 1 | 
             
            # News
         | 
| 2 2 |  | 
| 3 | 
            +
            ## 3.1.6 - 2025-03-25
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            ### Fixes
         | 
| 6 | 
            +
             | 
| 7 | 
            +
              * CRuby: Fix SEGV at unget to a null device StringIO
         | 
| 8 | 
            +
              * JRuby:
         | 
| 9 | 
            +
                * Fix NullPointerException at unget to a null device StringIO
         | 
| 10 | 
            +
                * Use proper checkEncoding signature
         | 
| 11 | 
            +
                * Update strioWrite logic to match CRuby
         | 
| 12 | 
            +
                * GH-124
         | 
| 13 | 
            +
             | 
| 3 14 | 
             
            ## 3.1.5 - 2025-02-21
         | 
| 4 15 |  | 
| 5 16 | 
             
            ### Improvements
         | 
    
        data/ext/stringio/stringio.c
    CHANGED
    
    | @@ -13,7 +13,7 @@ | |
| 13 13 | 
             
            **********************************************************************/
         | 
| 14 14 |  | 
| 15 15 | 
             
            static const char *const
         | 
| 16 | 
            -
            STRINGIO_VERSION = "3.1. | 
| 16 | 
            +
            STRINGIO_VERSION = "3.1.6";
         | 
| 17 17 |  | 
| 18 18 | 
             
            #include <stdbool.h>
         | 
| 19 19 |  | 
| @@ -180,7 +180,9 @@ check_modifiable(struct StringIO *ptr) | |
| 180 180 | 
             
                else if (OBJ_FROZEN_RAW(ptr->string)) {
         | 
| 181 181 | 
             
            	rb_raise(rb_eIOError, "not modifiable string");
         | 
| 182 182 | 
             
                }
         | 
| 183 | 
            -
                 | 
| 183 | 
            +
                else {
         | 
| 184 | 
            +
            	rb_str_modify(ptr->string);
         | 
| 185 | 
            +
                }
         | 
| 184 186 | 
             
            }
         | 
| 185 187 |  | 
| 186 188 | 
             
            static VALUE
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: stringio
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.1. | 
| 4 | 
            +
              version: 3.1.6
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Nobu Nakada
         | 
| 8 8 | 
             
            - Charles Oliver Nutter
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2025- | 
| 11 | 
            +
            date: 2025-03-25 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies: []
         | 
| 13 13 | 
             
            description: Pseudo `IO` class from/to `String`.
         | 
| 14 14 | 
             
            email:
         | 
| @@ -42,7 +42,7 @@ licenses: | |
| 42 42 | 
             
            - Ruby
         | 
| 43 43 | 
             
            - BSD-2-Clause
         | 
| 44 44 | 
             
            metadata:
         | 
| 45 | 
            -
              changelog_uri: https://github.com/ruby/stringio/releases/tag/v3.1. | 
| 45 | 
            +
              changelog_uri: https://github.com/ruby/stringio/releases/tag/v3.1.6
         | 
| 46 46 | 
             
            rdoc_options: []
         | 
| 47 47 | 
             
            require_paths:
         | 
| 48 48 | 
             
            - lib
         |