bootsnap 1.7.4 → 1.7.5
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/CHANGELOG.md +5 -0
- data/lib/bootsnap.rb +3 -1
- data/lib/bootsnap/load_path_cache/cache.rb +1 -1
- data/lib/bootsnap/load_path_cache/store.rb +1 -0
- data/lib/bootsnap/version.rb +1 -1
- metadata +4 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: b7dac6bb1ac2018e46d1cdac77a243cc1e2d46d8dc24deb0a9248320451549ba
         | 
| 4 | 
            +
              data.tar.gz: 9cd95e8c52993daffd79f1d21961c5754f88642250c9552881f30f26f9dcc462
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: e6cee7f1ed6c30d819e576fa79d1e627585996d139dd4add684fc22d4bf720ae1c0f778bb1ee23c2a7819d788c7956b9632f03b5861bb7f6e507f3562687b70e
         | 
| 7 | 
            +
              data.tar.gz: 505de0bcbfa90ab03fde256bea4dec4f5728482b61d452887da7a49c84894daff61c1aa0b16a2a114ddab142ae2a75d09f4447de80a6b33068ea0c15ec0fdd8f
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,5 +1,10 @@ | |
| 1 1 | 
             
            # Unreleased
         | 
| 2 2 |  | 
| 3 | 
            +
            # 1.7.5
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            * Handle a regression of Ruby 2.7.3 causing Bootsnap to call the deprecated `untaint` method. (#360)
         | 
| 6 | 
            +
            * Gracefully handle read-only file system as well as other errors preventing to persist the load path cache. (#358)
         | 
| 7 | 
            +
             | 
| 3 8 | 
             
            # 1.7.4
         | 
| 4 9 |  | 
| 5 10 | 
             
            * Stop raising errors when encoutering various file system errors. The cache is now best effort,
         | 
    
        data/lib/bootsnap.rb
    CHANGED
    
    | @@ -27,7 +27,9 @@ module Bootsnap | |
| 27 27 |  | 
| 28 28 | 
             
              def self.instrumentation=(callback)
         | 
| 29 29 | 
             
                @instrumentation = callback
         | 
| 30 | 
            -
                 | 
| 30 | 
            +
                if respond_to?(:instrumentation_enabled=, true)
         | 
| 31 | 
            +
                  self.instrumentation_enabled = !!callback
         | 
| 32 | 
            +
                end
         | 
| 31 33 | 
             
              end
         | 
| 32 34 |  | 
| 33 35 | 
             
              def self._instrument(event, path)
         | 
| @@ -196,7 +196,7 @@ module Bootsnap | |
| 196 196 |  | 
| 197 197 | 
             
                  s = rand.to_s.force_encoding(Encoding::US_ASCII).freeze
         | 
| 198 198 | 
             
                  if s.respond_to?(:-@)
         | 
| 199 | 
            -
                    if (-s).equal?(s) && (-s.dup).equal?(s)
         | 
| 199 | 
            +
                    if (-s).equal?(s) && (-s.dup).equal?(s) || RUBY_VERSION >= '2.7'
         | 
| 200 200 | 
             
                      def try_index(f)
         | 
| 201 201 | 
             
                        if (p = @index[f])
         | 
| 202 202 | 
             
                          -(File.join(p, f).freeze)
         | 
    
        data/lib/bootsnap/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: bootsnap
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.7. | 
| 4 | 
            +
              version: 1.7.5
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Burke Libbey
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021-04 | 
| 11 | 
            +
            date: 2021-05-04 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -42,14 +42,14 @@ dependencies: | |
| 42 42 | 
             
              name: rake-compiler
         | 
| 43 43 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 44 | 
             
                requirements:
         | 
| 45 | 
            -
                - - " | 
| 45 | 
            +
                - - ">="
         | 
| 46 46 | 
             
                  - !ruby/object:Gem::Version
         | 
| 47 47 | 
             
                    version: '0'
         | 
| 48 48 | 
             
              type: :development
         | 
| 49 49 | 
             
              prerelease: false
         | 
| 50 50 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 51 | 
             
                requirements:
         | 
| 52 | 
            -
                - - " | 
| 52 | 
            +
                - - ">="
         | 
| 53 53 | 
             
                  - !ruby/object:Gem::Version
         | 
| 54 54 | 
             
                    version: '0'
         | 
| 55 55 | 
             
            - !ruby/object:Gem::Dependency
         |