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

Doens't throw error when project file doesn't specify name #303

Merged
1 commit merged into from
Jun 4, 2015

Conversation

underscorenygren
Copy link
Contributor

the project.rb#name function forgot to check for nil
adds a .blank check similarly to how #root works
Adds a failing test case
Adds a test case for the same behavior for #root (which already works)
Fixes #302

the project.rb#name function forgot to check for nil
adds a .blank check similarly to how .root works
Adds a failing test case
Adds a test case for the same behavior for #root (which already works)
Fixes tmuxinator#302
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c0c2a60 on underscorenygren:no-error-when-no-name into * on tmuxinator:master*.

2 similar comments
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c0c2a60 on underscorenygren:no-error-when-no-name into * on tmuxinator:master*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c0c2a60 on underscorenygren:no-error-when-no-name into * on tmuxinator:master*.

@@ -31,7 +31,7 @@ def root

def name
name = yaml["project_name"] || yaml["name"]
name.shellescape
name.blank? ? nil : name.shellescape

Choose a reason for hiding this comment

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

what about name.empty? Can a name be "" as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Went with blank because that's what the #root fn did, but I don't think it
makes a difference.
On Wed, May 13, 2015 at 3:43 AM maxmeyer notifications@github.com wrote:

In lib/tmuxinator/project.rb
#303 (comment):

@@ -31,7 +31,7 @@ def root

 def name
   name = yaml["project_name"] || yaml["name"]
  •  name.shellescape
    
  •  name.blank? ? nil : name.shellescape
    

what about name.empty?


Reply to this email directly or view it on GitHub
https://github.com/tmuxinator/tmuxinator/pull/303/files#r30208295.

@ghost ghost merged commit c0c2a60 into tmuxinator:master Jun 4, 2015
ghost pushed a commit that referenced this pull request Jun 4, 2015
This pull request was closed.
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.

Throws error when project file doesn't specify name
3 participants