rexslt 0.5.10 → 0.5.11
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
- checksums.yaml.gz.sig +2 -3
- data.tar.gz.sig +0 -0
- data/lib/rexslt.rb +18 -16
- metadata +1 -1
- metadata.gz.sig +0 -0
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 7b5a178a90b731f56d261d03532b4871580ea9ec
         | 
| 4 | 
            +
              data.tar.gz: 1d880d68ab9dfaa3289ef679e9998309eb96b6c0
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 8d7605ab12d04e030c3de3e7f4e1deb93107e1da38e6fe3dbce8eae03f7e7e478d31230f134b0c34fcb809f9f8449b1d7acebc0a0cde23c4e5fb4787736c1c76
         | 
| 7 | 
            +
              data.tar.gz: 4406078c37739114adcad6b7072fb6a5bc6f3a2c1e2c4f3299b377b75b562a5a6036e134022794b12c83d08bad5aa2902d82206e77ed30cdcd108c96c5debdc3
         | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | @@ -1,3 +1,2 @@ | |
| 1 | 
            -
             | 
| 2 | 
            -
             | 
| 3 | 
            -
            ��ƹS��y��<OO�x�7�5��*����i��<5	03�Ǻ$(�����E�̪�n�"�}{*��J#A���s%AKm�
         | 
| 1 | 
            +
            6�/ɰ�/,����|�l
         | 
| 2 | 
            +
            ���A��ގ�"�De����sV0�s&�yVd����+�M�Q<k�;u�|��fOg1��z��x�9x�5x9�q��xV	��\��6U~H�N�Ń��i�0
         | 
    
        data.tar.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/lib/rexslt.rb
    CHANGED
    
    | @@ -371,7 +371,7 @@ class Rexslt | |
| 371 371 | 
             
              end
         | 
| 372 372 |  | 
| 373 373 | 
             
              def read_raw_element(element, x, doc_element, indent, j)
         | 
| 374 | 
            -
             | 
| 374 | 
            +
             | 
| 375 375 | 
             
                method_name = x.name.gsub(/[:-]/,'_').to_sym
         | 
| 376 376 |  | 
| 377 377 | 
             
                if @xsl_methods.include? method_name then
         | 
| @@ -388,26 +388,28 @@ class Rexslt | |
| 388 388 | 
             
                  la = x.name
         | 
| 389 389 | 
             
                  new_indent = indent + 1  if @indent == true
         | 
| 390 390 |  | 
| 391 | 
            -
                   | 
| 391 | 
            +
                  new_element = x.clone
         | 
| 392 392 |  | 
| 393 | 
            -
             | 
| 393 | 
            +
                  new_element.attributes.each do |k,raw_v|
         | 
| 394 394 |  | 
| 395 | 
            -
                     | 
| 396 | 
            -
             | 
| 397 | 
            -
             | 
| 398 | 
            -
             | 
| 399 | 
            -
                       | 
| 395 | 
            +
                    v = raw_v.is_a?(Array) ? raw_v.join(' ') : raw_v
         | 
| 396 | 
            +
                              
         | 
| 397 | 
            +
                    if v[/{/] then
         | 
| 398 | 
            +
             | 
| 399 | 
            +
                      v.gsub!(/(\{[^\}]+\})/) do |x2|
         | 
| 400 | 
            +
             | 
| 401 | 
            +
                        xpath = x2[/\{([^\}]+)\}/,1]
         | 
| 402 | 
            +
                        text = element.text(xpath)
         | 
| 403 | 
            +
                        text ? text.clone : ''
         | 
| 404 | 
            +
                        
         | 
| 405 | 
            +
                      end
         | 
| 400 406 |  | 
| 401 | 
            -
             | 
| 407 | 
            +
                    end  
         | 
| 408 | 
            +
                  end      
         | 
| 409 | 
            +
                  
         | 
| 410 | 
            +
                  if x.children.length > 0 then           
         | 
| 402 411 |  | 
| 403 | 
            -
                          xpath = x2[/\{([^\}]+)\}/,1]
         | 
| 404 | 
            -
                          text = element.text(xpath)
         | 
| 405 | 
            -
                          text ? text.clone : ''
         | 
| 406 | 
            -
                          
         | 
| 407 | 
            -
                        end
         | 
| 408 412 |  | 
| 409 | 
            -
                      end  
         | 
| 410 | 
            -
                    end
         | 
| 411 413 |  | 
| 412 414 | 
             
                    indent_before(element, x, doc_element, new_indent, j) if @indent == true
         | 
| 413 415 |  | 
    
        metadata
    CHANGED
    
    
    
        metadata.gz.sig
    CHANGED
    
    | Binary file |