post.rb warnings in Ruby 2.0
inky opened this issue · 6 comments
inky commented
I get a screenful of warnings when running tumblr backup
with Ruby 2.0:
[snip] post.rb:182: warning: wrong element type nil at 2 (expected array) post.rb:182: warning: ignoring wrong elements is deprecated, remove them explicitly post.rb:182: warning: this causes ArgumentError in the next release post.rb:182: warning: wrong element type nil at 6 (expected array) post.rb:182: warning: ignoring wrong elements is deprecated, remove them explicitly post.rb:182: warning: this causes ArgumentError in the next release post.rb:182: warning: wrong element type nil at 7 (expected array) post.rb:182: warning: ignoring wrong elements is deprecated, remove them explicitly post.rb:182: warning: this causes ArgumentError in the next release post.rb:182: warning: wrong element type nil at 8 (expected array) post.rb:182: warning: ignoring wrong elements is deprecated, remove them explicitly post.rb:182: warning: this causes ArgumentError in the next release post.rb:182: warning: wrong element type nil at 9 (expected array) post.rb:182: warning: ignoring wrong elements is deprecated, remove them explicitly [snip]
$ ruby --version ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin11.4.2]
mwunsch commented
At the line number listed, I need to make sure the array is compacted before creating a hash from it
hkdobrev commented
#42 should fix the problem, but the 2.1.2
version is not yet available in RubyGems.org: http://rubygems.org/gems/tumblr-rb/versions
joeworkman commented
Ping! Could you please update the gem on RubyGems.org?
joeworkman commented
Ping! Could you please update the gem on RubyGems.org?
tbwhite commented
I am running into the same problem.....any chance you can update the gem ?
gregsadetsky commented
I was able to install the latest version in the following way:
gem install specific_install
gem specific_install -l https://github.com/mwunsch/tumblr