-
Notifications
You must be signed in to change notification settings - Fork 312
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
Tumblr Migrator dies on audio posts #14
Comments
Hey I ran across the same thing. (Hash#at ???) Using jekyll-import 0.1.0.beta1 require 'rubygems'
##
# Monkeypatch to fix the following
# tumblr.rb:73
# content = post.at["audio-player"] + "<br/>" + post["audio-caption"]
class Hash
def at
self
end
end
begin
require 'jekyll/jekyll-import/tumblr'
rescue
puts "Missing jekyll-import gem. Do this: gem install jekyll-import --pre"
exit -1
end
JekyllImport::Tumblr.process("http://slog.keyvanfatehi.com", true) |
Yeah, I'm thinking that is the same thing, and that is far more elegant than my solution was. Good ol' monkeypatches. |
If any of you want to submit a PR to fix this, that would be splendid :) |
Both @mattr- and I are attentive to issues and PRs here :) |
Ill see if I can learn enough Ruby to do just that - sounds like a fun challenge. |
Why do we use |
Hello,
First - I am not a ruby guy, but I know enough to dig into pure ruby code.
I was trying to run the migrator, and it kept dying with:
I dug into that line, dumped some vars, and figured out that it looks like the at function (due to a change in structure) was not there, but removing it worked fine:
Sorry I can't contribute a pull request - I dont know near enough about gems or testing them.
The text was updated successfully, but these errors were encountered: