dogviz 0.0.20 → 0.0.21
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/dogviz/system.rb +2 -2
- data/lib/dogviz/version.rb +1 -1
- data/tests/test_dogviz_functionally.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b9eb357510d3a4de43f3cc7af60919bc6540915
|
4
|
+
data.tar.gz: 4bceb85921dd199a159d7f6a3340041c31ce3eb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 222029facb991efdcebe0bb8877c3cbbc46d8516e130255199c973809b0a018b2a6eda659e6320ff8167d2f629353149043bb318b81a1ceca38b764d3e7db966
|
7
|
+
data.tar.gz: 78912d906cea50c5861c39c658c97e5a0a9833a3113307a2d16519510c9544a5754dd59e35a7ef90382a41b3624a1edcf25cee8b9967f63086fa13bb6140533b
|
data/lib/dogviz/system.rb
CHANGED
@@ -74,7 +74,7 @@ module Dogviz
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def auto_nominate?
|
77
|
-
|
77
|
+
@non_render_hints[:auto_nominate]
|
78
78
|
end
|
79
79
|
|
80
80
|
|
@@ -83,7 +83,7 @@ module Dogviz
|
|
83
83
|
|
84
84
|
def remove_dogviz_hints!(hints)
|
85
85
|
dogviz_only_hints = {}
|
86
|
-
%i(colorize_edges).each { |k|
|
86
|
+
%i(colorize_edges auto_nominate).each { |k|
|
87
87
|
dogviz_only_hints[k] = hints.delete k
|
88
88
|
}
|
89
89
|
dogviz_only_hints
|
data/lib/dogviz/version.rb
CHANGED
@@ -63,5 +63,14 @@ module Tests
|
|
63
63
|
assert_match /rank=sink/, dotspec
|
64
64
|
end
|
65
65
|
|
66
|
+
def test_can_render_auto_nominate_graph
|
67
|
+
sys = system_with_auto_nominate
|
68
|
+
sys.thing 'a'
|
69
|
+
sys.output svg: outfile('svg')
|
70
|
+
end
|
71
|
+
|
72
|
+
def system_with_auto_nominate
|
73
|
+
Dogviz::System.new 'test', auto_nominate: true
|
74
|
+
end
|
66
75
|
end
|
67
76
|
end
|