pxgraphviz 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8937c761f0b23537cbeb192d19a9e774b0597659
4
- data.tar.gz: daf42ddbfaffac09e288829ffa5dc3dd5f97e705
3
+ metadata.gz: c8fdfe515b35e673018cc05775619843fd87e3c1
4
+ data.tar.gz: da0c295e2bff4ed4ee25a6dcbd7f9a9ad1242f7b
5
5
  SHA512:
6
- metadata.gz: 7e1ed3a09f79b2b0e28388c4ce14a45f8e9fce69aab901801c7ce95aaf22447645afa0e20ae7f2bf2d096ea07f98530332884adfec16bb5fc838ff0f3c7b5833
7
- data.tar.gz: '09705e4b48ee02bd67ca2f29ed3ef2fdcc8b0f0624ce540f5af64496c0249aee29335b6ac342b6609e1c5f553d2d0f14991be82ff9e16f38339eb1531a608067'
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
- def write(filename)
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.2
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-16 00:00:00.000000000 Z
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.6
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.6
75
+ version: 0.5.8
76
76
  description:
77
77
  email: james@jamesrobertson.eu
78
78
  executables: []
metadata.gz.sig CHANGED
Binary file