pxgraphviz 0.3.3 → 0.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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/pxgraphviz.rb +5 -6
- metadata +6 -6
- 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: d80a15b3ef83ab93650717c14492d06a8e3ee5be
|
|
4
|
+
data.tar.gz: f182ac22828d4a4a133c16ad5f624b198996a511
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88f5eb1f26d7ac038d21c51ce50c2d83c0e52cf623a2e1bbb4b567d4b17860feeac9e12b4b582e935f0bc43d4a0a970d23e8b37c3f302e7a2e8b61fb2a3df2af
|
|
7
|
+
data.tar.gz: c874e42c9f079141edc7816272db489c27b716326d8164dc23fd06cb5953b47b61dcf5c37578a1bcbd07b611f845582ebd547d7f16a7ae5dba292fba6f57da77
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/pxgraphviz.rb
CHANGED
|
@@ -51,11 +51,10 @@ class PxGraphViz
|
|
|
51
51
|
#jr020917 labels = @px.xpath('//records/item/summary/label/text()').uniq
|
|
52
52
|
|
|
53
53
|
summary = px.xpath('//records/item/summary')
|
|
54
|
+
|
|
54
55
|
labels = summary.map do |x|
|
|
55
|
-
label = x.text('label')
|
|
56
|
-
shape = x.element('shape')
|
|
57
56
|
|
|
58
|
-
[label,
|
|
57
|
+
a = [x.text('label'), x.text('shape') || 'box', x.text('url')]
|
|
59
58
|
|
|
60
59
|
end
|
|
61
60
|
|
|
@@ -69,8 +68,8 @@ class PxGraphViz
|
|
|
69
68
|
|
|
70
69
|
xml.records do
|
|
71
70
|
labels_ids.each do |x, i|
|
|
72
|
-
label, shape = x
|
|
73
|
-
attr = {gid: i.to_s, shape: shape}
|
|
71
|
+
label, shape, url = x
|
|
72
|
+
attr = {gid: i.to_s, shape: shape, url: url}
|
|
74
73
|
xml.node(attr) do
|
|
75
74
|
xml.label label
|
|
76
75
|
end
|
|
@@ -130,7 +129,7 @@ class PxGraphViz
|
|
|
130
129
|
|
|
131
130
|
a[1] = summary
|
|
132
131
|
|
|
133
|
-
|
|
132
|
+
Domle.new(a)
|
|
134
133
|
|
|
135
134
|
end
|
|
136
135
|
|
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.3.
|
|
4
|
+
version: 0.3.4
|
|
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-08 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: polyrex
|
|
@@ -59,20 +59,20 @@ dependencies:
|
|
|
59
59
|
requirements:
|
|
60
60
|
- - "~>"
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '0.
|
|
62
|
+
version: '0.5'
|
|
63
63
|
- - ">="
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: 0.
|
|
65
|
+
version: 0.5.2
|
|
66
66
|
type: :runtime
|
|
67
67
|
prerelease: false
|
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
|
69
69
|
requirements:
|
|
70
70
|
- - "~>"
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
|
-
version: '0.
|
|
72
|
+
version: '0.5'
|
|
73
73
|
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0.
|
|
75
|
+
version: 0.5.2
|
|
76
76
|
description:
|
|
77
77
|
email: james@jamesrobertson.eu
|
|
78
78
|
executables: []
|
metadata.gz.sig
CHANGED
|
Binary file
|