pxgraphviz 0.3.3 → 0.3.4

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: f1820d7855e40a0a9d0db9655bfd7e4d073630e7
4
- data.tar.gz: 142d13f86766fccd30a8d331ca4deceef020da31
3
+ metadata.gz: d80a15b3ef83ab93650717c14492d06a8e3ee5be
4
+ data.tar.gz: f182ac22828d4a4a133c16ad5f624b198996a511
5
5
  SHA512:
6
- metadata.gz: 683cdfb6b6aa32f7bf348826a75e9fdcaa0e761eaa7d76161fb8475c875e8b06cf9594fac29bc38d5bc1dd7190e5cdfc30eed0f947d2b3157822a1ec374237e4
7
- data.tar.gz: e3fceb89b47a78033ef33597351c5c9add8a5df8b2e34c4de61982467bb284a3d4bccc3eec56d4debc189f1078ff74fffcf4cab6ee18ff6e0a0a0759426ab274
6
+ metadata.gz: 88f5eb1f26d7ac038d21c51ce50c2d83c0e52cf623a2e1bbb4b567d4b17860feeac9e12b4b582e935f0bc43d4a0a970d23e8b37c3f302e7a2e8b61fb2a3df2af
7
+ data.tar.gz: c874e42c9f079141edc7816272db489c27b716326d8164dc23fd06cb5953b47b61dcf5c37578a1bcbd07b611f845582ebd547d7f16a7ae5dba292fba6f57da77
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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, shape.text || 'box' ]
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
- Rexle.new(a)
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.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-05 00:00:00.000000000 Z
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.4'
62
+ version: '0.5'
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: 0.4.1
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.4'
72
+ version: '0.5'
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 0.4.1
75
+ version: 0.5.2
76
76
  description:
77
77
  email: james@jamesrobertson.eu
78
78
  executables: []
metadata.gz.sig CHANGED
Binary file