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

Fixed setup_github_pages failing and not properly writing url to _config.yml #1331

Merged
merged 3 commits into from
Oct 23, 2014
Merged

Fixed setup_github_pages failing and not properly writing url to _config.yml #1331

merged 3 commits into from
Oct 23, 2014

Conversation

Darkhogg
Copy link
Contributor

This PR fixes the following bugs:

  • blog_url wasn't returning anything, so the url field of _config.yml was being emptied.
  • blog_url was writing the URL with uppercase letters (e.g., http://Darkhogg.github.io). Username is now downcased (project is not, I'm not sure if that would be required)
  • Rake task setup_github_pages was trying to print the url variable, which is undefined. It now calls blog_url again.

I did not search through issues for all these bugs so I don't know if this would fix some open issue.

When executing `rake setup_github_pages`, an error tells that `url` don't exist. The reference to that variable has been changed to a call to `blog_url`.

The function `blog_url` was not returning anything, failing to properly write the `_config.yml` file. It now does return what should have.
@@ -358,7 +358,7 @@ task :setup_github_pages, :repo do |t, args|
f.write rakefile
end
end
puts "\n---\n## Now you can deploy to #{url} with `rake deploy` ##"
puts "\n---\n## Now you can deploy to #{blog_url(user, project)} with `rake deploy` ##"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why don't we store the return value of blog_url in the url variable and use it everywhere it's needed?

...and stored in the `url` variable.
@Darkhogg
Copy link
Contributor Author

May I count with this being merged or rejected some time from now? I would like to delete the fork someday.

parkr added a commit that referenced this pull request Oct 23, 2014
Fixed setup_github_pages failing and not properly writing url to _config.yml
@parkr parkr merged commit c6c5b74 into imathis:master Oct 23, 2014
@parkr
Copy link
Collaborator

parkr commented Oct 23, 2014

Sorry, must have gotten lost in the backlog! Looks good to me. Thanks!

@Darkhogg Darkhogg deleted the patch-1 branch October 23, 2014 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants