shale-builder 0.6.0 → 0.6.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.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +8 -0
 - data/Gemfile.lock +1 -1
 - data/lib/shale/builder/version.rb +1 -1
 - data/lib/shale/builder.rb +5 -2
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: d0327d6310db97d81e7fe064c5793770957d8d22e98b1f9077e949c0353849a2
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: d893ecbbad469b26833a13789a1d6198880887d676bbc97d059b88cd4edef625
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: da213e5619f5aa2efea1900873f8b5266e665c7882bb1c601846c97124910eb69436a89b2aafc3a86792c99a1fca36ee31ebd85821b7c524c506c6689cc590dc
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: fa95173ac0ba16c1f02f52a4986de8458eced18726eed7816a2effb0129b121b7806f0d251aa6a4966d4e5c0a7f5c93237acf113592e901797b95bb41af7b506
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. 
     | 
|
| 
       5 
5 
     | 
    
         
             
            The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
         
     | 
| 
       6 
6 
     | 
    
         
             
            and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
      
 8 
     | 
    
         
            +
            ## [0.6.2] - 2025-10-16
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            [Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.6.0...v0.6.2)
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            ### Changes
         
     | 
| 
      
 13 
     | 
    
         
            +
            - Fix `Shale::Builder#inject_context`
         
     | 
| 
      
 14 
     | 
    
         
            +
            - Add `Shale::Builder::S` alias to `Shale::Type`
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
       8 
16 
     | 
    
         
             
            ## [0.6.0] - 2025-10-16
         
     | 
| 
       9 
17 
     | 
    
         | 
| 
       10 
18 
     | 
    
         
             
            [Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.5.1...v0.6.0)
         
     | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/lib/shale/builder.rb
    CHANGED
    
    | 
         @@ -44,6 +44,8 @@ module Shale 
     | 
|
| 
       44 
44 
     | 
    
         
             
                extend T::Sig
         
     | 
| 
       45 
45 
     | 
    
         
             
                extend T::Helpers
         
     | 
| 
       46 
46 
     | 
    
         | 
| 
      
 47 
     | 
    
         
            +
                S = ::Shale::Type
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
       47 
49 
     | 
    
         
             
                class << self
         
     | 
| 
       48 
50 
     | 
    
         
             
                  extend T::Sig
         
     | 
| 
       49 
51 
     | 
    
         | 
| 
         @@ -226,7 +228,8 @@ module Shale 
     | 
|
| 
       226 
228 
     | 
    
         
             
                #: (**untyped) -> void
         
     | 
| 
       227 
229 
     | 
    
         
             
                def inject_context(**context)
         
     | 
| 
       228 
230 
     | 
    
         
             
                  context.each do |name, val|
         
     | 
| 
       229 
     | 
    
         
            -
                     
     | 
| 
      
 231 
     | 
    
         
            +
                    setter = :"#{name}="
         
     | 
| 
      
 232 
     | 
    
         
            +
                    public_send(setter, val) if respond_to?(setter)
         
     | 
| 
       230 
233 
     | 
    
         
             
                  end
         
     | 
| 
       231 
234 
     | 
    
         | 
| 
       232 
235 
     | 
    
         
             
                  klass = self.class #: as untyped
         
     | 
| 
         @@ -234,7 +237,7 @@ module Shale 
     | 
|
| 
       234 
237 
     | 
    
         
             
                    val = public_send(name)
         
     | 
| 
       235 
238 
     | 
    
         
             
                    next unless val
         
     | 
| 
       236 
239 
     | 
    
         | 
| 
       237 
     | 
    
         
            -
                    val.inject_context(context)
         
     | 
| 
      
 240 
     | 
    
         
            +
                    val.inject_context(**context)
         
     | 
| 
       238 
241 
     | 
    
         
             
                  end
         
     | 
| 
       239 
242 
     | 
    
         
             
                end
         
     | 
| 
       240 
243 
     | 
    
         |