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

Fix for S9Y import #18

Merged
merged 1 commit into from
Mar 24, 2013
Merged

Fix for S9Y import #18

merged 1 commit into from
Mar 24, 2013

Conversation

boone
Copy link
Contributor

@boone boone commented Mar 24, 2013

I tried to use the S9Y import as-is and got the following error: error: can't convert Hash into String

It seems the file name wasn't being passed in as the code was expecting. I modeled a fix after the RSS import, to use the --source argument. That will also allow flexibility to add an option to import comments.

@@ -12,11 +12,21 @@

module JekyllImport
module S9Y
def self.process(file_name)
def self.validate(options)
if !options[:source]
Copy link
Member

Choose a reason for hiding this comment

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

Not a fan of unless?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copied that code straight out of rss.rb. unless is fine with me.

Copy link
Member

Choose a reason for hiding this comment

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

Ah! Ok, cool.

parkr added a commit that referenced this pull request Mar 24, 2013
Fix for S9Y import

Specify data source using --source option. Solves "can't convert Hash into String" error
@parkr parkr merged commit c44fa97 into jekyll:master Mar 24, 2013
parkr added a commit that referenced this pull request Mar 24, 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.

None yet

3 participants