asciidoctor-dita-topic 1.3.3 → 1.3.4
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/lib/dita-topic.rb +16 -4
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 62056b90729ed2ccfcfad7a3fa3613938cf943c67b535d4f6653b1aa009a79a9
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 558a40909a4eea3b5a1bae2327e12c3116d679d5fbbd71cf4f70f990fd23fabf
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 84b3e6f51d7712fb8974fce8c4c3f184b90f1853cf442306ec24d8ab3a32e01f49ee9cec24885baeb26eafb6f7837a76117ffce14f4c7187436f153209864013
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 2c53bb543c270dcc48597b8cc9c16e914ec62393dec275064ae6e5423ed7b8c4898e3df59ffa83145779ef9f8124555b1f6cae5c2a51e6d539ac39356276ea6a
         
     | 
    
        data/lib/dita-topic.rb
    CHANGED
    
    | 
         @@ -202,8 +202,11 @@ class DitaTopic < Asciidoctor::Converter::Base 
     | 
|
| 
       202 
202 
     | 
    
         | 
| 
       203 
203 
     | 
    
         
             
                # Process individual list items:
         
     | 
| 
       204 
204 
     | 
    
         
             
                node.items.each do |terms, description|
         
     | 
| 
      
 205 
     | 
    
         
            +
                  # Compose the metadata attributes:
         
     | 
| 
      
 206 
     | 
    
         
            +
                  metadata, terms[0].text = extract_attributes terms[0].text
         
     | 
| 
      
 207 
     | 
    
         
            +
             
     | 
| 
       205 
208 
     | 
    
         
             
                  # Open the definition entry:
         
     | 
| 
       206 
     | 
    
         
            -
                  result << %(<dlentry>)
         
     | 
| 
      
 209 
     | 
    
         
            +
                  result << %(<dlentry#{metadata}>)
         
     | 
| 
       207 
210 
     | 
    
         | 
| 
       208 
211 
     | 
    
         
             
                  # Process individual terms:
         
     | 
| 
       209 
212 
     | 
    
         
             
                  terms.each do |item|
         
     | 
| 
         @@ -705,8 +708,11 @@ class DitaTopic < Asciidoctor::Converter::Base 
     | 
|
| 
       705 
708 
     | 
    
         | 
| 
       706 
709 
     | 
    
         
             
                  # Process each row:
         
     | 
| 
       707 
710 
     | 
    
         
             
                  rows.each do |row|
         
     | 
| 
      
 711 
     | 
    
         
            +
                    # Compose the metadata attributes:
         
     | 
| 
      
 712 
     | 
    
         
            +
                    metadata, row[0].text = extract_attributes row[0].text
         
     | 
| 
      
 713 
     | 
    
         
            +
             
     | 
| 
       708 
714 
     | 
    
         
             
                    # Open the row:
         
     | 
| 
       709 
     | 
    
         
            -
                    result << %(<row>)
         
     | 
| 
      
 715 
     | 
    
         
            +
                    result << %(<row#{metadata}>)
         
     | 
| 
       710 
716 
     | 
    
         | 
| 
       711 
717 
     | 
    
         
             
                    # Process each cell:
         
     | 
| 
       712 
718 
     | 
    
         
             
                    row.each do |cell|
         
     | 
| 
         @@ -857,8 +863,11 @@ class DitaTopic < Asciidoctor::Converter::Base 
     | 
|
| 
       857 
863 
     | 
    
         | 
| 
       858 
864 
     | 
    
         
             
                # Process individual list items:
         
     | 
| 
       859 
865 
     | 
    
         
             
                node.items.each do |terms, description|
         
     | 
| 
      
 866 
     | 
    
         
            +
                  # Compose the metadata attributes:
         
     | 
| 
      
 867 
     | 
    
         
            +
                  metadata, terms[0].text = extract_attributes terms[0].text
         
     | 
| 
      
 868 
     | 
    
         
            +
             
     | 
| 
       860 
869 
     | 
    
         
             
                  # Open the list item:
         
     | 
| 
       861 
     | 
    
         
            -
                  result << %(<li>)
         
     | 
| 
      
 870 
     | 
    
         
            +
                  result << %(<li#{metadata}>)
         
     | 
| 
       862 
871 
     | 
    
         | 
| 
       863 
872 
     | 
    
         
             
                  # Process individual terms:
         
     | 
| 
       864 
873 
     | 
    
         
             
                  terms.each do |item|
         
     | 
| 
         @@ -897,8 +906,11 @@ class DitaTopic < Asciidoctor::Converter::Base 
     | 
|
| 
       897 
906 
     | 
    
         | 
| 
       898 
907 
     | 
    
         
             
                # Process individual list items:
         
     | 
| 
       899 
908 
     | 
    
         
             
                node.items.each do |terms, description|
         
     | 
| 
      
 909 
     | 
    
         
            +
                  # Compose the metadata attributes:
         
     | 
| 
      
 910 
     | 
    
         
            +
                  metadata, terms[0].text = extract_attributes terms[0].text
         
     | 
| 
      
 911 
     | 
    
         
            +
             
     | 
| 
       900 
912 
     | 
    
         
             
                  # Open the table row:
         
     | 
| 
       901 
     | 
    
         
            -
                  result << %(<row>)
         
     | 
| 
      
 913 
     | 
    
         
            +
                  result << %(<row#{metadata}>)
         
     | 
| 
       902 
914 
     | 
    
         | 
| 
       903 
915 
     | 
    
         
             
                  # Check the number of terms to process:
         
     | 
| 
       904 
916 
     | 
    
         
             
                  if terms.count == 1
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: asciidoctor-dita-topic
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.3. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.3.4
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Jaromir Hradilek
         
     | 
| 
         @@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       96 
96 
     | 
    
         
             
              requirements:
         
     | 
| 
       97 
97 
     | 
    
         
             
              - - ">="
         
     | 
| 
       98 
98 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       99 
     | 
    
         
            -
                  version: '0'
         
     | 
| 
      
 99 
     | 
    
         
            +
                  version: '3.0'
         
     | 
| 
       100 
100 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       101 
101 
     | 
    
         
             
              requirements:
         
     | 
| 
       102 
102 
     | 
    
         
             
              - - ">="
         
     |