pxgraphviz 0.4.2 → 0.4.3
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 +0 -0
 - data.tar.gz.sig +0 -0
 - data/lib/pxgraphviz.rb +4 -21
 - metadata +4 -4
 - 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: c8fdfe515b35e673018cc05775619843fd87e3c1
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: da0c295e2bff4ed4ee25a6dcbd7f9a9ad1242f7b
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e5c46e6ceca585fac4d05e8ab19d17aa1fa1f9c19601985dcbd071d6f38bef7861aada1d558dac8eeefeb4e069a9fa3da768776bdb540fdafb7fec5ce80d8d1a
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 6e9bdb7d87eee243d70d56b1f3fee7bc187574f60d1e61250fa9375f1b1edde587250781ad2539247c0b42deec4d7d7a93a059ae5df9e9bfd73580191606dad6
         
     | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
    
        data.tar.gz.sig
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/pxgraphviz.rb
    CHANGED
    
    | 
         @@ -7,7 +7,7 @@ require 'polyrex' 
     | 
|
| 
       7 
7 
     | 
    
         
             
            require 'graphvizml'
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
            class PxGraphViz
         
     | 
| 
      
 10 
     | 
    
         
            +
            class PxGraphViz < GraphVizML
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
              attr_reader :doc, :px
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
         @@ -21,30 +21,12 @@ class PxGraphViz 
     | 
|
| 
       21 
21 
     | 
    
         
             
                doc.root.elements.first.insert_before Rexle::Element.new('style')\
         
     | 
| 
       22 
22 
     | 
    
         
             
                    .add_text style
         
     | 
| 
       23 
23 
     | 
    
         
             
                @doc = doc
         
     | 
| 
      
 24 
     | 
    
         
            +
                super(doc)
         
     | 
| 
       24 
25 
     | 
    
         | 
| 
       25 
26 
     | 
    
         
             
              end  
         
     | 
| 
       26 
27 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
              def to_dot()
         
     | 
| 
       28 
     | 
    
         
            -
                GraphVizML.new(@doc).to_dot
         
     | 
| 
       29 
     | 
    
         
            -
              end
         
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
              # returns a PNG blob
         
     | 
| 
       32 
     | 
    
         
            -
              #
         
     | 
| 
       33 
     | 
    
         
            -
              def to_png()    
         
     | 
| 
       34 
     | 
    
         
            -
                GraphVizML.new(@doc).to_png
         
     | 
| 
       35 
     | 
    
         
            -
              end
         
     | 
| 
       36 
     | 
    
         
            -
              
         
     | 
| 
       37 
     | 
    
         
            -
              # returns an SVG blob
         
     | 
| 
       38 
     | 
    
         
            -
              #
         
     | 
| 
       39 
     | 
    
         
            -
              def to_svg()
         
     | 
| 
       40 
     | 
    
         
            -
                GraphVizML.new(@doc).to_svg
         
     | 
| 
       41 
     | 
    
         
            -
              end    
         
     | 
| 
       42 
28 
     | 
    
         | 
| 
       43 
     | 
    
         
            -
               
     | 
| 
       44 
     | 
    
         
            -
                GraphVizML.new(@doc).write filename
         
     | 
| 
       45 
     | 
    
         
            -
              end
         
     | 
| 
       46 
     | 
    
         
            -
              
         
     | 
| 
       47 
     | 
    
         
            -
              private
         
     | 
| 
      
 29 
     | 
    
         
            +
              protected
         
     | 
| 
       48 
30 
     | 
    
         | 
| 
       49 
31 
     | 
    
         
             
              def default_stylesheet()
         
     | 
| 
       50 
32 
     | 
    
         | 
| 
         @@ -77,6 +59,7 @@ STYLE 
     | 
|
| 
       77 
59 
     | 
    
         | 
| 
       78 
60 
     | 
    
         
             
              end
         
     | 
| 
       79 
61 
     | 
    
         | 
| 
      
 62 
     | 
    
         
            +
              private
         
     | 
| 
       80 
63 
     | 
    
         | 
| 
       81 
64 
     | 
    
         
             
              def xslt_stylesheet()
         
     | 
| 
       82 
65 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: pxgraphviz
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.4. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.4.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - James Robertson
         
     | 
| 
         @@ -31,7 +31,7 @@ cert_chain: 
     | 
|
| 
       31 
31 
     | 
    
         
             
              AJ2kmROiYBLscpVrfyHxtEJluJwbid/KyR/BybHL7uezZ2/EbCxCYanOIbNyctTp
         
     | 
| 
       32 
32 
     | 
    
         
             
              CNgZvs+F41zO7g==
         
     | 
| 
       33 
33 
     | 
    
         
             
              -----END CERTIFICATE-----
         
     | 
| 
       34 
     | 
    
         
            -
            date: 2017-09- 
     | 
| 
      
 34 
     | 
    
         
            +
            date: 2017-09-17 00:00:00.000000000 Z
         
     | 
| 
       35 
35 
     | 
    
         
             
            dependencies:
         
     | 
| 
       36 
36 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       37 
37 
     | 
    
         
             
              name: polyrex
         
     | 
| 
         @@ -62,7 +62,7 @@ dependencies: 
     | 
|
| 
       62 
62 
     | 
    
         
             
                    version: '0.5'
         
     | 
| 
       63 
63 
     | 
    
         
             
                - - ">="
         
     | 
| 
       64 
64 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       65 
     | 
    
         
            -
                    version: 0.5. 
     | 
| 
      
 65 
     | 
    
         
            +
                    version: 0.5.8
         
     | 
| 
       66 
66 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       67 
67 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       68 
68 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -72,7 +72,7 @@ dependencies: 
     | 
|
| 
       72 
72 
     | 
    
         
             
                    version: '0.5'
         
     | 
| 
       73 
73 
     | 
    
         
             
                - - ">="
         
     | 
| 
       74 
74 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       75 
     | 
    
         
            -
                    version: 0.5. 
     | 
| 
      
 75 
     | 
    
         
            +
                    version: 0.5.8
         
     | 
| 
       76 
76 
     | 
    
         
             
            description: 
         
     | 
| 
       77 
77 
     | 
    
         
             
            email: james@jamesrobertson.eu
         
     | 
| 
       78 
78 
     | 
    
         
             
            executables: []
         
     | 
    
        metadata.gz.sig
    CHANGED
    
    | 
         Binary file 
     |