We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
require 'rubygems' require 'graphviz' # Create a new graph g = GraphViz.new( :G, :type => :digraph ) # Create two nodes hello = g.add_node( "Hello" ) hello.color = nil world = g.add_node( "World" ) # Create an edge between the two nodes g.add_edge( hello, world ) # Generate output image g.output( :png => "hello_world.png" )
With 0.9.21, this works; with 1.0.4, this raises an exception:
graphviz/attrs.rb:62:in `[]=': Invalide value `` for attribute `color` : undefined method `empty?' for nil:NilClass (AttributeException)
This breaks backward compatibility.
The text was updated successfully, but these errors were encountered:
Hum... Using "nil" as a color does not seems to be normal. But you are right, if this breaks backward compatibility, I have to do something.
My proposition :
If you passe nil as a value for an attribute, this attribute will be ignored and you'll receive a warning.
Is it ok for you ?
Sorry, something went wrong.
That would work. (Fixing my own code isn't hard to do, either -- I just thought I'd mention the issue as a possible backward compat concern.)
Issue #38
4b68bd7
I made a correction. You can upgrade to 1.0.5. Thanks
glejeune
No branches or pull requests
With 0.9.21, this works; with 1.0.4, this raises an exception:
This breaks backward compatibility.
The text was updated successfully, but these errors were encountered: