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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70929d265912c9efb77184eda0a3ec2267335c41
4
- data.tar.gz: e32c035024100f2b2c235e1edd0f58b266628ee3
3
+ metadata.gz: 7b9eb357510d3a4de43f3cc7af60919bc6540915
4
+ data.tar.gz: 4bceb85921dd199a159d7f6a3340041c31ce3eb9
5
5
  SHA512:
6
- metadata.gz: 59624e07053eb20c432314cd6c856bc60cec1ab4d08d880536e905a64f47b5b3824ccbf2a00cb9fc2f57bb74e0a351287c92d2d9967b476538237a9ba4caaa09
7
- data.tar.gz: c3ba4748897a0a22688a1041707a798b067dc44efd7d3fc3a689f1cdb406f54501279ce632407f4d638a98a61ad1a4b9a1d5430ea7595359b4e43364b1e94c6a
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
- render_hints[:auto_nominate]
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
@@ -1,3 +1,3 @@
1
1
  module Dogviz
2
- VERSION = '0.0.20'
2
+ VERSION = '0.0.21'
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dogviz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - damned