effective_datatables 4.20.0 → 4.20.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
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 5bfbf37b105594f8effdd8c1ca01f55e377cb3a9b011acdb200c7feef5a7e3cf
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 8a72ea83642057838ecb2161693d2ce5f82ad194b6a47e6965df5f2dda48d902
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 7d494134ece7fd837e979d2d4e5206745c756e1d89a1e8a521fb33f897cd7a60ea329636ca2e2ec5287d2f70c1359ec0fee413a6ee04466c88cb2974ab6c805e
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 0f55926b63825664257310ebe7de15a39b129a5a882439cf34f78fc0158b4f2bf64138f9fe3966950d9caa21e1f57a0cb3dbec8c88aa6e428d745dca167e3cfe
         
     | 
| 
         @@ -142,15 +142,25 @@ module Effective 
     | 
|
| 
       142 
142 
     | 
    
         
             
                    when :time
         
     | 
| 
       143 
143 
     | 
    
         
             
                      value.respond_to?(:strftime) ? value.strftime(EffectiveDatatables.format_time) : BLANK
         
     | 
| 
       144 
144 
     | 
    
         
             
                    when :text
         
     | 
| 
      
 145 
     | 
    
         
            +
                      value_to_s = value.to_s
         
     | 
| 
      
 146 
     | 
    
         
            +
             
     | 
| 
       145 
147 
     | 
    
         
             
                      if csv
         
     | 
| 
       146 
     | 
    
         
            -
                         
     | 
| 
       147 
     | 
    
         
            -
                      elsif  
     | 
| 
       148 
     | 
    
         
            -
                        view.sanitize( 
     | 
| 
      
 148 
     | 
    
         
            +
                        value_to_s
         
     | 
| 
      
 149 
     | 
    
         
            +
                      elsif value_to_s.starts_with?('<') && value_to_s.ends_with?('>')
         
     | 
| 
      
 150 
     | 
    
         
            +
                        view.sanitize(value_to_s)
         
     | 
| 
       149 
151 
     | 
    
         
             
                      else
         
     | 
| 
       150 
     | 
    
         
            -
                        view.simple_format( 
     | 
| 
      
 152 
     | 
    
         
            +
                        view.simple_format(value_to_s)
         
     | 
| 
       151 
153 
     | 
    
         
             
                      end
         
     | 
| 
       152 
154 
     | 
    
         
             
                    when :string
         
     | 
| 
       153 
     | 
    
         
            -
                       
     | 
| 
      
 155 
     | 
    
         
            +
                      value_to_s = value.to_s
         
     | 
| 
      
 156 
     | 
    
         
            +
             
     | 
| 
      
 157 
     | 
    
         
            +
                      if csv
         
     | 
| 
      
 158 
     | 
    
         
            +
                        value_to_s
         
     | 
| 
      
 159 
     | 
    
         
            +
                      elsif value_to_s.starts_with?('<') && value_to_s.ends_with?('>')
         
     | 
| 
      
 160 
     | 
    
         
            +
                        view.sanitize(value_to_s)
         
     | 
| 
      
 161 
     | 
    
         
            +
                      else
         
     | 
| 
      
 162 
     | 
    
         
            +
                        view.escape_once(value_to_s)
         
     | 
| 
      
 163 
     | 
    
         
            +
                      end
         
     | 
| 
       154 
164 
     | 
    
         
             
                    else
         
     | 
| 
       155 
165 
     | 
    
         
             
                      value.to_s
         
     | 
| 
       156 
166 
     | 
    
         
             
                    end
         
     |