Skip to content
New issue

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

Added #get_node, #node_exists? methods on Graph and relevant tests. #8

Merged

Conversation

RedFred7
Copy link
Contributor

Added method to return Node based on node name. Added method to check if Node exists in the graph. Also changed indentation to match Ruby standard. Fixed minor bug in demo.rb.

@coveralls
Copy link

coveralls commented Jul 19, 2018

Coverage Status

Coverage increased (+0.2%) to 93.496% when pulling 1f05bf1 on RedFred7:feature/adding_graph_operations_on_nodes into be7e56d on ioquatix:master.

@@ -20,13 +20,13 @@

require 'graphviz'

SAMPLE_GRAPH_DOT = <<~EOF
digraph "G" {
SAMPLE_GRAPH_DOT = <<-EOF
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this an improvement?

Copy link
Contributor Author

@RedFred7 RedFred7 Jul 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was necessary for the gem to run on versions earlier than 2.3. The squiggly <<~ HEREDOC syntax was introduced in Ruby 2.3 and previous versions will raise error when <<~ is used.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. I'm not actually too concerned about that since Ruby < 2.3 is EOL.

@ioquatix
Copy link
Owner

Please don't reformat the entire code base. Especially don't do it with functional code changes :)

@ioquatix ioquatix merged commit 0f5b1bd into ioquatix:master Aug 21, 2018
@ioquatix
Copy link
Owner

Okay, this looks good. I will review in more detail after merging.

@ioquatix
Copy link
Owner

Okay I released it as v1.1.0

@RedFred7 RedFred7 deleted the feature/adding_graph_operations_on_nodes branch August 22, 2018 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants