mwunsch / tumblr

Command line interface and Ruby client for the Tumblr API (v2)
MIT License
282 stars 43 forks source link

post.rb warnings in Ruby 2.0 #41

Open inky opened 11 years ago

inky commented 11 years ago

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 11 years ago

At the line number listed, I need to make sure the array is compacted before creating a hash from it

hkdobrev commented 11 years ago

42 should fix the problem, but the 2.1.2version is not yet available in RubyGems.org: http://rubygems.org/gems/tumblr-rb/versions

joeworkman commented 10 years ago

Ping! Could you please update the gem on RubyGems.org?

joeworkman commented 9 years ago

Ping! Could you please update the gem on RubyGems.org?

tbwhite commented 9 years ago

I am running into the same problem.....any chance you can update the gem ?

gregsadetsky commented 8 years ago

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