sashite-pin 3.0.0 → 3.1.0
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/README.md +1 -1
 - data/lib/sashite/pin.rb +2 -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: e469a5469a29de49338f5066b5b5743860459709ab2e771209d1c55ab7e7ff0d
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 680f65379ee7ea0ead2238ed646a29ee54d673a80de7f0c54f1c56a11cf8f98f
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 1a4b4ce38433cdf1cd9a26baaba13fa8e48ff21676976287422ac917d3a41bc67e7eb688bf347a94cefb294542e98fa7d2bd292f923b7a8c6b66d73edfaebdd2
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 5da68a02154b85ab6a9b1070954f14be0a4f79e11e07c54448c0aae40772e4664c2b3368067a44c8fdef5a43b122a3c868e2cc8c6df5ed52f46afa2a2b65f021
         
     | 
    
        data/README.md
    CHANGED
    
    
    
        data/lib/sashite/pin.rb
    CHANGED
    
    | 
         @@ -18,7 +18,7 @@ module Sashite 
     | 
|
| 
       18 
18 
     | 
    
         
             
              #   "+R" - First player rook (enhanced state)
         
     | 
| 
       19 
19 
     | 
    
         
             
              #   "-p" - Second player pawn (diminished state)
         
     | 
| 
       20 
20 
     | 
    
         
             
              #
         
     | 
| 
       21 
     | 
    
         
            -
              #  
     | 
| 
      
 21 
     | 
    
         
            +
              # @see https://sashite.dev/specs/pin/1.0.0/
         
     | 
| 
       22 
22 
     | 
    
         
             
              module Pin
         
     | 
| 
       23 
23 
     | 
    
         
             
                # Check if a string is a valid PIN notation
         
     | 
| 
       24 
24 
     | 
    
         
             
                #
         
     | 
| 
         @@ -59,7 +59,7 @@ module Sashite 
     | 
|
| 
       59 
59 
     | 
    
         
             
                #   Sashite::Pin.identifier(:K, :first, :normal)     # => #<Pin::Identifier type=:K side=:first state=:normal>
         
     | 
| 
       60 
60 
     | 
    
         
             
                #   Sashite::Pin.identifier(:R, :first, :enhanced)   # => #<Pin::Identifier type=:R side=:first state=:enhanced>
         
     | 
| 
       61 
61 
     | 
    
         
             
                #   Sashite::Pin.identifier(:P, :second, :diminished) # => #<Pin::Identifier type=:P side=:second state=:diminished>
         
     | 
| 
       62 
     | 
    
         
            -
                def self.identifier(type, side, state 
     | 
| 
      
 62 
     | 
    
         
            +
                def self.identifier(type, side, state)
         
     | 
| 
       63 
63 
     | 
    
         
             
                  Identifier.new(type, side, state)
         
     | 
| 
       64 
64 
     | 
    
         
             
                end
         
     | 
| 
       65 
65 
     | 
    
         
             
              end
         
     |