t lists crashes #70

Closed
grota opened this Issue Oct 5, 2012 · 1 comment

2 participants

@grota

I'm using t version 1.2.0, ruby 1.9.3-p194. I can use t without any problem, but it fails when I'm listing my lists.

❯ t lists -l
/home/grota/.rvm/gems/ruby-1.9.3-p194/gems/twitter-4.0.0/lib/twitter/cursor.rb:36:in `[]': can't convert Symbol into Integer (TypeError)
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/twitter-4.0.0/lib/twitter/cursor.rb:36:in `initialize'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/twitter-4.0.0/lib/twitter/cursor.rb:19:in `new'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/twitter-4.0.0/lib/twitter/cursor.rb:19:in `from_response'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/twitter-4.0.0/lib/twitter/api.rb:2339:in `cursor_from_response'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/twitter-4.0.0/lib/twitter/api.rb:2361:in `lists_from_response'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/twitter-4.0.0/lib/twitter/api.rb:1175:in `lists'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/t-1.2.0/lib/t/cli.rb:477:in `block in lists'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/t-1.2.0/lib/t/collectable.rb:15:in `block in collect_with_cursor'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/retryable-1.3.1/lib/retryable.rb:15:in `retryable'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/t-1.2.0/lib/t/collectable.rb:14:in `collect_with_cursor'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/t-1.2.0/lib/t/cli.rb:476:in `lists'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor.rb:275:in `dispatch'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/base.rb:425:in `start'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/gems/t-1.2.0/bin/t:13:in `<top (required)>'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/bin/t:19:in `load'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/bin/t:19:in `<main>'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
        from /home/grota/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
@sferik
Owner

This is actually a bug in the twitter gem, which I also maintain. Working on a fix now…

@sferik sferik closed this Oct 6, 2012
@sferik sferik added a commit to sferik/twitter that referenced this issue Oct 6, 2012
@sferik Handle new API v1.1 list response format
Closes sferik/t#70.
2aace25
@sferik sferik added a commit that referenced this issue Oct 8, 2012
@sferik Handle new API v1.1 list response format
Closes sferik/t#70.
2c187ea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment