-
Notifications
You must be signed in to change notification settings - Fork 317
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
Check that my own importer works locally, on my machine #412
Comments
Couple of stuff:
|
Thanks for the reply, @ashmaroli. I agree that what I did is super bad, which is why I came to ask for help. Can you please describe / share the command I need to issue in order to run my extension of the importer? Like I said, I'm not a ruby dev, but I thought that running the command from the link you shared would ignore my local changes and would not fail to find the Basically, what do I need to run instead of this (how can i specify the path to my local implementation?):
|
Running Ruby with
Alternatively, paste the code into a fresh file and run it directly: # ./run_importer.rb
$LOAD_PATH.unshift(File.expand_path('lib', __dir__))
require 'jekyll-import'
JekyllImport::Importers::RSSPodcast.run(
"source" => ARGV[0] || 'my_file.xml'
) $ ruby ./run_importer.rb my_backup.xml |
This worked great. Thank you!
|
Hi all,
I am not a ruby dev so please keep that in mind.
TL;DR
How can I check that a plugin I wrote actually does what I want it to do? How can invoke or run in Terminal / Console the jekyll-import and pass as a parameter my new importer?
Details
I want to extend the behaviour of the RSS importer. I manually edited the
/Library/Ruby/Gems/2.3.0/gems/jekyll-import-0.18.1/lib/jekyll-import/importers/rss.rb
file and saved my changes and it definitely does what I want it to do.Now this is obviously more than hacky, so I'd like to create a plugin that does what I want it to do (rss_podcast). I followed the instructions on the
Contributing
page on the jekyll-import website but I cannot find ascript/console
command anywhere to check that the plugin I wrote actually works alongside the other plugins.Thanks a bunch!
The text was updated successfully, but these errors were encountered: