Skip to content

Update wordpressdotcom.rb to use its method parameter correctly.#24

Merged
parkr merged 2 commits intojekyll:masterfrom
stevenbedrick:patch-1
May 15, 2013
Merged

Update wordpressdotcom.rb to use its method parameter correctly.#24
parkr merged 2 commits intojekyll:masterfrom
stevenbedrick:patch-1

Conversation

@stevenbedrick
Copy link
Contributor

When invoked from the command line using jekyll import wordpressdotcom -s $FILENAME, the filename argument being passed in to WordpressDotCom::process() is not a simple string. It is instead a Hash, and as such the method's dying on line 15. This patch fixes the error.

When invoked from the command line using `jekyll import wordpressdotcom -s $FILENAME`, the `filename` argument being passed in to WordpressDotCom::process() is not a simple string. It is instead a Hash, and as such the method's dying on line 15. This patch fixes the error.
@parkr
Copy link
Member

parkr commented May 14, 2013

Please update the fallback in the method definition, too!

My previous commit fixed a bug in how the method handles the `filename` argument, but introduced a new one in that I hadn't updated the method's default `filename` value to _also_ be a hash. This commit fixes that.
@stevenbedrick
Copy link
Contributor Author

Good catch, thanks for pointing it out. I think I've got it this time.

@RickEyre
Copy link

Fixes #23

parkr added a commit that referenced this pull request May 15, 2013
Update wordpressdotcom.rb to use its method parameter correctly.
@parkr parkr merged commit 51aea72 into jekyll:master May 15, 2013
parkr added a commit that referenced this pull request May 15, 2013
@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants