You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I'm getting this error, from the mime-type gem:
NoMethodError: undefined method `chomp' for #<Tempfile:0x007fd0ded27538>
from /Users/ekan/redpost_git/RedPost/thin/ruby/1.9.1/gems/mime-types-1.25.1/lib/mime/types.rb:672:in `type_for'
from /Users/ekan/redpost_git/RedPost/thin/ruby/1.9.1/gems/mime-types-1.25.1/lib/mime/types.rb:874:in `type_for'
from /Users/ekan/redpost_git/RedPost/thin/ruby/1.9.1/gems/tumblr_client-0.8.1/lib/tumblr/post.rb:107:in `block in extract_data!'
from /Users/ekan/redpost_git/RedPost/thin/ruby/1.9.1/gems/tumblr_client-0.8.1/lib/tumblr/post.rb:106:in `each'
from /Users/ekan/redpost_git/RedPost/thin/ruby/1.9.1/gems/tumblr_client-0.8.1/lib/tumblr/post.rb:106:in `with_index'
from /Users/ekan/redpost_git/RedPost/thin/ruby/1.9.1/gems/tumblr_client-0.8.1/lib/tumblr/post.rb:106:in `extract_data!'
from /Users/ekan/redpost_git/RedPost/thin/ruby/1.9.1/gems/tumblr_client-0.8.1/lib/tumblr/post.rb:28:in `photo'
from (irb):10
from /Users/ekan/redpost_git/RedPost/thin/ruby/1.9.1/gems/railties-3.2.17/lib/rails/commands/console.rb:47:in `start'
from /Users/ekan/redpost_git/RedPost/thin/ruby/1.9.1/gems/railties-3.2.17/lib/rails/commands/console.rb:8:in `start'
from /Users/ekan/redpost_git/RedPost/thin/ruby/1.9.1/gems/railties-3.2.17/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Here's the code from the gem:
672 ext = filename.chomp.downcase.gsub(/.*\./o, '')
673 list = @extension_index[ext]
674 list.delete_if { |e| not e.platform? } if platform
Any ideas?
The text was updated successfully, but these errors were encountered:
The downloaded file was too big to be stored directly in a string, so it was stuffed into a Tempfile. That's just how the open() call works in ruby. The Tempfile is an IO object, not a string with a path to the location. You'll need to get the filename out of the Tempfile and pass it to the tumblr_client method.
Just bundle updated to the latest gem (0.8.1), now I can't post to Tumblr. Here's my code to post:
And I'm getting this error, from the mime-type gem:
Here's the code from the gem:
Any ideas?
The text was updated successfully, but these errors were encountered: